Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtailcalls.c19 struct bpf_map *prog_array; in test_tailcall_1() local
43 prog_array = bpf_object__find_map_by_name(obj, "jmp_table"); in test_tailcall_1()
44 if (CHECK_FAIL(!prog_array)) in test_tailcall_1()
47 map_fd = bpf_map__fd(prog_array); in test_tailcall_1()
51 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1()
67 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1()
81 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1()
101 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1()
102 j = bpf_map__max_entries(prog_array) - 1 - i; in test_tailcall_1()
118 for (i = 0; i < bpf_map__max_entries(prog_array); in test_tailcall_1()
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.c102 bool prog_array = strstr(map_paths[i], "prog_array") != NULL; in test_unpriv_bpf_disabled_positive() local
116 if (prog_array) { in test_unpriv_bpf_disabled_positive()
253 map_fds[6] = bpf_map__fd(skel->maps.prog_array); in test_unpriv_bpf_disabled()
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.c91 struct bpf_prog_array *prog_array) in fill_prog_array() argument
97 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**
252 294: prog_array name jmp_table flags 0x0
/linux/kernel/trace/
H A Dbpf_trace.c124 bpf_prog_inc_misses_counters(rcu_dereference(call->prog_array)); in trace_call_bpf()
133 * whether call->prog_array is empty or not, which is in trace_call_bpf()
136 * If bpf_prog_array_valid() fetched prog_array was in trace_call_bpf()
139 * If it turns out that prog_array is NULL then, we bail out. in trace_call_bpf()
141 * was NULL, you'll skip the prog_array with the risk of missing in trace_call_bpf()
146 ret = bpf_prog_run_array(rcu_dereference(call->prog_array), in trace_call_bpf()
2111 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in pe_prog_is_valid_access()
2125 rcu_assign_pointer(event->tp_event->prog_array, new_array); in pe_prog_is_valid_access()
2145 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in pe_prog_convert_ctx_access()
2153 rcu_assign_pointer(event->tp_event->prog_array, new_arra in pe_prog_convert_ctx_access()
[all...]
H A Dtrace_uprobe.c1409 array = rcu_dereference_check(call->prog_array, rcu_read_lock_trace_held()); in __uprobe_perf_func()
/linux/include/linux/
H A Dtrace_events.h389 struct bpf_prog_array __rcu *prog_array; member
452 return !!READ_ONCE(call->prog_array); in bpf_prog_array_valid()
/linux/tools/bpf/bpftool/bash-completion/
H A Dbpftool200 prog_array)
246 prog_array)
794 prog_array)