tools lib symbols: Introduce kallsyms__is_function()
[linux-2.6-microblaze.git] / tools / lib / symbol / kallsyms.c
index 689b6a1..96d8305 100644 (file)
@@ -10,6 +10,12 @@ u8 kallsyms2elf_type(char type)
        return (type == 't' || type == 'w') ? STT_FUNC : STT_OBJECT;
 }
 
+bool kallsyms__is_function(char symbol_type)
+{
+       symbol_type = toupper(symbol_type);
+       return symbol_type == 'T' || symbol_type == 'W';
+}
+
 int kallsyms__parse(const char *filename, void *arg,
                    int (*process_symbol)(void *arg, const char *name,
                                          char type, u64 start))