Home
last modified time | relevance | path

Searched refs:jmp_table (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/drivers/hid/bpf/
Dhid_bpf_jmp_table.c51 static struct hid_bpf_jmp_table jmp_table; variable
84 FOR_ENTRIES(i, jmp_table.tail, jmp_table.head) { in hid_bpf_program_count()
85 struct hid_bpf_prog_entry *entry = &jmp_table.entries[i]; in hid_bpf_program_count()
122 if (!test_bit(idx, jmp_table.enabled)) in hid_bpf_prog_run()
177 FOR_ENTRIES(i, jmp_table.tail, jmp_table.head) { in hid_bpf_populate_hdev()
178 struct hid_bpf_prog_entry *entry = &jmp_table.entries[i]; in hid_bpf_populate_hdev()
181 test_bit(entry->idx, jmp_table.enabled)) in hid_bpf_populate_hdev()
193 jmp_table.progs[idx] = NULL; in __hid_bpf_do_release_prog()
201 if (!jmp_table.map) in hid_bpf_release_progs()
205 map_fd = skel_map_get_fd_by_id(jmp_table.map->id); in hid_bpf_release_progs()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dtailcall1.c11 } jmp_table SEC(".maps");
29 bpf_tail_call_static(skb, &jmp_table, 0); in entry()
30 bpf_tail_call_static(skb, &jmp_table, 0); in entry()
31 bpf_tail_call_static(skb, &jmp_table, 0); in entry()
32 bpf_tail_call_static(skb, &jmp_table, 0); in entry()
34 bpf_tail_call_static(skb, &jmp_table, 1); in entry()
35 bpf_tail_call_static(skb, &jmp_table, 1); in entry()
36 bpf_tail_call_static(skb, &jmp_table, 1); in entry()
37 bpf_tail_call_static(skb, &jmp_table, 1); in entry()
39 bpf_tail_call_static(skb, &jmp_table, 2); in entry()
[all …]
Dtailcall2.c11 } jmp_table SEC(".maps");
16 bpf_tail_call_static(skb, &jmp_table, 1); in classifier_0()
23 bpf_tail_call_static(skb, &jmp_table, 2); in classifier_1()
36 bpf_tail_call_static(skb, &jmp_table, 4); in classifier_3()
43 bpf_tail_call_static(skb, &jmp_table, 3); in classifier_4()
50 bpf_tail_call_static(skb, &jmp_table, 0); in entry()
52 bpf_tail_call_static(skb, &jmp_table, 2); in entry()
54 bpf_tail_call_static(skb, &jmp_table, 3); in entry()
Dtailcall_bpf2bpf2.c11 } jmp_table SEC(".maps");
17 bpf_tail_call_static(skb, &jmp_table, 1); in subprog_tail()
19 bpf_tail_call_static(skb, &jmp_table, 0); in subprog_tail()
35 bpf_tail_call_static(skb, &jmp_table, 0); in entry()
Dtailcall_bpf2bpf3.c12 } jmp_table SEC(".maps");
20 bpf_tail_call_static(skb, &jmp_table, 10); in subprog_tail2()
22 bpf_tail_call_static(skb, &jmp_table, 1); in subprog_tail2()
34 bpf_tail_call_static(skb, &jmp_table, 0); in subprog_tail()
Dtailcall_bpf2bpf4.c17 } jmp_table SEC(".maps");
35 bpf_tail_call_static(skb, &jmp_table, 2); in subprog_tail_2()
42 bpf_tail_call_static(skb, &jmp_table, 1); in subprog_tail_1()
49 bpf_tail_call_static(skb, &jmp_table, 0); in subprog_tail()
Dtailcall3.c11 } jmp_table SEC(".maps");
19 bpf_tail_call_static(skb, &jmp_table, 0); in classifier_0()
26 bpf_tail_call_static(skb, &jmp_table, 0); in entry()
Dtailcall6.c11 } jmp_table SEC(".maps");
21 bpf_tail_call(skb, &jmp_table, which); in classifier_0()
30 bpf_tail_call(skb, &jmp_table, which); in entry()
Dtailcall_bpf2bpf1.c10 } jmp_table SEC(".maps");
24 bpf_tail_call_static(skb, &jmp_table, 0); in subprog_tail()
32 bpf_tail_call_static(skb, &jmp_table, 1); in entry()
Dtailcall4.c11 } jmp_table SEC(".maps");
28 bpf_tail_call(skb, &jmp_table, selector); in entry()
Dtailcall5.c11 } jmp_table SEC(".maps");
35 bpf_tail_call(skb, &jmp_table, idx); in entry()
Dtailcall_bpf2bpf6.c13 } jmp_table SEC(".maps");
30 bpf_tail_call_static(skb, &jmp_table, 0); in subprog_tail()
Dbpf_flow.c66 } jmp_table SEC(".maps");
122 bpf_tail_call_static(skb, &jmp_table, IP); in parse_eth_proto()
125 bpf_tail_call_static(skb, &jmp_table, IPV6); in parse_eth_proto()
129 bpf_tail_call_static(skb, &jmp_table, MPLS); in parse_eth_proto()
133 bpf_tail_call_static(skb, &jmp_table, VLAN); in parse_eth_proto()
263 bpf_tail_call_static(skb, &jmp_table, IPV6OP); in parse_ipv6_proto()
266 bpf_tail_call_static(skb, &jmp_table, IPV6FR); in parse_ipv6_proto()
/linux-6.6.21/Documentation/bpf/
Dprog_flow_dissector.rst130 * ``jmp_table`` map that contains sub-programs for each supported L3 protocol
135 jmp_table is used instead to handle multiple levels of encapsulation (and
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c632 err = init_prog_array(skel->obj, skel->maps.jmp_table); in test_flow_dissector()
Dtailcalls.c857 map_fd = bpf_map__fd(obj->maps.jmp_table); in test_tailcall_bpf2bpf_6()
/linux-6.6.21/tools/bpf/bpftool/Documentation/
Dbpftool-map.rst258 294: prog_array name jmp_table flags 0x0