diff options
author | Alexei Starovoitov <[email protected]> | 2019-10-15 20:24:55 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2019-10-17 16:44:35 +0200 |
commit | e8c423fb31fa8b1ef6d7cd14a168de33e7c0d702 (patch) | |
tree | deed1e4a6eb1316a94197c9de41b9c24aff63210 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | eac9153f2b584c702cea02c1f1a57d85aa9aea42 (diff) |
bpf: Add typecast to raw_tracepoints to help BTF generation
When pahole converts dwarf to btf it emits only used types.
Wrap existing __bpf_trace_##template() function into
btf_trace_##template typedef and use it in type cast to
make gcc emits this type into dwarf. Then pahole will convert it to btf.
The "btf_trace_" prefix will be used to identify BTF enabled raw tracepoints.
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Acked-by: John Fastabend <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions