diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2010-04-02 12:50:42 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2010-04-02 19:28:28 +0000 |
| commit | b9fb93047756c5e4129dfda7591612de61b0e877 (patch) | |
| tree | 76e66aed31494cdf9f287011bbe1025f21910dac /tools/perf/builtin-annotate.c | |
| parent | perf kmem: Fixup the symbol address before using it (diff) | |
| download | kernel-b9fb93047756c5e4129dfda7591612de61b0e877.tar.gz kernel-b9fb93047756c5e4129dfda7591612de61b0e877.zip | |
perf hist: Only allocate callchain_node if processing callchains
The struct callchain_node size is 120 bytes, that are never used when
there are no callchains or '-g none' is specified, so conditionally
allocate it, reducing sizeof(struct hist_entry) from 210 bytes to only
96, greatly speeding the non-callchain processing.
LKML-Reference: <new-submission>
Cc: Frédéric Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions
