perf sort: Replace static cacheline size with sysconf cacheline size
authorRicky Ringler <ricky.ringler@proton.me>
Thu, 29 Jan 2026 00:42:27 +0000 (00:42 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 Feb 2026 21:51:15 +0000 (18:51 -0300)
commit920c5570a67549956eb4e6922eb1ed5e32169a0d
tree6b358f6d7edf814bbb10136cfda19ebb183cb2d5
parentc73a56ed3c97ae6571c2c50e6bc8772b1cee42e0
perf sort: Replace static cacheline size with sysconf cacheline size

Testing:
- Built perf
- Executed perf mem record and report

Committer notes:

This addresses a TODO and improves the situation where record and
report/c2c are performed on the same machine or in machines with the
same cacheline size, but the proper way is to store the cacheline size
in the perf.data header at 'record' time and then use it at post
processing time.

Signed-off-by: Ricky Ringler <ricky.ringler@proton.me>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20260129004223.26799-1-ricky.ringler@proton.me
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/sort.c