aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/symbol/kallsyms.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-06-25 18:13:17 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-06-25 18:13:17 -0300
commit155681fcd7f82882a730240c2dde7eee76a46314 (patch)
tree306d20b2a2740d1f8816f583efd0bce21bb0833d /tools/lib/symbol/kallsyms.h
parenttools x86 machine: Add missing util.h to pick up 'page_size' (diff)
downloadlinux-dev-155681fcd7f82882a730240c2dde7eee76a46314.tar.xz
linux-dev-155681fcd7f82882a730240c2dde7eee76a46314.zip
perf kallsyms: Adopt hex2u64 from tools/perf/util/util.h
Just removing more stuff from tools/perf/, this is mostly used in the kallsyms parsing and in places in perf where kallsyms is involved, so we get it for free there. With this we reduce a bit more util.h. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-5mc1zg0jqdwgkn8c358kaba6@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/symbol/kallsyms.h')
-rw-r--r--tools/lib/symbol/kallsyms.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/symbol/kallsyms.h b/tools/lib/symbol/kallsyms.h
index 72ab9870454b..bd988f7b18d4 100644
--- a/tools/lib/symbol/kallsyms.h
+++ b/tools/lib/symbol/kallsyms.h
@@ -18,6 +18,8 @@ static inline u8 kallsyms2elf_binding(char type)
return isupper(type) ? STB_GLOBAL : STB_LOCAL;
}
+int hex2u64(const char *ptr, u64 *long_val);
+
u8 kallsyms2elf_type(char type);
bool kallsyms__is_function(char symbol_type);