Skip to content

Commit

Permalink
perf symbols: Bit pack to save a byte
Browse files Browse the repository at this point in the history
Use a bit field alongside the earlier bit fields.

Signed-off-by: Ian Rogers <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: James Clark <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kajol Jain <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Martin Liška <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
captain5050 authored and acmel committed Nov 13, 2021
1 parent bd9acd9 commit 4270456
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/perf/util/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3132,7 +3132,7 @@ int symbol__annotate2(struct map_symbol *ms, struct evsel *evsel,
notes->nr_events = nr_pcnt;

annotation__update_column_widths(notes);
sym->annotate2 = true;
sym->annotate2 = 1;

return 0;

Expand Down
4 changes: 2 additions & 2 deletions tools/perf/util/symbol.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ struct symbol {
u8 ignore:1;
/** Symbol for an inlined function. */
u8 inlined:1;
/** Has symbol__annotate2 been performed. */
u8 annotate2:1;
/** Architecture specific. Unused except on PPC where it holds st_other. */
u8 arch_sym;
/** Has symbol__annotate2 been performed. */
bool annotate2;
/** The name of length namelen associated with the symbol. */
char name[];
};
Expand Down

0 comments on commit 4270456

Please sign in to comment.