Searched refs:OPTS_GET (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/lib/bpf/ |
| H A D | netlink.c | 331 old_prog_fd = OPTS_GET(opts, old_prog_fd, 0); in bpf_xdp_attach() 546 const char *qdisc = OPTS_GET(hook, qdisc, NULL); in qdisc_config() 548 req->tc.tcm_parent = OPTS_GET(hook, parent, TC_H_ROOT); in qdisc_config() 549 req->tc.tcm_handle = OPTS_GET(hook, handle, 0); in qdisc_config() 557 switch (OPTS_GET(hook, attach_point, 0)) { in attach_point_to_config() 561 if (OPTS_GET(hook, parent, 0)) in attach_point_to_config() 612 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0); in tc_qdisc_modify() 636 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_create() 650 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_destroy() 653 switch (OPTS_GET(hook, attach_point, 0)) { in bpf_tc_hook_destroy() [all …]
|
| H A D | libbpf.c | 3104 strict = !OPTS_GET(opts, relaxed_maps, false); in bpf_object__init_maps() 3105 pin_root_path = OPTS_GET(opts, pin_root_path, NULL); in bpf_object__init_maps() 8316 obj_name = OPTS_GET(opts, object_name, NULL) ?: obj_name; in bpf_object_open() 8324 log_buf = OPTS_GET(opts, kernel_log_buf, NULL); in bpf_object_open() 8325 log_size = OPTS_GET(opts, kernel_log_size, 0); in bpf_object_open() 8326 log_level = OPTS_GET(opts, kernel_log_level, 0); in bpf_object_open() 8332 token_path = OPTS_GET(opts, bpf_token_path, NULL); in bpf_object_open() 8358 btf_tmp_path = OPTS_GET(opts, btf_custom_path, NULL); in bpf_object_open() 8371 kconfig = OPTS_GET(opts, kconfig, NULL); in bpf_object_open() 9969 sec_def->cookie = OPTS_GET(opts, cookie, 0); in libbpf_register_prog_handler() [all …]
|
| H A D | libbpf_internal.h | 335 #define OPTS_GET(opts, field, fallback_value) \ macro
|