diff options
| author | Alexander Shishkin <[email protected]> | 2019-08-21 12:47:24 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2019-08-26 10:00:13 +0000 |
| commit | 539f7c26b41d4ed7d88dd9756de3966ae7ca07b4 (patch) | |
| tree | 6595ea87f5ddda34da06f0e5a2b7cde445248c22 /tools/perf/scripts/python/futex-contention.py | |
| parent | perf/x86/intel/pt: Use helpers to obtain ToPA entry size (diff) | |
| download | kernel-539f7c26b41d4ed7d88dd9756de3966ae7ca07b4.tar.gz kernel-539f7c26b41d4ed7d88dd9756de3966ae7ca07b4.zip | |
perf/x86/intel/pt: Use pointer arithmetics instead in ToPA entry calculation
Currently, pt_buffer_reset_offsets() calculates the current ToPA entry by
casting pointers to addresses and performing ungainly subtractions and
divisions instead of a simpler pointer arithmetic, which would be perfectly
applicable in that case. Fix that.
Signed-off-by: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions
