perf annotate: __symbol__inc_addr_samples() needs just annotated_source
It only operates on the histograms, so no need for the encompassing 'struct annotation'. 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-2se2v7rrjil0kwqywks04ey2@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -267,10 +267,14 @@ void annotation__mark_jump_targets(struct annotation *notes, struct symbol *sym)
|
||||
void annotation__update_column_widths(struct annotation *notes);
|
||||
void annotation__init_column_widths(struct annotation *notes, struct symbol *sym);
|
||||
|
||||
static inline struct sym_hist *annotated_source__histogram(struct annotated_source *src, int idx)
|
||||
{
|
||||
return ((void *)src->histograms) + (src->sizeof_sym_hist * idx);
|
||||
}
|
||||
|
||||
static inline struct sym_hist *annotation__histogram(struct annotation *notes, int idx)
|
||||
{
|
||||
return (((void *)notes->src->histograms) +
|
||||
(notes->src->sizeof_sym_hist * idx));
|
||||
return annotated_source__histogram(notes->src, idx);
|
||||
}
|
||||
|
||||
static inline struct annotation *symbol__annotation(struct symbol *sym)
|
||||
|
Reference in New Issue
Block a user