Searched refs:prog_array (Results 1 – 11 of 11) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | tailcalls.c | 26 struct bpf_map *prog_array; in test_tailcall_1() local 50 prog_array = bpf_object__find_map_by_name(obj, "jmp_table"); in test_tailcall_1() 51 if (CHECK_FAIL(!prog_array)) in test_tailcall_1() 54 map_fd = bpf_map__fd(prog_array); in test_tailcall_1() 58 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1() 74 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1() 88 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1() 108 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1() 109 j = bpf_map__max_entries(prog_array) - 1 - i; in test_tailcall_1() 125 for (i = 0; i < bpf_map__max_entries(prog_array); i++) { in test_tailcall_1() [all …]
|
| H A D | unpriv_bpf_disabled.c | 83 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 D | flow_dissector_classification.c | 502 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 D | flow_dissector.c | 625 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 D | flow_dissector_load.h | 18 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 D | test_unpriv_bpf_disabled.c | 59 } prog_array SEC(".maps");
|
| H A D | map_ptr_kern.c | 181 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 D | net_namespace.c | 90 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/kernel/trace/ |
| H A D | bpf_trace.c | 125 bpf_prog_inc_misses_counters(rcu_dereference(call->prog_array)); 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 trace_call_bpf_faultable() local 180 prog_array = rcu_dereference_check(call->prog_array, in trace_call_bpf_faultable() 182 return bpf_prog_run_array_sleepable(prog_array, ctx, bpf_prog_run); in trace_call_bpf_faultable() 1973 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_attach_bpf_prog() 1987 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_attach_bpf_prog() 2007 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_detach_bpf_prog() 2015 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_detach_bpf_prog() 2067 progs = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_query_prog_array()
|
| H A D | trace_uprobe.c | 1408 array = rcu_dereference_check(call->prog_array, rcu_read_lock_trace_held()); in __uprobe_perf_func()
|
| /linux/tools/bpf/bpftool/Documentation/ |
| H A D | bpftool-map.rst | 52 | *TYPE* := { **hash** | **array** | **prog_array** | **perf_event_array** | **percpu_hash** 253 294: prog_array name jmp_table flags 0x0
|