wut
v1.7.0
Wii U Toolchain
|
Typedefs | |
typedef enum OSPerfMonArg | OSPerfMonArg |
Used to tell OSSetPerformanceMonitor() which arguments are valid. More... | |
typedef enum OSPerfMonMMCR0Flags | OSPerfMonMMCR0Flags |
Flags to write to (U)MMCR0 register. More... | |
typedef enum OSPerfMonMMCR1Flags | OSPerfMonMMCR1Flags |
Flags to write to (U)MMCR1 register. More... | |
Functions | |
void | OSSetPerformanceMonitor (uint32_t arg_mask, uint32_t mmcr0, uint32_t mmcr1, uint32_t pmc1, uint32_t pmc2, uint32_t pmc3, uint32_t pmc4) |
Write to performance monitor registers. More... | |
static uint32_t | OSGetUPMC1 () |
Convenience function to read from UPMC1. More... | |
static uint32_t | OSGetUPMC2 () |
Convenience function to read from UPMC2. More... | |
static uint32_t | OSGetUPMC3 () |
Convenience function to read from UPMC3. More... | |
static uint32_t | OSGetUPMC4 () |
Convenience function to read from UPMC4. More... | |
typedef enum OSPerfMonArg OSPerfMonArg |
Used to tell OSSetPerformanceMonitor() which arguments are valid.
typedef enum OSPerfMonMMCR0Flags OSPerfMonMMCR0Flags |
Flags to write to (U)MMCR0 register.
typedef enum OSPerfMonMMCR1Flags OSPerfMonMMCR1Flags |
Flags to write to (U)MMCR1 register.
enum OSPerfMonArg |
Used to tell OSSetPerformanceMonitor() which arguments are valid.
Enumerator | |
---|---|
OS_PM_ARG_MMCR0 | |
OS_PM_ARG_MMCR1 | |
OS_PM_ARG_PMC1 | |
OS_PM_ARG_PMC2 | |
OS_PM_ARG_PMC3 | |
OS_PM_ARG_PMC4 |
Definition at line 18 of file performancemonitor.h.
enum OSPerfMonMMCR0Flags |
Flags to write to (U)MMCR0 register.
Definition at line 32 of file performancemonitor.h.
enum OSPerfMonMMCR1Flags |
Flags to write to (U)MMCR1 register.
Definition at line 82 of file performancemonitor.h.
void OSSetPerformanceMonitor | ( | uint32_t | arg_mask, |
uint32_t | mmcr0, | ||
uint32_t | mmcr1, | ||
uint32_t | pmc1, | ||
uint32_t | pmc2, | ||
uint32_t | pmc3, | ||
uint32_t | pmc4 | ||
) |
Write to performance monitor registers.
Performance monitor registers can only be written by the kernel, this allows userspace to write to them.
arg_mask | OR-ed values from OSPerfMonArg , indicating which of the following arguments are to be written to registers. |
mmcr0 | OR-ed values from OSPerfMonMMCR0Flags to write to register MMCR0. |
mmcr1 | OR-ed values from OSPerfMonMMCR1Flags to write to register MMCR1. |
pmc1 | Value to write to register PMC1. |
pmc2 | Value to write to register PMC2. |
pmc3 | Value to write to register PMC3. |
pmc4 | Value to write to register PMC4. |
|
inlinestatic |
Convenience function to read from UPMC1.
Definition at line 155 of file performancemonitor.h.
|
inlinestatic |
Convenience function to read from UPMC2.
Definition at line 168 of file performancemonitor.h.
|
inlinestatic |
Convenience function to read from UPMC3.
Definition at line 181 of file performancemonitor.h.
|
inlinestatic |
Convenience function to read from UPMC4.
Definition at line 194 of file performancemonitor.h.