Home
last modified time | relevance | path

Searched refs:prog_array (Results 1 – 11 of 11) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtailcalls.c23 struct bpf_map *prog_array; in test_tailcall_1()
47 prog_array = bpf_object__find_map_by_name(obj, "jmp_table"); in test_tailcall_1()
48 if (CHECK_FAIL(!prog_array)) in test_tailcall_1()
51 map_fd = bpf_map__fd(prog_array); in test_tailcall_1()
55 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1()
71 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1()
85 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1()
105 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1()
106 j = bpf_map__max_entries(prog_array) - 1 - i; in test_tailcall_1()
122 for (i = 0; i < bpf_map__max_entries(prog_array); in test_tailcall_1()
19 struct bpf_map *prog_array; test_tailcall_1() local
155 struct bpf_map *prog_array; test_tailcall_2() local
234 struct bpf_map *prog_array, *data_map; test_tailcall_count() local
415 struct bpf_map *prog_array, *data_map; test_tailcall_4() local
505 struct bpf_map *prog_array, *data_map; test_tailcall_5() local
595 struct bpf_map *prog_array; test_tailcall_bpf2bpf_1() local
679 struct bpf_map *prog_array, *data_map; test_tailcall_bpf2bpf_2() local
759 struct bpf_map *prog_array; test_tailcall_bpf2bpf_3() local
854 struct bpf_map *prog_array, *data_map; test_tailcall_bpf2bpf_4() local
1017 struct bpf_map *prog_array, *data_map; test_tailcall_bpf2bpf_fentry_entry() local
1202 struct bpf_map *prog_array, *data_map; test_tailcall_hierarchy_count() local
[all...]
H A Dunpriv_bpf_disabled.c83 bool prog_array = strstr(map_paths[i], "prog_array") != NULL; in test_unpriv_bpf_disabled_positive()
97 if (prog_array) { in test_unpriv_bpf_disabled_positive()
210 PINPATH "prog_array" }; in test_unpriv_bpf_disabled_negative()
234 map_fds[6] = bpf_map__fd(skel->maps.prog_array); in test_unpriv_bpf_disabled()
102 bool prog_array = strstr(map_paths[i], "prog_array") != NULL; test_unpriv_bpf_disabled_positive() local
H A Dflow_dissector_classification.c502 struct bpf_map *prog_array = skel->maps.jmp_table; in attach_and_configure_program() local
515 map_fd = bpf_map__fd(prog_array); in attach_and_configure_program()
519 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in attach_and_configure_program()
H A Dflow_dissector.c625 static int init_prog_array(struct bpf_object *obj, struct bpf_map *prog_array) in init_prog_array() argument
631 map_fd = bpf_map__fd(prog_array); in init_prog_array()
635 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in init_prog_array()
/linux/tools/testing/selftests/bpf/
H A Dflow_dissector_load.h18 struct bpf_map *prog_array, *keys; in bpf_flow_load() local
35 prog_array = bpf_object__find_map_by_name(*obj, map_name); in bpf_flow_load()
36 if (!prog_array) in bpf_flow_load()
39 prog_array_fd = bpf_map__fd(prog_array); in bpf_flow_load()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_unpriv_bpf_disabled.c59 } prog_array SEC(".maps");
H A Dmap_ptr_kern.c181 struct bpf_array *prog_array = (struct bpf_array *)&m_prog_array; in check_prog_array() local
184 VERIFY(check_default(&prog_array->map, map)); in check_prog_array()
/linux/kernel/bpf/
H A Dnet_namespace.c90 struct bpf_prog_array *prog_array) in fill_prog_array() argument
96 prog_array->items[i].prog = pos->link.prog; in fill_prog_array()
/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-map.rst52 | *TYPE* := { **hash** | **array** | **prog_array** | **perf_event_array** | **percpu_hash**
253 294: prog_array name jmp_table flags 0x0
/linux/kernel/trace/
H A Dbpf_trace.c125 bpf_prog_inc_misses_counters(rcu_dereference(call->prog_array)); in trace_call_bpf()
134 * whether call->prog_array is empty or not, which is in trace_call_bpf()
137 * If bpf_prog_array_valid() fetched prog_array was in trace_call_bpf()
140 * If it turns out that prog_array is NULL then, we bail out. in trace_call_bpf()
142 * was NULL, you'll skip the prog_array with the risk of missing in trace_call_bpf()
147 ret = bpf_prog_run_array(rcu_dereference(call->prog_array), in trace_call_bpf()
175 struct bpf_prog_array *prog_array; in bpf_probe_read_user_common()
180 prog_array = rcu_dereference_check(call->prog_array, in bpf_probe_read_user_common()
182 return bpf_prog_run_array_sleepable(prog_array, ct in bpf_probe_read_user_common()
[all...]
H A Dtrace_uprobe.c1405 array = rcu_dereference_check(call->prog_array, rcu_read_lock_trace_held()); in __uprobe_perf_func()