vitasdk
Documentation of the vitasdk
perf.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_PERF_H_
8 #define _PSP2_PERF_H_
9 
10 #include <psp2/types.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 
17 #define SCE_PERF_ARM_PMON_THREAD_ID_SELF (SCE_KERNEL_THREAD_ID_SELF)
18 
19 typedef enum _ScePerfArmPmonEventCode {
74 
75 
77 int scePerfArmPmonSelectEvent(SceUID thid, SceUInt32 counter, SceUInt8 event_code);
83 
86 
87 
88 #ifdef __cplusplus
89 }
90 #endif
91 
92 #endif /* _PSP2_PERF_H_ */
int scePerfArmPmonReset(SceUID thid)
int scePerfArmPmonGetCounterValue(SceUID thid, SceUInt32 counter, SceUInt32 *value)
int scePerfArmPmonSetCounterValue(SceUID thid, SceUInt32 counter, SceUInt32 value)
SceUInt64 scePerfGetTimebaseValue(void)
ScePerfArmPmonEventCode
Definition: perf.h:19
SceUInt32 scePerfGetTimebaseFrequency(void)
int scePerfArmPmonSoftwareIncrement(SceUInt32 mask)
int scePerfArmPmonStop(SceUID thid)
int scePerfArmPmonStart(SceUID thid)
int scePerfArmPmonSelectEvent(SceUID thid, SceUInt32 counter, SceUInt8 event_code)
@ SCE_PERF_ARM_PMON_WRITE_STALL
Definition: perf.h:55
@ SCE_PERF_ARM_PMON_INST_MAINTLB_STALL
Definition: perf.h:56
@ SCE_PERF_ARM_PMON_DATA_MAINTLB_STALL
Definition: perf.h:57
@ SCE_PERF_ARM_PMON_DATA_READ
Definition: perf.h:26
@ SCE_PERF_ARM_PMON_INTEGER_CLOCK
Definition: perf.h:61
@ SCE_PERF_ARM_PMON_PLE_FIFO_FLUSH
Definition: perf.h:69
@ SCE_PERF_ARM_PMON_SECOND_PIPE
Definition: perf.h:50
@ SCE_PERF_ARM_PMON_ISB
Definition: perf.h:63
@ SCE_PERF_ARM_PMON_IMMEDIATE_BRANCH
Definition: perf.h:32
@ SCE_PERF_ARM_PMON_DATA_EVICTION
Definition: perf.h:44
@ SCE_PERF_ARM_PMON_ISSUE_NO_DISPATCH
Definition: perf.h:45
@ SCE_PERF_ARM_PMON_DCACHE_ACCESS
Definition: perf.h:24
@ SCE_PERF_ARM_PMON_NEON_RENAME
Definition: perf.h:53
@ SCE_PERF_ARM_PMON_LS_PIPE
Definition: perf.h:51
@ SCE_PERF_ARM_PMON_PLE_LINE_REQ_COMPLETED
Definition: perf.h:67
@ SCE_PERF_ARM_PMON_PLD_STALL
Definition: perf.h:54
@ SCE_PERF_ARM_PMON_ICACHE_STALL
Definition: perf.h:39
@ SCE_PERF_ARM_PMON_SOFT_INCREMENT
Definition: perf.h:20
@ SCE_PERF_ARM_PMON_MAINTLB_STALL
Definition: perf.h:41
@ SCE_PERF_ARM_PMON_FPU_RENAME
Definition: perf.h:52
@ SCE_PERF_ARM_PMON_ICACHE_MISS
Definition: perf.h:21
@ SCE_PERF_ARM_PMON_DATA_UTLB_STALL
Definition: perf.h:59
@ SCE_PERF_ARM_PMON_STREX_PASSED
Definition: perf.h:42
@ SCE_PERF_ARM_PMON_PLE_REQ_COMPLETED
Definition: perf.h:70
@ SCE_PERF_ARM_PMON_CYCLE_COUNT
Definition: perf.h:35
@ SCE_PERF_ARM_PMON_DMB_STALL
Definition: perf.h:60
@ SCE_PERF_ARM_PMON_DTLB_MISS
Definition: perf.h:25
@ SCE_PERF_ARM_PMON_INST_RENAME
Definition: perf.h:47
@ SCE_PERF_ARM_PMON_DATAENGINE_CLOCK
Definition: perf.h:62
@ SCE_PERF_ARM_PMON_DATA_WRITE
Definition: perf.h:27
@ SCE_PERF_ARM_PMON_DSB
Definition: perf.h:64
@ SCE_PERF_ARM_PMON_DCACHE_MISS
Definition: perf.h:23
@ SCE_PERF_ARM_PMON_DMB
Definition: perf.h:65
@ SCE_PERF_ARM_PMON_EXCEPTION_TAKEN
Definition: perf.h:28
@ SCE_PERF_ARM_PMON_EXCEPTION_RETURN
Definition: perf.h:29
@ SCE_PERF_ARM_PMON_ISSUE_EMPTY
Definition: perf.h:46
@ SCE_PERF_ARM_PMON_DCACHE_STALL
Definition: perf.h:40
@ SCE_PERF_ARM_PMON_SOFT_CHANGEPC
Definition: perf.h:31
@ SCE_PERF_ARM_PMON_BRANCH_MISPREDICT
Definition: perf.h:34
@ SCE_PERF_ARM_PMON_WRITE_CONTEXTID
Definition: perf.h:30
@ SCE_PERF_ARM_PMON_COHERENT_LF_MISS
Definition: perf.h:37
@ SCE_PERF_ARM_PMON_UNALIGNED
Definition: perf.h:33
@ SCE_PERF_ARM_PMON_COHERENT_LF_HIT
Definition: perf.h:38
@ SCE_PERF_ARM_PMON_PLE_CHANNEL_SKIPPED
Definition: perf.h:68
@ SCE_PERF_ARM_PMON_MAIN_PIPE
Definition: perf.h:49
@ SCE_PERF_ARM_PMON_ITLB_MISS
Definition: perf.h:22
@ SCE_PERF_ARM_PMON_PLE_FIFO_OVERFLOW
Definition: perf.h:71
@ SCE_PERF_ARM_PMON_PREDICT_FUNC_RET
Definition: perf.h:48
@ SCE_PERF_ARM_PMON_PREDICT_BRANCH
Definition: perf.h:36
@ SCE_PERF_ARM_PMON_STREX_FAILED
Definition: perf.h:43
@ SCE_PERF_ARM_PMON_EXT_INTERRUPT
Definition: perf.h:66
@ SCE_PERF_ARM_PMON_PLE_REQ_PROGRAMMED
Definition: perf.h:72
@ SCE_PERF_ARM_PMON_INST_UTLB_STALL
Definition: perf.h:58
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90
uint64_t SceUInt64
Definition: types.h:51
uint32_t SceUInt32
Definition: types.h:45
uint8_t SceUInt8
Definition: types.h:36