1
2
3
4
5
6
7
8
9 #ifndef S390_CPUMCF_KERNEL_H
10 #define S390_CPUMCF_KERNEL_H
11
12 #define S390_CPUMCF_DIAG_DEF 0xfeef
13 #define PERF_EVENT_CPUM_CF_DIAG 0xBC000
14
15 struct cf_ctrset_entry {
16 unsigned int def:16;
17 unsigned int set:16;
18 unsigned int ctr:16;
19 unsigned int res1:16;
20 };
21
22 struct cf_trailer_entry {
23
24 union {
25 struct {
26 unsigned int clock_base:1;
27 unsigned int speed:1;
28
29 unsigned int mtda:1;
30 unsigned int caca:1;
31 unsigned int lcda:1;
32 };
33 unsigned long flags;
34 };
35
36 unsigned int cfvn:16;
37 unsigned int csvn:16;
38 unsigned int cpu_speed:32;
39
40 unsigned long timestamp;
41
42 union {
43 struct {
44 unsigned long progusage1;
45 unsigned long progusage2;
46 unsigned long progusage3;
47 unsigned long tod_base;
48 };
49 unsigned long progusage[4];
50 };
51
52 unsigned int mach_type:16;
53 unsigned int res1:16;
54 unsigned int res2:32;
55 };
56
57 #define CPUMF_CTR_SET_BASIC 0
58 #define CPUMF_CTR_SET_USER 1
59 #define CPUMF_CTR_SET_CRYPTO 2
60 #define CPUMF_CTR_SET_EXT 3
61 #define CPUMF_CTR_SET_MT_DIAG 4
62 #endif