Home
last modified time | relevance | path

Searched refs:kprobe_link (Results 1 – 2 of 2) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dprobe_user.c13 struct bpf_link *kprobe_link = NULL; in test_probe_user() local
36 kprobe_link = bpf_program__attach_kprobe(kprobe_prog, false, in test_probe_user()
38 if (CHECK(IS_ERR(kprobe_link), "attach_kprobe", in test_probe_user()
39 "err %ld\n", PTR_ERR(kprobe_link))) { in test_probe_user()
40 kprobe_link = NULL; in test_probe_user()
76 bpf_link__destroy(kprobe_link); in test_probe_user()
Dattach_probe.c61 struct bpf_link *kprobe_link = NULL; in test_attach_probe() local
113 kprobe_link = bpf_program__attach_kprobe(kprobe_prog, in test_attach_probe()
116 if (CHECK(IS_ERR(kprobe_link), "attach_kprobe", in test_attach_probe()
117 "err %ld\n", PTR_ERR(kprobe_link))) { in test_attach_probe()
118 kprobe_link = NULL; in test_attach_probe()
189 bpf_link__destroy(kprobe_link); in test_attach_probe()