]> git.itanic.dy.fi Git - linux-stable/commit
perf/x86: Fix missing sample size update on AMD BRS
authorNamhyung Kim <namhyung@kernel.org>
Thu, 27 Apr 2023 03:05:27 +0000 (20:05 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 8 May 2023 08:58:26 +0000 (10:58 +0200)
commit90befef5a9e820ccccc33181ec14c015980300cc
tree077b9e90c550e0c05e7a54139bb171e5aafae932
parent1d1bfe30dad50d4bea83cd38d73c441972ea0173
perf/x86: Fix missing sample size update on AMD BRS

It missed to convert a PERF_SAMPLE_BRANCH_STACK user to call the new
perf_sample_save_brstack() helper in order to update the dyn_size.
This affects AMD Zen3 machines with the branch-brs event.

Fixes: eb55b455ef9c ("perf/core: Add perf_sample_save_brstack() helper")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20230427030527.580841-1-namhyung@kernel.org
arch/x86/events/core.c