summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-09-28 19:19:43 +0300
committerAlexei Starovoitov <ast@kernel.org>2021-09-28 23:51:19 +0300
commit15ea31fadd7f5b1076b4f91f75562bc319799c24 (patch)
tree305cac72388cfccd6197d5b0d4279b5056838492 /tools/perf/scripts/python/exported-sql-viewer.py
parent13d35a0cf1741431333ba4aa9bce9c5bbc88f63b (diff)
downloadlinux-15ea31fadd7f5b1076b4f91f75562bc319799c24.tar.xz
libbpf: Refactor ELF section handler definitions
Refactor ELF section handler definitions table to use a set of flags and unified SEC_DEF() macro. This allows for more succinct and table-like set of definitions, and allows to more easily extend the logic without adding more verbosity (this is utilized in later patches in the series). This approach is also making libbpf-internal program pre-load callback not rely on bpf_sec_def definition, which demonstrates that future pluggable ELF section handlers will be able to achieve similar level of integration without libbpf having to expose extra types and APIs. For starters, update SEC_DEF() definitions and make them more succinct. Also convert BPF_PROG_SEC() and BPF_APROG_COMPAT() definitions to a common SEC_DEF() use. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Dave Marchevsky <davemarchevsky@fb.com> Link: https://lore.kernel.org/bpf/20210928161946.2512801-8-andrii@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions