|
@@ -10,6 +10,12 @@ u8 kallsyms2elf_type(char type)
|
|
return (type == 't' || type == 'w') ? STT_FUNC : STT_OBJECT;
|
|
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 kallsyms__parse(const char *filename, void *arg,
|
|
int (*process_symbol)(void *arg, const char *name,
|
|
int (*process_symbol)(void *arg, const char *name,
|
|
char type, u64 start))
|
|
char type, u64 start))
|