diff options
author | Namhyung Kim <[email protected]> | 2024-03-04 15:08:12 -0800 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2024-03-06 20:24:55 -0800 |
commit | d3e7cad6f36d9e80307b05bf31959597f9b6cd62 (patch) | |
tree | 0b8212dcc1810e64d0e7f752c744b78ba3e55cc0 /tools/perf/util/trace-event-scripting.c | |
parent | 7bfc84b23e750d746e5c6723270b9c7f92cfa88c (diff) |
perf annotate: Add a hashmap for symbol histogram
Now symbol histogram uses an array to save per-offset sample counts.
But it wastes a lot of memory if the symbol has a few samples only.
Add a hashmap to save values only for actual samples.
For now, it has duplicate histogram (one in the existing array and
another in the new hash map). Once it can convert to use the hash
in all places, we can get rid of the array later.
Reviewed-by: Ian Rogers <[email protected]>
Reviewed-by: Arnaldo Carvalho de Melo <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Andi Kleen <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions