summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorPaul Moses <p@1g4.org>2026-10-20 17:20:58 +0000
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-10-27 17:00:15 -0300
commit022c64992af554cfd8c564bff86100fb5ed98678 (patch)
tree24bb8486608d2cb376e7e9c2d79e1d1df84efeb3 /scripts/Makefile.thinlto
parent98892841bdd8332c6a34654c9c45c0a9e860e2b2 (diff)
downloadlinux-022c64992af554cfd8c564bff86100fb5ed98678.tar.gz
linux-022c64992af554cfd8c564bff86100fb5ed98678.zip
perf mmap: Use the head selected by read_init
perf_mmap__push() reads the producer head before calling perf_mmap__read_init(), which reads it again to select the range to copy. If the producer advances between those reads, push() copies through the newer head but stores the earlier head in prev. The next drain starts at that earlier position and can write the same records to perf.data again. Use the head selected by read_init(): end for forward buffers and start for overwrite buffers. Save it before the copy loop advances start so prev matches the range that was copied. Fixes: 8872481bd04850b1 ("perf mmap: Introduce perf_mmap__read_init()") Signed-off-by: Paul Moses <p@1g4.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@intel.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions