|
wut v1.9.1
Wii U Toolchain
|

Typedefs | |
| 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. | |
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. | |
| static uint32_t | OSGetUPMC1 () |
| Convenience function to read from UPMC1. | |
| static uint32_t | OSGetUPMC2 () |
| Convenience function to read from UPMC2. | |
| static uint32_t | OSGetUPMC3 () |
| Convenience function to read from UPMC3. | |
| static uint32_t | OSGetUPMC4 () |
| Convenience function to read from UPMC4. | |
| 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 33 of file performancemonitor.h.
| enum OSPerfMonMMCR1Flags |
Flags to write to (U)MMCR1 register.
Definition at line 84 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 158 of file performancemonitor.h.
|
inlinestatic |
Convenience function to read from UPMC2.
Definition at line 170 of file performancemonitor.h.
|
inlinestatic |
Convenience function to read from UPMC3.
Definition at line 182 of file performancemonitor.h.
|
inlinestatic |
Convenience function to read from UPMC4.
Definition at line 194 of file performancemonitor.h.