aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
diff options
context:
space:
mode:
authorChuang Wang <nashuiliang@gmail.com>2022-06-29 23:18:47 +0800
committerAndrii Nakryiko <andrii@kernel.org>2022-07-05 21:23:03 -0700
commit2655144fb49bae26eae038c6d056f824a7db2726 (patch)
tree777cb0284845c78e21a0d861a5b1eab6e54f73c2 /tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
parent5666fc997ccb93859ea1d4437936c64c6d75c060 (diff)
libbpf: Cleanup the legacy uprobe_event on failed add/attach_event()
A potential scenario, when an error is returned after add_uprobe_event_legacy() in perf_event_uprobe_open_legacy(), or bpf_program__attach_perf_event_opts() in bpf_program__attach_uprobe_opts() returns an error, the uprobe_event that was previously created is not cleaned. So, with this patch, when an error is returned, fix this by adding remove_uprobe_event_legacy() Signed-off-by: Chuang Wang <nashuiliang@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220629151848.65587-4-nashuiliang@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c')
0 files changed, 0 insertions, 0 deletions