diff options
| author | Hoyeon Lee <hoyeon.lee@suse.com> | 2026-04-01 23:29:29 +0900 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2026-04-02 13:23:19 -0700 |
| commit | f547cf79475fdfee39dcab07a2b381026427a0b3 (patch) | |
| tree | 4760cd69b7a79c6ed7f03d243bd0247c899030a2 /tools/perf/scripts/python | |
| parent | 1cc96e0e20489159398009d2f453e59c10e413c9 (diff) | |
libbpf: Use direct error codes for kprobe/uprobe attach
perf_event_open_probe() and perf_event_{k,u}probe_open_legacy() helpers
are returning negative error codes directly on failure. This commit
changes bpf_program__attach_{k,u}probe_opts() to use those return
values directly instead of re-reading possibly changed errno.
Signed-off-by: Hoyeon Lee <hoyeon.lee@suse.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20260401143116.185049-2-hoyeon.lee@suse.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
