diff options
author | Quentin Monnet <quentin.monnet@netronome.com> | 2019-08-20 14:53:46 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-08-20 16:19:12 +0200 |
commit | 3481e64bbe9876e359aec74c9e93039b94f678b0 (patch) | |
tree | d559bb98a7c7bc23bc2aea6bb69d32880c5679cb /drivers/gnss | |
parent | ede6bc88d6bbe16a938de2b00f60f4e03768c988 (diff) |
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 'drivers/gnss')
0 files changed, 0 insertions, 0 deletions