aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2024-03-15 11:48:59 -0700
committerAndrii Nakryiko <[email protected]>2024-03-19 14:24:37 -0700
commit84239a24d10174fcfc7d6760cb120435a6ff69af (patch)
tree9590038ef860dc7d5a538b15bbd15d30144dcd16 /tools/perf/scripts/python/syscall-counts-by-pid.py
parenteb166e522c77699fc19bfa705652327a1e51a117 (diff)
selftests/bpf: Replace CHECK with ASSERT_* in ns_current_pid_tgid test
Replace CHECK in selftest ns_current_pid_tgid with recommended ASSERT_* style. I also shortened subtest name as the prefix of subtest name is covered by the test name already. This patch does fix a testing issue. Currently even if bss->user_{pid,tgid} is not correct, the test still passed since the clone func returns 0. I fixed it to return a non-zero value if bss->user_{pid,tgid} is incorrect. Signed-off-by: Yonghong Song <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions