Lines Matching refs:opts

23 	DECLARE_LIBBPF_OPTS(bpf_kprobe_opts, opts);  in kprobe_subtest()
28 opts.bpf_cookie = 0x1; in kprobe_subtest()
29 opts.retprobe = false; in kprobe_subtest()
31 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
35 opts.bpf_cookie = 0x2; in kprobe_subtest()
36 opts.retprobe = false; in kprobe_subtest()
38 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
43 opts.bpf_cookie = 0x10; in kprobe_subtest()
44 opts.retprobe = true; in kprobe_subtest()
46 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
50 opts.bpf_cookie = 0x20; in kprobe_subtest()
51 opts.retprobe = true; in kprobe_subtest()
53 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
103 LIBBPF_OPTS(bpf_link_create_opts, opts); in kprobe_multi_link_api_subtest()
143 opts.kprobe_multi.addrs = (const unsigned long *) &addrs; in kprobe_multi_link_api_subtest()
144 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs); in kprobe_multi_link_api_subtest()
145 opts.kprobe_multi.cookies = (const __u64 *) &cookies; in kprobe_multi_link_api_subtest()
148 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts); in kprobe_multi_link_api_subtest()
161 opts.kprobe_multi.flags = BPF_F_KPROBE_MULTI_RETURN; in kprobe_multi_link_api_subtest()
164 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts); in kprobe_multi_link_api_subtest()
179 LIBBPF_OPTS(bpf_kprobe_multi_opts, opts); in kprobe_multi_attach_api_subtest()
210 opts.syms = syms; in kprobe_multi_attach_api_subtest()
211 opts.cnt = ARRAY_SIZE(syms); in kprobe_multi_attach_api_subtest()
212 opts.cookies = cookies; in kprobe_multi_attach_api_subtest()
215 NULL, &opts); in kprobe_multi_attach_api_subtest()
228 opts.retprobe = true; in kprobe_multi_attach_api_subtest()
231 NULL, &opts); in kprobe_multi_attach_api_subtest()
244 DECLARE_LIBBPF_OPTS(bpf_uprobe_opts, opts); in uprobe_subtest()
254 opts.bpf_cookie = 0x100; in uprobe_subtest()
255 opts.retprobe = false; in uprobe_subtest()
257 "/proc/self/exe", uprobe_offset, &opts); in uprobe_subtest()
261 opts.bpf_cookie = 0x200; in uprobe_subtest()
262 opts.retprobe = false; in uprobe_subtest()
264 "/proc/self/exe", uprobe_offset, &opts); in uprobe_subtest()
269 opts.bpf_cookie = 0x1000; in uprobe_subtest()
270 opts.retprobe = true; in uprobe_subtest()
272 "/proc/self/exe", uprobe_offset, &opts); in uprobe_subtest()
276 opts.bpf_cookie = 0x2000; in uprobe_subtest()
277 opts.retprobe = true; in uprobe_subtest()
279 "/proc/self/exe", uprobe_offset, &opts); in uprobe_subtest()
298 DECLARE_LIBBPF_OPTS(bpf_tracepoint_opts, opts); in tp_subtest()
302 opts.bpf_cookie = 0x10000; in tp_subtest()
304 "syscalls", "sys_enter_nanosleep", &opts); in tp_subtest()
309 opts.bpf_cookie = 0x20000; in tp_subtest()
311 "syscalls", "sys_enter_nanosleep", &opts); in tp_subtest()
331 opts.bpf_cookie = 0x40000; in tp_subtest()
333 "syscalls", "sys_enter_nanosleep", &opts); in tp_subtest()
367 DECLARE_LIBBPF_OPTS(bpf_perf_event_opts, opts); in pe_subtest()
383 opts.bpf_cookie = 0x100000; in pe_subtest()
384 link = bpf_program__attach_perf_event_opts(skel->progs.handle_pe, pfd, &opts); in pe_subtest()
402 opts.bpf_cookie = 0x200000; in pe_subtest()
403 link = bpf_program__attach_perf_event_opts(skel->progs.handle_pe, pfd, &opts); in pe_subtest()
421 LIBBPF_OPTS(bpf_test_run_opts, opts); in tracing_subtest()
449 bpf_prog_test_run_opts(prog_fd, &opts); in tracing_subtest()
452 bpf_prog_test_run_opts(prog_fd, &opts); in tracing_subtest()