aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r--tools/perf/util/symbol.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index e0d4a583f8dd..f8c1899af483 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -60,10 +60,12 @@ struct dso {
60 struct list_head node; 60 struct list_head node;
61 struct rb_root syms; 61 struct rb_root syms;
62 struct symbol *(*find_symbol)(struct dso *, u64 ip); 62 struct symbol *(*find_symbol)(struct dso *, u64 ip);
63 unsigned char adjust_symbols; 63 u8 adjust_symbols:1;
64 unsigned char slen_calculated; 64 u8 slen_calculated:1;
65 bool loaded; 65 u8 loaded:1;
66 u8 has_build_id:1;
66 unsigned char origin; 67 unsigned char origin;
68 u8 build_id[BUILD_ID_SIZE];
67 const char *short_name; 69 const char *short_name;
68 char *long_name; 70 char *long_name;
69 char name[0]; 71 char name[0];
@@ -81,8 +83,10 @@ void dsos__fprintf(FILE *fp);
81 83
82size_t dso__fprintf(struct dso *self, FILE *fp); 84size_t dso__fprintf(struct dso *self, FILE *fp);
83char dso__symtab_origin(const struct dso *self); 85char dso__symtab_origin(const struct dso *self);
86void dso__set_build_id(struct dso *self, void *build_id);
84 87
85int filename__read_build_id(const char *filename, void *bf, size_t size); 88int filename__read_build_id(const char *filename, void *bf, size_t size);
89int build_id__sprintf(u8 *self, int len, char *bf);
86 90
87int load_kernel(symbol_filter_t filter); 91int load_kernel(symbol_filter_t filter);
88 92