diff options
| author | 2026-04-01 23:29:29 +0900 | |
|---|---|---|
| committer | 2026-04-02 13:23:19 -0700 | |
| commit | f547cf79475fdfee39dcab07a2b381026427a0b3 (patch) | |
| tree | 4760cd69b7a79c6ed7f03d243bd0247c899030a2 /include/linux/clk/ssh:/git@git.zx2c4.com | |
| parent | libbpf: Fix BTF handling in bpf_program__clone() (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 'include/linux/clk/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
