diff options
Diffstat (limited to 'tools/perf/util/annotate.h')
| -rw-r--r-- | tools/perf/util/annotate.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index 0784a9420528..cadbdc90a5cb 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h | |||
| @@ -116,11 +116,6 @@ struct annotation { | |||
| 116 | struct annotated_source *src; | 116 | struct annotated_source *src; |
| 117 | }; | 117 | }; |
| 118 | 118 | ||
| 119 | struct sannotation { | ||
| 120 | struct annotation annotation; | ||
| 121 | struct symbol symbol; | ||
| 122 | }; | ||
| 123 | |||
| 124 | static inline struct sym_hist *annotation__histogram(struct annotation *notes, int idx) | 119 | static inline struct sym_hist *annotation__histogram(struct annotation *notes, int idx) |
| 125 | { | 120 | { |
| 126 | return (((void *)¬es->src->histograms) + | 121 | return (((void *)¬es->src->histograms) + |
| @@ -129,8 +124,7 @@ static inline struct sym_hist *annotation__histogram(struct annotation *notes, i | |||
| 129 | 124 | ||
| 130 | static inline struct annotation *symbol__annotation(struct symbol *sym) | 125 | static inline struct annotation *symbol__annotation(struct symbol *sym) |
| 131 | { | 126 | { |
| 132 | struct sannotation *a = container_of(sym, struct sannotation, symbol); | 127 | return (void *)sym - symbol_conf.priv_size; |
| 133 | return &a->annotation; | ||
| 134 | } | 128 | } |
| 135 | 129 | ||
| 136 | int addr_map_symbol__inc_samples(struct addr_map_symbol *ams, int evidx); | 130 | int addr_map_symbol__inc_samples(struct addr_map_symbol *ams, int evidx); |
