diff options
| author | Tejun Heo <[email protected]> | 2023-02-23 01:29:12 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-02-23 16:33:05 +0000 |
| commit | 332ea1f697be148bd5e66475d82b5ecc5084da65 (patch) | |
| tree | 91c5b5b1138cc7fd1d210dfbaa161af0c9e0054e /tools/testing/selftests/bpf/prog_tests/tracing_struct.c | |
| parent | bpf, docs: Add explanation of endianness (diff) | |
| download | kernel-332ea1f697be148bd5e66475d82b5ecc5084da65.tar.gz kernel-332ea1f697be148bd5e66475d82b5ecc5084da65.zip | |
bpf: Add bpf_cgroup_from_id() kfunc
cgroup ID is an userspace-visible 64bit value uniquely identifying a given
cgroup. As the IDs are used widely, it's useful to be able to look up the
matching cgroups. Add bpf_cgroup_from_id().
v2: Separate out selftest into its own patch as suggested by Alexei.
Signed-off-by: Tejun Heo <[email protected]>
Link: https://lore.kernel.org/r/Y/bBaG96t0/gQl9/@slm.duckdns.org
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions
