Skip to content

Commit 4270456

Browse files
captain5050acmel
authored andcommitted
perf symbols: Bit pack to save a byte
Use a bit field alongside the earlier bit fields. Signed-off-by: Ian Rogers <irogers@google.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@arm.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Martin Liška <mliska@suse.cz> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: https://lore.kernel.org/r/20211112035124.94327-2-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent bd9acd9 commit 4270456

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/perf/util/annotate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3132,7 +3132,7 @@ int symbol__annotate2(struct map_symbol *ms, struct evsel *evsel,
31323132
notes->nr_events = nr_pcnt;
31333133

31343134
annotation__update_column_widths(notes);
3135-
sym->annotate2 = true;
3135+
sym->annotate2 = 1;
31363136

31373137
return 0;
31383138

tools/perf/util/symbol.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ struct symbol {
6262
u8 ignore:1;
6363
/** Symbol for an inlined function. */
6464
u8 inlined:1;
65+
/** Has symbol__annotate2 been performed. */
66+
u8 annotate2:1;
6567
/** Architecture specific. Unused except on PPC where it holds st_other. */
6668
u8 arch_sym;
67-
/** Has symbol__annotate2 been performed. */
68-
bool annotate2;
6969
/** The name of length namelen associated with the symbol. */
7070
char name[];
7171
};

0 commit comments

Comments
 (0)