|
@@ -116,11 +116,6 @@ struct annotation {
|
|
|
struct annotated_source *src;
|
|
|
};
|
|
|
|
|
|
-struct sannotation {
|
|
|
- struct annotation annotation;
|
|
|
- struct symbol symbol;
|
|
|
-};
|
|
|
-
|
|
|
static inline struct sym_hist *annotation__histogram(struct annotation *notes, int idx)
|
|
|
{
|
|
|
return (((void *)¬es->src->histograms) +
|
|
@@ -129,8 +124,7 @@ static inline struct sym_hist *annotation__histogram(struct annotation *notes, i
|
|
|
|
|
|
static inline struct annotation *symbol__annotation(struct symbol *sym)
|
|
|
{
|
|
|
- struct sannotation *a = container_of(sym, struct sannotation, symbol);
|
|
|
- return &a->annotation;
|
|
|
+ return (void *)sym - symbol_conf.priv_size;
|
|
|
}
|
|
|
|
|
|
int addr_map_symbol__inc_samples(struct addr_map_symbol *ams, int evidx);
|