Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/irq: split irq stats for cpu-measurement alert facilities

CPU-measurement alerts are generated for different CPU-measurement
facilities, for example, the sampling and counter facilities.
Split the irq stats according to available facilities.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Hendrik Brueckner and committed by
Martin Schwidefsky
02456169 a3415703

+6 -4
+2 -1
arch/s390/include/asm/irq.h
··· 17 17 EXTINT_VRT, 18 18 EXTINT_SCP, 19 19 EXTINT_IUC, 20 - EXTINT_CPM, 20 + EXTINT_CMS, 21 + EXTINT_CMC, 21 22 IOINT_CIO, 22 23 IOINT_QAI, 23 24 IOINT_DAS,
+2 -1
arch/s390/kernel/irq.c
··· 42 42 {.name = "VRT", .desc = "[EXT] Virtio" }, 43 43 {.name = "SCP", .desc = "[EXT] Service Call" }, 44 44 {.name = "IUC", .desc = "[EXT] IUCV" }, 45 - {.name = "CPM", .desc = "[EXT] CPU Measurement" }, 45 + {.name = "CMS", .desc = "[EXT] CPU-Measurement: Sampling" }, 46 + {.name = "CMC", .desc = "[EXT] CPU-Measurement: Counter" }, 46 47 {.name = "CIO", .desc = "[I/O] Common I/O Layer Interrupt" }, 47 48 {.name = "QAI", .desc = "[I/O] QDIO Adapter Interrupt" }, 48 49 {.name = "DAS", .desc = "[I/O] DASD" },
+1 -1
arch/s390/kernel/perf_cpum_cf.c
··· 225 225 if (!(alert & CPU_MF_INT_CF_MASK)) 226 226 return; 227 227 228 - kstat_cpu(smp_processor_id()).irqs[EXTINT_CPM]++; 228 + kstat_cpu(smp_processor_id()).irqs[EXTINT_CMC]++; 229 229 cpuhw = &__get_cpu_var(cpu_hw_events); 230 230 231 231 /* Measurement alerts are shared and might happen when the PMU
+1 -1
arch/s390/oprofile/hwsampler.c
··· 235 235 if (!(param32 & CPU_MF_INT_SF_MASK)) 236 236 return; 237 237 238 - kstat_cpu(smp_processor_id()).irqs[EXTINT_CPM]++; 238 + kstat_cpu(smp_processor_id()).irqs[EXTINT_CMS]++; 239 239 atomic_xchg(&cb->ext_params, atomic_read(&cb->ext_params) | param32); 240 240 241 241 if (hws_wq)