aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorDaniel Xu <[email protected]>2020-02-18 03:04:32 +0000
committerAlexei Starovoitov <[email protected]>2020-02-19 23:01:07 +0000
commit67306f84ca78c2ca5136f21791710c126a55a19b (patch)
tree9017e0f53548a512619ec8dc4ffd13f2c5a37540 /scripts/bpf_helpers_doc.py
parentbpf: Add bpf_read_branch_records() helper (diff)
downloadkernel-67306f84ca78c2ca5136f21791710c126a55a19b.tar.gz
kernel-67306f84ca78c2ca5136f21791710c126a55a19b.zip
selftests/bpf: Add bpf_read_branch_records() selftest
Add a selftest to test: * default bpf_read_branch_records() behavior * BPF_F_GET_BRANCH_RECORDS_SIZE flag behavior * error path on non branch record perf events * using helper to write to stack * using helper to write to global On host with hardware counter support: # ./test_progs -t perf_branches #27/1 perf_branches_hw:OK #27/2 perf_branches_no_hw:OK #27 perf_branches:OK Summary: 1/2 PASSED, 0 SKIPPED, 0 FAILED On host without hardware counter support (VM): # ./test_progs -t perf_branches #27/1 perf_branches_hw:OK #27/2 perf_branches_no_hw:OK #27 perf_branches:OK Summary: 1/2 PASSED, 1 SKIPPED, 0 FAILED Also sync tools/include/uapi/linux/bpf.h. Signed-off-by: Daniel Xu <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions