]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/lib/symbol/kallsyms.c
Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / tools / lib / symbol / kallsyms.c
index 18bc271a4bbc7fe4232e6cc6f5fd2b2bf392846a..5e431077fcd6784ac9567a785bc6fb90a40bc7bb 100644 (file)
@@ -2,6 +2,12 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+u8 kallsyms2elf_type(char type)
+{
+       type = tolower(type);
+       return (type == 't' || type == 'w') ? STT_FUNC : STT_OBJECT;
+}
+
 int kallsyms__parse(const char *filename, void *arg,
                    int (*process_symbol)(void *arg, const char *name,
                                          char type, u64 start))