X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=tools%2Fperf%2Futil%2Fsymbol.h;h=fd5b70ea29812334572fc7a6f5fad2c3ec7058e7;hb=640414171818c6293c23e74a28d1c69b2a1a7fe5;hp=5f720dc076da66788f0b8cee30d43f3f17b3ff40;hpb=78750f1908869c3bfcbf2a1f1f00f078f2948271;p=~andy%2Flinux diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 5f720dc076d..fd5b70ea298 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h @@ -215,6 +215,7 @@ struct symbol *dso__find_symbol(struct dso *dso, enum map_type type, u64 addr); struct symbol *dso__find_symbol_by_name(struct dso *dso, enum map_type type, const char *name); +struct symbol *dso__first_symbol(struct dso *dso, enum map_type type); int filename__read_build_id(const char *filename, void *bf, size_t size); int sysfs__read_build_id(const char *filename, void *bf, size_t size); @@ -247,4 +248,8 @@ void symbols__fixup_duplicate(struct rb_root *symbols); void symbols__fixup_end(struct rb_root *symbols); void __map_groups__fixup_end(struct map_groups *mg, enum map_type type); +typedef int (*mapfn_t)(u64 start, u64 len, u64 pgoff, void *data); +int file__read_maps(int fd, bool exe, mapfn_t mapfn, void *data, + bool *is_64_bit); + #endif /* __PERF_SYMBOL */