summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-09-30 11:42:07 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-09-30 17:34:30 -0400
commit8e947f1e84fd1588f66e5f2ea69c80647de72cd4 (patch)
tree8631e064b3a22a96b48970964b9b88887a8eaf4c /tools/lib
parenta5e813c68649366aaa3f785772b00ea6ccad7b8d (diff)
tools lib symbol: Rename kallsyms2elf_type to kallsyms2elf_binding
It is about binding, not type, we have just a letter in kallsyms that should map both for the ELF type (STT_FUNC, etc) and to the ELF symbol binding (STB_WEAK, STB_GLOBAL, etc), so rename it now before introducing kallsyms2_elf_type() Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-uu5vj343ms1q2wm55690on6v@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/symbol/kallsyms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/symbol/kallsyms.h b/tools/lib/symbol/kallsyms.h
index 6084f5e18b3c..bb86c5b76ee8 100644
--- a/tools/lib/symbol/kallsyms.h
+++ b/tools/lib/symbol/kallsyms.h
@@ -9,7 +9,7 @@
9#define KSYM_NAME_LEN 256 9#define KSYM_NAME_LEN 256
10#endif 10#endif
11 11
12static inline u8 kallsyms2elf_type(char type) 12static inline u8 kallsyms2elf_binding(char type)
13{ 13{
14 if (type == 'W') 14 if (type == 'W')
15 return STB_WEAK; 15 return STB_WEAK;