aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tnum.h
diff options
context:
space:
mode:
authorQuentin Monnet <quentin.monnet@netronome.com>2019-08-20 14:53:46 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2019-08-20 16:19:12 +0200
commit3481e64bbe9876e359aec74c9e93039b94f678b0 (patch)
treed559bb98a7c7bc23bc2aea6bb69d32880c5679cb /include/linux/tnum.h
parentbpf: Use PTR_ERR_OR_ZERO in xsk_map_inc() (diff)
downloadlinux-dev-3481e64bbe9876e359aec74c9e93039b94f678b0.tar.xz
linux-dev-3481e64bbe9876e359aec74c9e93039b94f678b0.zip
bpf: add BTF ids in procfs for file descriptors to BTF objects
Implement the show_fdinfo hook for BTF FDs file operations, and make it print the id of the BTF object. This allows for a quick retrieval of the BTF id from its FD; or it can help understanding what type of object (BTF) the file descriptor points to. v2: - Do not expose data_size, only btf_id, in FD info. Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/linux/tnum.h')
0 files changed, 0 insertions, 0 deletions