From: Thomas Richter Date: Thu, 20 Oct 2022 14:51:34 +0000 (+0200) Subject: s390/pai: fix raw data collection for PMU pai_ext X-Git-Tag: v6.1-rc5~10^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b1e6a3fb3feecdce8521154bfe30f9d1ebb70e6;p=platform%2Fkernel%2Flinux-starfive.git s390/pai: fix raw data collection for PMU pai_ext Commit 838d9bb62d13 ("perf: Use sample_flags for raw_data") changed the way the raw data of an event is collected. Adjust the PMU pai_ext to the new scheme. Fixes: 838d9bb62d13 ("perf: Use sample_flags for raw_data") Signed-off-by: Thomas Richter Acked-by: Sumanth Korikkar Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/kernel/perf_pai_ext.c b/arch/s390/kernel/perf_pai_ext.c index d5c7c1e..74b53c5 100644 --- a/arch/s390/kernel/perf_pai_ext.c +++ b/arch/s390/kernel/perf_pai_ext.c @@ -459,6 +459,7 @@ static int paiext_push_sample(void) raw.frag.data = cpump->save; raw.size = raw.frag.size; data.raw = &raw; + data.sample_flags |= PERF_SAMPLE_RAW; } overflow = perf_event_overflow(event, &data, ®s);