diff options
author | Joanne Koong <[email protected]> | 2022-08-05 10:14:05 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-08-08 15:42:00 +0200 |
commit | 5653f55ebd767b4ef47414ee7f852517993eda6f (patch) | |
tree | 0a66fd3be39b534efd50081de4f1b312823410f0 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | d25f40ff68aa61c838947bb9adee6c6b36e77453 (diff) |
selftests/bpf: Clean up sys_nanosleep uses
This patch cleans up a few things:
* dynptr_fail.c:
There is no sys_nanosleep tracepoint. dynptr_fail only tests
that the prog load fails, so just SEC("?raw_tp") suffices here.
* test_bpf_cookie:
There is no sys_nanosleep kprobe. The prog is loaded in
userspace through bpf_program__attach_kprobe_opts passing in
SYS_NANOSLEEP_KPROBE_NAME, so just SEC("k{ret}probe") suffices here.
* test_helper_restricted:
There is no sys_nanosleep kprobe. test_helper_restricted only tests
that the prog load fails, so just SEC("?kprobe")( suffices here.
There are no functional changes.
Suggested-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Joanne Koong <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions