Lines Matching refs:opts

24 	DECLARE_LIBBPF_OPTS(bpf_kprobe_opts, opts);  in kprobe_subtest()
29 opts.bpf_cookie = 0x1; in kprobe_subtest()
30 opts.retprobe = false; in kprobe_subtest()
32 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
36 opts.bpf_cookie = 0x2; in kprobe_subtest()
37 opts.retprobe = false; in kprobe_subtest()
39 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
44 opts.bpf_cookie = 0x10; in kprobe_subtest()
45 opts.retprobe = true; in kprobe_subtest()
47 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
51 opts.bpf_cookie = 0x20; in kprobe_subtest()
52 opts.retprobe = true; in kprobe_subtest()
54 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
104 LIBBPF_OPTS(bpf_link_create_opts, opts); in kprobe_multi_link_api_subtest()
144 opts.kprobe_multi.addrs = (const unsigned long *) &addrs; in kprobe_multi_link_api_subtest()
145 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs); in kprobe_multi_link_api_subtest()
146 opts.kprobe_multi.cookies = (const __u64 *) &cookies; in kprobe_multi_link_api_subtest()
149 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts); in kprobe_multi_link_api_subtest()
162 opts.kprobe_multi.flags = BPF_F_KPROBE_MULTI_RETURN; in kprobe_multi_link_api_subtest()
165 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts); in kprobe_multi_link_api_subtest()
180 LIBBPF_OPTS(bpf_kprobe_multi_opts, opts); in kprobe_multi_attach_api_subtest()
211 opts.syms = syms; in kprobe_multi_attach_api_subtest()
212 opts.cnt = ARRAY_SIZE(syms); in kprobe_multi_attach_api_subtest()
213 opts.cookies = cookies; in kprobe_multi_attach_api_subtest()
216 NULL, &opts); in kprobe_multi_attach_api_subtest()
229 opts.retprobe = true; in kprobe_multi_attach_api_subtest()
232 NULL, &opts); in kprobe_multi_attach_api_subtest()
275 LIBBPF_OPTS(bpf_uprobe_multi_opts, opts); in uprobe_multi_attach_api_subtest()
287 opts.syms = syms; in uprobe_multi_attach_api_subtest()
288 opts.cnt = ARRAY_SIZE(syms); in uprobe_multi_attach_api_subtest()
289 opts.cookies = &cookies[0]; in uprobe_multi_attach_api_subtest()
296 "/proc/self/exe", NULL, &opts); in uprobe_multi_attach_api_subtest()
304 opts.retprobe = true; in uprobe_multi_attach_api_subtest()
306 "/proc/self/exe", NULL, &opts); in uprobe_multi_attach_api_subtest()
320 DECLARE_LIBBPF_OPTS(bpf_uprobe_opts, opts); in uprobe_subtest()
330 opts.bpf_cookie = 0x100; in uprobe_subtest()
331 opts.retprobe = false; in uprobe_subtest()
333 "/proc/self/exe", uprobe_offset, &opts); in uprobe_subtest()
337 opts.bpf_cookie = 0x200; in uprobe_subtest()
338 opts.retprobe = false; in uprobe_subtest()
340 "/proc/self/exe", uprobe_offset, &opts); in uprobe_subtest()
345 opts.bpf_cookie = 0x1000; in uprobe_subtest()
346 opts.retprobe = true; in uprobe_subtest()
348 "/proc/self/exe", uprobe_offset, &opts); in uprobe_subtest()
352 opts.bpf_cookie = 0x2000; in uprobe_subtest()
353 opts.retprobe = true; in uprobe_subtest()
355 "/proc/self/exe", uprobe_offset, &opts); in uprobe_subtest()
374 DECLARE_LIBBPF_OPTS(bpf_tracepoint_opts, opts); in tp_subtest()
378 opts.bpf_cookie = 0x10000; in tp_subtest()
380 "syscalls", "sys_enter_nanosleep", &opts); in tp_subtest()
385 opts.bpf_cookie = 0x20000; in tp_subtest()
387 "syscalls", "sys_enter_nanosleep", &opts); in tp_subtest()
407 opts.bpf_cookie = 0x40000; in tp_subtest()
409 "syscalls", "sys_enter_nanosleep", &opts); in tp_subtest()
443 DECLARE_LIBBPF_OPTS(bpf_perf_event_opts, opts); in pe_subtest()
459 opts.bpf_cookie = 0x100000; in pe_subtest()
460 link = bpf_program__attach_perf_event_opts(skel->progs.handle_pe, pfd, &opts); in pe_subtest()
478 opts.bpf_cookie = 0x200000; in pe_subtest()
479 link = bpf_program__attach_perf_event_opts(skel->progs.handle_pe, pfd, &opts); in pe_subtest()
497 LIBBPF_OPTS(bpf_test_run_opts, opts); in tracing_subtest()
525 bpf_prog_test_run_opts(prog_fd, &opts); in tracing_subtest()
528 bpf_prog_test_run_opts(prog_fd, &opts); in tracing_subtest()