summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.ibm.com>2018-08-08 10:30:37 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2019-02-22 09:19:50 +0100
commit26b8317f51a20c1e4f61fbd2cc68975faad10b02 (patch)
treee59b0ea3f327d7ea6f6a460fe0837000273c7561 /arch/s390/include/asm
parentf944bcdf5b8431c68be8bdd13259d27412e45c14 (diff)
downloadlinux-stable-26b8317f51a20c1e4f61fbd2cc68975faad10b02.tar.gz
linux-stable-26b8317f51a20c1e4f61fbd2cc68975faad10b02.tar.bz2
linux-stable-26b8317f51a20c1e4f61fbd2cc68975faad10b02.zip
s390/cpum_cf: introduce kernel_cpumcf_alert() to obtain measurement alerts
During a __kernel_cpumcf_begin()/end() session, save measurement alerts for the counter facility in the per-CPU cpu_cf_events variable. Users can obtain and, optionally, clear the alerts by calling kernel_cpumcf_alert() to specifically handle alerts. Signed-off-by: Hendrik Brueckner <brueckner@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r--arch/s390/include/asm/cpu_mcf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/cpu_mcf.h b/arch/s390/include/asm/cpu_mcf.h
index 82e0b80f2c81..2cd4f09ee268 100644
--- a/arch/s390/include/asm/cpu_mcf.h
+++ b/arch/s390/include/asm/cpu_mcf.h
@@ -52,6 +52,7 @@ static inline void ctr_set_stop(u64 *state, int ctr_set)
struct cpu_cf_events {
struct cpumf_ctr_info info;
atomic_t ctr_set[CPUMF_CTR_SET_MAX];
+ atomic64_t alert;
u64 state, tx_state;
unsigned int flags;
unsigned int txn_flags;
@@ -59,6 +60,7 @@ struct cpu_cf_events {
DECLARE_PER_CPU(struct cpu_cf_events, cpu_cf_events);
int __kernel_cpumcf_begin(void);
+unsigned long kernel_cpumcf_alert(int clear);
void __kernel_cpumcf_end(void);
#endif /* _ASM_S390_CPU_MCF_H */