32#ifndef _LOS_PERF_PRI_H
33#define _LOS_PERF_PRI_H
47#define PERF_EVENT_TO_CODE 0
48#define PERF_CODE_TO_EVENT 1
49#define PERF_DATA_MAGIC_WORD 0xEFEFEF00
51#define SMP_CALL_PERF_FUNC(func) OsMpFuncCall(OS_MP_CPU_ALL, (SMP_FUNC_CALL)func, NULL)
91 UINT64 count[LOSCFG_KERNEL_CORE_NUM];
127#ifndef OsPerfArchFetchIrqRegs
135 PRINT_DEBUG(
"pc = 0x%x, fp = 0x%x\n", regs->
pc, regs->
fp);
138#ifndef OsPerfArchFetchCallerRegs
145 PRINT_DEBUG(
"pc = 0x%x, fp = 0x%x\n", regs->
pc, regs->
fp);
STATIC INLINE VOID OsPerfFetchIrqRegs(PerfRegs *regs)
STATIC INLINE VOID OsPerfFetchCallerRegs(PerfRegs *regs)
VOID OsPerfHandleOverFlow(Event *event, PerfRegs *regs)
VOID OsPerfUpdateEventCount(Event *event, UINT32 value)
STATIC INLINE VOID OsPerfArchFetchCallerRegs(PerfRegs *regs)
VOID OsPerfSetIrqRegs(UINTPTR pc, UINTPTR fp)
STATIC INLINE VOID OsPerfArchFetchIrqRegs(PerfRegs *regs, LosTaskCB *curTask)
STATIC INLINE LosTaskCB * OsCurrTaskGet(VOID)