diff options
author | 2019-08-20 10:31:50 +0100 | |
---|---|---|
committer | 2019-08-20 09:51:06 -0700 | |
commit | 1b9ed84ecf268904d89edf2908426a8eb3b5a4ba (patch) | |
tree | 66b002286c9a5a1ff26dcb800c4230f7c5213f63 /include/uapi | |
parent | test_bpf: Fix a new clang warning about xor-ing two numbers (diff) | |
download | linux-1b9ed84ecf268904d89edf2908426a8eb3b5a4ba.tar.gz linux-1b9ed84ecf268904d89edf2908426a8eb3b5a4ba.tar.bz2 linux-1b9ed84ecf268904d89edf2908426a8eb3b5a4ba.zip |
bpf: add new BPF_BTF_GET_NEXT_ID syscall command
Add a new command for the bpf() system call: BPF_BTF_GET_NEXT_ID is used
to cycle through all BTF objects loaded on the system.
The motivation is to be able to inspect (list) all BTF objects presents
on the system.
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 0ef594ac3899..8aa6126f0b6e 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -106,6 +106,7 @@ enum bpf_cmd { BPF_TASK_FD_QUERY, BPF_MAP_LOOKUP_AND_DELETE_ELEM, BPF_MAP_FREEZE, + BPF_BTF_GET_NEXT_ID, }; enum bpf_map_type { |