summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/perf_cpum_sf.c
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2022-01-13 12:51:56 +0100
committerHeiko Carstens <hca@linux.ibm.com>2022-01-17 14:13:08 +0100
commit745f5d20e7936931f924410f32d8b0e599b5990e (patch)
treeaa458f3516f9a4ccb2a6d1316e3c3f693ad1d823 /arch/s390/kernel/perf_cpum_sf.c
parenta87b0fd4f9003f8521226e226cf92b18147b3519 (diff)
downloadlinux-745f5d20e7936931f924410f32d8b0e599b5990e.tar.gz
linux-745f5d20e7936931f924410f32d8b0e599b5990e.tar.bz2
linux-745f5d20e7936931f924410f32d8b0e599b5990e.zip
s390/cpumf: Support for CPU Measurement Sampling Facility LS bit
Adds support for the CPU Measurement Sampling Facility limit sampling bit in the sampling device driver. Limited samples have no valueable information are not collected. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/perf_cpum_sf.c')
-rw-r--r--arch/s390/kernel/perf_cpum_sf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/perf_cpum_sf.c b/arch/s390/kernel/perf_cpum_sf.c
index db62def4ef28..332a49965130 100644
--- a/arch/s390/kernel/perf_cpum_sf.c
+++ b/arch/s390/kernel/perf_cpum_sf.c
@@ -1179,7 +1179,7 @@ static void hw_collect_samples(struct perf_event *event, unsigned long *sdbt,
sample = (struct hws_basic_entry *) *sdbt;
while ((unsigned long *) sample < (unsigned long *) te) {
/* Check for an empty sample */
- if (!sample->def)
+ if (!sample->def || sample->LS)
break;
/* Update perf event period */