tools/perf/util/s390-cpumcf-kernel.h
Source file repositories/reference/linux-study-clean/tools/perf/util/s390-cpumcf-kernel.h
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/util/s390-cpumcf-kernel.h- Extension
.h- Size
- 2279 bytes
- Lines
- 66
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct cf_ctrset_entrystruct cf_trailer_entry
Annotated Snippet
struct cf_ctrset_entry { /* CPU-M CF counter set entry (8 byte) */
unsigned int def:16; /* 0-15 Data Entry Format */
unsigned int set:16; /* 16-23 Counter set identifier */
unsigned int ctr:16; /* 24-39 Number of stored counters */
unsigned int res1:16; /* 40-63 Reserved */
};
struct cf_trailer_entry { /* CPU-M CF trailer for raw traces (64 byte) */
/* 0 - 7 */
union {
struct {
unsigned int clock_base:1; /* TOD clock base */
unsigned int speed:1; /* CPU speed */
/* Measurement alerts */
unsigned int mtda:1; /* Loss of MT ctr. data alert */
unsigned int caca:1; /* Counter auth. change alert */
unsigned int lcda:1; /* Loss of counter data alert */
};
unsigned long flags; /* 0-63 All indicators */
};
/* 8 - 15 */
unsigned int cfvn:16; /* 64-79 Ctr First Version */
unsigned int csvn:16; /* 80-95 Ctr Second Version */
unsigned int cpu_speed:32; /* 96-127 CPU speed */
/* 16 - 23 */
unsigned long timestamp; /* 128-191 Timestamp (TOD) */
/* 24 - 55 */
union {
struct {
unsigned long progusage1;
unsigned long progusage2;
unsigned long progusage3;
unsigned long tod_base;
};
unsigned long progusage[4];
};
/* 56 - 63 */
unsigned int mach_type:16; /* Machine type */
unsigned int res1:16; /* Reserved */
unsigned int res2:32; /* Reserved */
};
#define CPUMF_CTR_SET_BASIC 0 /* Basic Counter Set */
#define CPUMF_CTR_SET_USER 1 /* Problem-State Counter Set */
#define CPUMF_CTR_SET_CRYPTO 2 /* Crypto-Activity Counter Set */
#define CPUMF_CTR_SET_EXT 3 /* Extended Counter Set */
#define CPUMF_CTR_SET_MT_DIAG 4 /* MT-diagnostic Counter Set */
#endif
Annotation
- Detected declarations: `struct cf_ctrset_entry`, `struct cf_trailer_entry`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.