Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf annotate: Create a annotate2 flag in struct symbol

We often use the symbol__annotate2() to annotate a specified symbol.
While annotating may take some time, so in order to avoid annotating the
same symbol repeatedly, the patch creates a new flag to indicate the
symbol has been annotated.

Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1543586097-27632-3-git-send-email-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jin Yao and committed by
Arnaldo Carvalho de Melo
246fda09 ace4f8fa

+2
+1
tools/perf/util/annotate.c
··· 2798 2798 notes->nr_events = nr_pcnt; 2799 2799 2800 2800 annotation__update_column_widths(notes); 2801 + sym->annotate2 = true; 2801 2802 2802 2803 return 0; 2803 2804
+1
tools/perf/util/symbol.h
··· 63 63 u8 ignore:1; 64 64 u8 inlined:1; 65 65 u8 arch_sym; 66 + bool annotate2; 66 67 char name[0]; 67 68 }; 68 69