summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorHao Luo <haoluo@google.com>2020-09-30 02:50:49 +0300
committerAlexei Starovoitov <ast@kernel.org>2020-10-03 01:00:49 +0300
commit00dc73e44a846fc5310df0e1415a90af76cc135e (patch)
treee3d0e30829fc1afe77a5a0305216e6ef2b93a381 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent63d9b80dcf2c67bc5ade61cbbaa09d7af21f43f1 (diff)
downloadlinux-00dc73e44a846fc5310df0e1415a90af76cc135e.tar.xz
bpf/selftests: Test for bpf_per_cpu_ptr() and bpf_this_cpu_ptr()
Test bpf_per_cpu_ptr() and bpf_this_cpu_ptr(). Test two paths in the kernel. If the base pointer points to a struct, the returned reg is of type PTR_TO_BTF_ID. Direct pointer dereference can be applied on the returned variable. If the base pointer isn't a struct, the returned reg is of type PTR_TO_MEM, which also supports direct pointer dereference. Signed-off-by: Hao Luo <haoluo@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200929235049.2533242-7-haoluo@google.com
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions