Home
last modified time | relevance | path

Searched refs:struct_ops (Results 1 – 22 of 22) sorted by relevance

/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-struct_ops.rst4 bpftool-struct_ops
7 tool to register/unregister/introspect BPF struct_ops
17 **bpftool** [*OPTIONS*] **struct_ops** *COMMAND*
27 | **bpftool** **struct_ops { show | list }** [*STRUCT_OPS_MAP*]
28 | **bpftool** **struct_ops dump** [*STRUCT_OPS_MAP*]
29 | **bpftool** **struct_ops register** *OBJ* [*LINK_DIR*]
30 | **bpftool** **struct_ops unregister** *STRUCT_OPS_MAP*
31 | **bpftool** **struct_ops help**
39 bpftool struct_ops { show | list } [*STRUCT_OPS_MAP*]
40 Show brief information about the struct_ops in the system. If
[all …]
H A Dbpftool.rst24 **btf** | **gen** | **struct_ops** | **iter** }
H A Dbpftool-prog.rst57 | **struct_ops** | **fentry** | **fexit** | **freplace** | **sk_lookup**
159 other feature relying on BTF (such as fentry/fexit programs, struct_ops)
H A Dbpftool-map.rst57 | | **queue** | **stack** | **sk_storage** | **struct_ops** | **ringbuf** | **inode_storage**
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_struct_ops_module.c69 skel->struct_ops.testmod_1->data = 13; in test_struct_ops_load()
70 skel->struct_ops.testmod_1->test_2 = skel->progs.test_3; in test_struct_ops_load()
113 skel->struct_ops.testmod_zeroed->zeroed = 0; in test_struct_ops_not_zeroed()
115 skel->struct_ops.testmod_zeroed->zeroed_op = NULL; in test_struct_ops_not_zeroed()
131 skel->struct_ops.testmod_zeroed->zeroed = 0xdeadbeef; in test_struct_ops_not_zeroed()
132 skel->struct_ops.testmod_zeroed->zeroed_op = NULL; in test_struct_ops_not_zeroed()
146 skel->struct_ops.testmod_zeroed->zeroed_op = skel->progs.test_3; in test_struct_ops_not_zeroed()
194 skel->struct_ops.ops->test_1 = NULL; in test_struct_ops_nulled_out_cb()
239 skel->struct_ops.ops->test_1 = skel->progs.test_1_forgotten; /* not anymore */ in test_struct_ops_forgotten_cb()
H A Dstruct_ops_autocreate.c128 skel->struct_ops.testmod_1->test_1 = skel->progs.foo; in autoload_and_shadow_vars()
/linux/tools/sched_ext/include/scx/
H A Dcompat.h167 __skel->struct_ops.__ops_name->hotplug_seq = scx_hotplug_seq(); \
169 if (__skel->struct_ops.__ops_name->cgroup_set_bandwidth && \
172 __skel->struct_ops.__ops_name->cgroup_set_bandwidth = NULL; \
174 if (__skel->struct_ops.__ops_name->cgroup_set_idle && \
177 __skel->struct_ops.__ops_name->cgroup_set_idle = NULL; \
H A Duser_exit_info.h20 u32 __len = (__skel)->struct_ops.__ops_name->exit_dump_len ?: UEI_DUMP_DFL_LEN; \
/linux/Documentation/hid/
H A Dhid-bpf.rst152 HID-BPF is built "on top" of BPF, meaning that we use bpf struct_ops method to
157 1. event processing/filtering with ``SEC("struct_ops/hid_device_event")`` in libbpf
159 3. change of the report descriptor with ``SEC("struct_ops/hid_rdesc_fixup")`` or
160 ``SEC("struct_ops.s/hid_rdesc_fixup")`` in libbpf
176 Note that ``hid_rdesc_fixup`` can be declared as sleepable (``SEC("struct_ops.s/hid_rdesc_fixup")``…
182 Available ``struct_ops`` for HID-BPF:
195 Available API that can be used in all HID-BPF struct_ops programs:
201 Available API that can be used in syscall HID-BPF programs or in sleepable HID-BPF struct_ops progr…
249 programs can be attached to the same device. If a HID-BPF struct_ops has a
251 kernel will return `-EINVAL` when attaching the struct_ops.
[all …]
/linux/tools/sched_ext/
H A Dscx_qmap.c105 skel->struct_ops.qmap_ops->exit_dump_len = strtoul(optarg, NULL, 0); in main()
111 skel->struct_ops.qmap_ops->flags |= SCX_OPS_SWITCH_PARTIAL; in main()
H A DREADME.md111 SEC(".struct_ops.link")
/linux/samples/hid/
H A Dhid_mouse.c115 skel->struct_ops.mouse_invert->hid_id = hid_id; in main()
H A Dhid_surface_dial.c175 skel->struct_ops.surface_dial->hid_id = hid_id; in main()
/linux/Documentation/bpf/
H A Dbpf_licensing.rst79 Congestion Control (struct_ops), as of Aug 2021 - are required to be GPL
83 and struct_ops BPF programs are implicitly calling "GPL only" functions.
/linux/tools/testing/selftests/sched_ext/
H A Dinit_enable_count.c36 skel->struct_ops.init_enable_count_ops->flags |= SCX_OPS_SWITCH_PARTIAL; in run_test()
68 SCX_FAIL_IF(!link, "Failed to attach struct_ops"); in run_test()
79 SCX_FAIL_IF(!link, "Failed to attach struct_ops"); in run_test()
/linux/kernel/
H A DKconfig.preempt186 sched_ext leverages BPF struct_ops feature to define a structure
188 wish to implement scheduling policies. The struct_ops structure
/linux/kernel/bpf/
H A Dbpf_struct_ops.c1255 info->struct_ops.map_id = map->id; in bpf_struct_ops_map_link_fill_link_info()
H A Dbtf.c4359 static const struct btf_kind_operations struct_ops = { variable
5292 [BTF_KIND_STRUCT] = &struct_ops,
5293 [BTF_KIND_UNION] = &struct_ops,
/linux/include/uapi/linux/
H A Dbpf.h931 * Associate a BPF program with a struct_ops map. The struct_ops
1791 __u32 map_fd; /* struct_ops to attach */
1872 /* new struct_ops map fd to update link with */
6786 } struct_ops;
6753 } struct_ops; global() member
/linux/tools/include/uapi/linux/
H A Dbpf.h931 * Associate a BPF program with a struct_ops map. The struct_ops
1791 __u32 map_fd; /* struct_ops to attach */
1872 /* new struct_ops map fd to update link with */
6786 } struct_ops;
6753 } struct_ops; global() member
/linux/net/sched/
H A DKconfig410 This option allows BPF-based queueing disiplines. With BPF struct_ops,
/linux/
H A DMAINTAINERS4914 BPF [NETWORKING] (struct_ops, reuseport)