Lines Matching refs:opts

267 __test_attach_api(const char *binary, const char *pattern, struct bpf_uprobe_multi_opts *opts,  in __test_attach_api()  argument
277 opts->retprobe = false; in __test_attach_api()
279 binary, pattern, opts); in __test_attach_api()
283 opts->retprobe = true; in __test_attach_api()
285 binary, pattern, opts); in __test_attach_api()
289 opts->retprobe = false; in __test_attach_api()
291 binary, pattern, opts); in __test_attach_api()
295 opts->retprobe = true; in __test_attach_api()
297 pid, binary, pattern, opts); in __test_attach_api()
301 opts->retprobe = false; in __test_attach_api()
303 binary, pattern, opts); in __test_attach_api()
330 test_attach_api(const char *binary, const char *pattern, struct bpf_uprobe_multi_opts *opts) in test_attach_api() argument
335 __test_attach_api(binary, pattern, opts, NULL); in test_attach_api()
341 __test_attach_api(binary, pattern, opts, &child); in test_attach_api()
347 __test_attach_api(binary, pattern, opts, &child); in test_attach_api()
352 LIBBPF_OPTS(bpf_uprobe_multi_opts, opts); in test_attach_api_pattern()
354 test_attach_api("/proc/self/exe", "uprobe_multi_func_*", &opts); in test_attach_api_pattern()
355 test_attach_api("/proc/self/exe", "uprobe_multi_func_?", &opts); in test_attach_api_pattern()
360 LIBBPF_OPTS(bpf_uprobe_multi_opts, opts); in test_attach_api_syms()
367 opts.syms = syms; in test_attach_api_syms()
368 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms()
369 test_attach_api("/proc/self/exe", NULL, &opts); in test_attach_api_syms()
374 LIBBPF_OPTS(bpf_link_create_opts, opts); in test_attach_api_fails()
387 opts.uprobe_multi.path = path; in test_attach_api_fails()
388 opts.uprobe_multi.offsets = &offset; in test_attach_api_fails()
389 opts.uprobe_multi.cnt = INT_MAX; in test_attach_api_fails()
390 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
397 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails()
402 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
410 opts.uprobe_multi.path = path; in test_attach_api_fails()
411 opts.uprobe_multi.offsets = (unsigned long *) &offset; in test_attach_api_fails()
412 opts.uprobe_multi.cnt = 1; in test_attach_api_fails()
414 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
421 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails()
426 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
433 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails()
439 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
447 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails()
452 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
459 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails()
465 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
472 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails()
478 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
485 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails()
492 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
499 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails()
507 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
514 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails()
518 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
525 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails()
532 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
564 LIBBPF_OPTS(bpf_uprobe_multi_opts, opts); in attach_uprobe_fail_trap()
572 opts.syms = syms; in attach_uprobe_fail_trap()
573 opts.cnt = ARRAY_SIZE(syms); in attach_uprobe_fail_trap()
576 "/proc/self/exe", NULL, &opts); in attach_uprobe_fail_trap()
592 LIBBPF_OPTS(bpf_link_create_opts, opts); in attach_uprobe_fail_refctr()
628 opts.uprobe_multi.path = path; in attach_uprobe_fail_refctr()
629 opts.uprobe_multi.offsets = (const unsigned long *) &offsets; in attach_uprobe_fail_refctr()
630 opts.uprobe_multi.ref_ctr_offsets = (const unsigned long *) &ref_ctr_offsets; in attach_uprobe_fail_refctr()
631 opts.uprobe_multi.cnt = 3; in attach_uprobe_fail_refctr()
633 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in attach_uprobe_fail_refctr()
662 LIBBPF_OPTS(bpf_link_create_opts, opts); in __test_link_api()
678 opts.uprobe_multi.path = path; in __test_link_api()
679 opts.uprobe_multi.offsets = offsets; in __test_link_api()
680 opts.uprobe_multi.cnt = ARRAY_SIZE(syms); in __test_link_api()
681 opts.uprobe_multi.pid = child ? child->pid : 0; in __test_link_api()
687 opts.kprobe_multi.flags = 0; in __test_link_api()
689 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in __test_link_api()
693 opts.kprobe_multi.flags = BPF_F_UPROBE_MULTI_RETURN; in __test_link_api()
695 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in __test_link_api()
699 opts.kprobe_multi.flags = 0; in __test_link_api()
701 link3_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in __test_link_api()
705 opts.kprobe_multi.flags = BPF_F_UPROBE_MULTI_RETURN; in __test_link_api()
707 link4_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in __test_link_api()
711 opts.kprobe_multi.flags = 0; in __test_link_api()
712 opts.uprobe_multi.pid = 0; in __test_link_api()
714 link_extra_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in __test_link_api()
796 LIBBPF_OPTS(bpf_uprobe_multi_opts, opts); in uprobe_attach()
801 opts.offsets = &offset; in uprobe_attach()
802 opts.cnt = 1; in uprobe_attach()
810 opts.retprobe = idx == 1; in uprobe_attach()
811 opts.session = idx == 2 || idx == 3; in uprobe_attach()
813 *link = bpf_program__attach_uprobe_multi(prog, 0, "/proc/self/exe", NULL, &opts); in uprobe_attach()
1071 LIBBPF_OPTS(bpf_uprobe_multi_opts, opts, .retprobe = retprobe); in run_pid_filter()
1087 "uprobe_multi_func_1", &opts); in run_pid_filter()
1124 LIBBPF_OPTS(bpf_kprobe_multi_opts, opts); in test_session_skel_api()
1168 LIBBPF_OPTS(bpf_kprobe_multi_opts, opts); in test_session_single_skel_api()