diff options
author | Leo Yan <[email protected]> | 2020-02-19 10:18:10 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-03-11 10:48:44 -0300 |
commit | 695378b567df1fe6631c6684fcc9eeb4257df70f (patch) | |
tree | 97bb32febaa2893e2944f4385ac2bfe7eb565fd3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | c9f5baa136777b2c982f6f7a90c9da69a88be148 (diff) |
perf cs-etm: Optimize copying last branches
If an instruction range packet can generate multiple instruction
samples, these samples share the same last branches; it's not necessary
to copy the same last branches repeatedly for these samples within the
same packet.
This patch moves out the last branches copying from function
cs_etm__synth_instruction_sample(), and execute it prior to generating
instruction samples.
Signed-off-by: Leo Yan <[email protected]>
Reviewed-by: Mathieu Poirier <[email protected]>
Reviewed-by: Mike Leach <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Robert Walker <[email protected]>
Cc: Suzuki Poulouse <[email protected]>
Cc: coresight ml <[email protected]>
Cc: [email protected]
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions