perf symbols: Store the ELF symbol type in the symbol struct
There is code that needs to see if a resolved address is a function, so, since we're going to ditch the MAP__{FUNCTION,VARIABLE} split, store that info in the per symbol struct. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-9ugwxz0i8ryg5702rx8u5q6z@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -57,7 +57,8 @@ struct symbol {
|
||||
u64 start;
|
||||
u64 end;
|
||||
u16 namelen;
|
||||
u8 binding;
|
||||
u8 type:4;
|
||||
u8 binding:4;
|
||||
u8 idle:1;
|
||||
u8 ignore:1;
|
||||
u8 inlined:1;
|
||||
@@ -292,7 +293,7 @@ void symbol__exit(void);
|
||||
void symbol__elf_init(void);
|
||||
int symbol__annotation_init(void);
|
||||
|
||||
struct symbol *symbol__new(u64 start, u64 len, u8 binding, const char *name);
|
||||
struct symbol *symbol__new(u64 start, u64 len, u8 binding, u8 type, const char *name);
|
||||
size_t __symbol__fprintf_symname_offs(const struct symbol *sym,
|
||||
const struct addr_location *al,
|
||||
bool unknown_as_addr,
|
||||
|
Reference in New Issue
Block a user