Lines Matching refs:opts

107 	LIBBPF_OPTS(bpf_prog_load_opts, opts,  in probe_prog_load()
118 opts.expected_attach_type = BPF_CGROUP_INET4_CONNECT; in probe_prog_load()
121 opts.expected_attach_type = BPF_CGROUP_GETSOCKOPT; in probe_prog_load()
124 opts.expected_attach_type = BPF_SK_LOOKUP; in probe_prog_load()
127 opts.kern_version = get_kernel_version(); in probe_prog_load()
130 opts.expected_attach_type = BPF_LIRC_MODE2; in probe_prog_load()
134 opts.log_buf = buf; in probe_prog_load()
135 opts.log_size = sizeof(buf); in probe_prog_load()
136 opts.log_level = 1; in probe_prog_load()
138 opts.expected_attach_type = BPF_TRACE_FENTRY; in probe_prog_load()
140 opts.expected_attach_type = BPF_MODIFY_RETURN; in probe_prog_load()
141 opts.attach_btf_id = 1; in probe_prog_load()
147 opts.log_buf = buf; in probe_prog_load()
148 opts.log_size = sizeof(buf); in probe_prog_load()
149 opts.log_level = 1; in probe_prog_load()
150 opts.attach_btf_id = 1; in probe_prog_load()
156 opts.prog_flags = BPF_F_SLEEPABLE; in probe_prog_load()
185 opts.expected_attach_type = BPF_NETFILTER; in probe_prog_load()
191 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in probe_prog_load()
205 int libbpf_probe_bpf_prog_type(enum bpf_prog_type prog_type, const void *opts) in libbpf_probe_bpf_prog_type() argument
214 if (opts) in libbpf_probe_bpf_prog_type()
233 LIBBPF_OPTS(bpf_btf_load_opts, opts, in libbpf__load_raw_btf()
249 btf_fd = bpf_btf_load(raw_btf, btf_len, &opts); in libbpf__load_raw_btf()
284 LIBBPF_OPTS(bpf_map_create_opts, opts); in probe_map_create()
300 opts.map_flags = BPF_F_NO_PREALLOC; in probe_map_create()
320 opts.map_flags = BPF_F_NO_PREALLOC; in probe_map_create()
333 opts.btf_vmlinux_value_type_id = 1; in probe_map_create()
334 opts.value_type_btf_obj_fd = -1; in probe_map_create()
345 opts.map_extra = 0; /* can mmap() at any address */ in probe_map_create()
346 opts.map_flags = BPF_F_MMAPABLE; in probe_map_create()
379 opts.inner_map_fd = fd_inner; in probe_map_create()
383 opts.btf_fd = btf_fd; in probe_map_create()
384 opts.btf_key_type_id = btf_key_type_id; in probe_map_create()
385 opts.btf_value_type_id = btf_value_type_id; in probe_map_create()
388 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, &opts); in probe_map_create()
405 int libbpf_probe_bpf_map_type(enum bpf_map_type map_type, const void *opts) in libbpf_probe_bpf_map_type() argument
409 if (opts) in libbpf_probe_bpf_map_type()
417 const void *opts) in libbpf_probe_bpf_helper() argument
427 if (opts) in libbpf_probe_bpf_helper()