diff options
| author | Dave Marchevsky <davemarchevsky@fb.com> | 2023-03-09 21:01:06 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2023-03-10 23:16:37 +0300 |
| commit | b32a5dae44cc7346835839c2e92356ff4609c823 (patch) | |
| tree | f4c77d5477716ac94e19ec71e08654982b7d34a7 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 4659fba121dac21a3516986a3c2cf8459c7ac3bc (diff) | |
| download | linux-b32a5dae44cc7346835839c2e92356ff4609c823.tar.xz | |
bpf: verifier: Rename kernel_type_name helper to btf_type_name
kernel_type_name was introduced in commit 9e15db66136a ("bpf: Implement accurate raw_tp context access via BTF")
with type signature:
const char *kernel_type_name(u32 id)
At that time the function used global btf_vmlinux BTF for all id lookups. Later,
in commit 22dc4a0f5ed1 ("bpf: Remove hard-coded btf_vmlinux assumption from BPF verifier"),
the type signature was changed to:
static const char *kernel_type_name(const struct btf* btf, u32 id)
With the btf parameter used for lookups instead of global btf_vmlinux.
The helper will function as expected for type name lookup using non-kernel BTFs,
and will be used for such in further patches in the series. Let's rename it to
avoid incorrect assumptions that might arise when seeing the current name.
Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Link: https://lore.kernel.org/r/20230309180111.1618459-2-davemarchevsky@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
