summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/xlated_dumper.h
diff options
context:
space:
mode:
authorYafang Shao <laoar.shao@gmail.com>2023-07-09 02:56:22 +0000
committerAlexei Starovoitov <ast@kernel.org>2023-07-11 20:07:50 -0700
commitdc6519445b33bcd9c0ce69c914979a3c0c6e80ce (patch)
tree2c7fb05d7b74b32a3753a2b70c72d53ae59910dc /tools/bpf/bpftool/xlated_dumper.h
parent7ac8d0d2619256cc13eaf4a889b3177a1607b02d (diff)
bpftool: Dump the kernel symbol's module name
If the kernel symbol is in a module, we will dump the module name as well. The square brackets around the module name are trimmed. Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Reviewed-by: Quentin Monnet <quentin@isovalent.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Link: https://lore.kernel.org/r/20230709025630.3735-3-laoar.shao@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/bpf/bpftool/xlated_dumper.h')
-rw-r--r--tools/bpf/bpftool/xlated_dumper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/xlated_dumper.h b/tools/bpf/bpftool/xlated_dumper.h
index 9a946377b0e6..db3ba0671501 100644
--- a/tools/bpf/bpftool/xlated_dumper.h
+++ b/tools/bpf/bpftool/xlated_dumper.h
@@ -5,12 +5,14 @@
#define __BPF_TOOL_XLATED_DUMPER_H
#define SYM_MAX_NAME 256
+#define MODULE_MAX_NAME 64
struct bpf_prog_linfo;
struct kernel_sym {
unsigned long address;
char name[SYM_MAX_NAME];
+ char module[MODULE_MAX_NAME];
};
struct dump_data {