结构体 | |
struct | PerfEventConfig |
struct | PerfConfigAttr |
类型定义 | |
typedef VOID(* | PERF_BUF_NOTIFY_HOOK) (VOID) |
typedef VOID(* | PERF_BUF_FLUSH_HOOK) (VOID *addr, UINT32 size) |
函数 | |
UINT32 | LOS_PerfInit (VOID *buf, UINT32 size) |
Init perf. 更多... | |
VOID | LOS_PerfStart (UINT32 sectionId) |
Start perf sampling. 更多... | |
VOID | LOS_PerfStop (VOID) |
Stop perf sampling. 更多... | |
UINT32 | LOS_PerfConfig (PerfConfigAttr *attr) |
Config perf parameters. 更多... | |
UINT32 | LOS_PerfDataRead (CHAR *dest, UINT32 size) |
Read data from perf sample data buffer. 更多... | |
VOID | LOS_PerfNotifyHookReg (const PERF_BUF_NOTIFY_HOOK func) |
Register perf sample data buffer water mark hook function. 更多... | |
VOID | LOS_PerfFlushHookReg (const PERF_BUF_FLUSH_HOOK func) |
Register perf sample data buffer flush hook function. 更多... | |
typedef VOID(* PERF_BUF_FLUSH_HOOK) (VOID *addr, UINT32 size) |
Define the type of the perf sample data buffer flush hook function.
在文件 los_perf.h 第 94 行定义.
typedef VOID(* PERF_BUF_NOTIFY_HOOK) (VOID) |
Define the type of the perf sample data buffer water mark hook function.
在文件 los_perf.h 第 87 行定义.
enum PerfEventType |
Perf types
在文件 los_perf.h 第 180 行定义.
enum PerfSampleType |
perf sample data types Config it through PerfConfigAttr->sampleType.
在文件 los_perf.h 第 232 行定义.
enum PerfStatus |
enum PmuHwId |
Common hardware pmu events
在文件 los_perf.h 第 193 行定义.
enum PmuSwId |
Common software pmu events
在文件 los_perf.h 第 218 行定义.
enum PmuTimedId |
UINT32 LOS_PerfConfig | ( | PerfConfigAttr * | attr | ) |
Config perf parameters.
attr | [IN] Address of a perf event attr struct. |
#LOS_ERRNO_PERF_STATUS_INVALID | Perf in a wrong status. |
#LOS_ERRNO_PERF_CONFIG_NULL | Attr is NULL. |
#LOS_ERRNO_PERF_INVALID_PMU | Config perf pmu with error type. |
#LOS_ERRNO_PERF_PMU_CONFIG_ERROR | Config perf events fail with invalid event id or event period. |
#LOS_OK | Config success. |
在文件 los_perf.c 第 424 行定义.
Read data from perf sample data buffer.
dest | [IN] The destination address. |
size | [IN] Read size. |
UINT32 | The really read bytes. |
在文件 los_perf.c 第 514 行定义.
VOID LOS_PerfFlushHookReg | ( | const PERF_BUF_FLUSH_HOOK | func | ) |
Register perf sample data buffer flush hook function.
func | [IN] Buffer flush hook function. |
None. |
在文件 los_perf.c 第 528 行定义.
Init perf.
buf | [IN] Pointer of sample data buffer;Use the dynamically allocated memory if the pointer is NULL. |
size | [IN] Length of sample data buffer. |
#LOS_ERRNO_PERF_STATUS_INVALID | Perf in a wrong status. |
#LOS_ERRNO_PERF_HW_INIT_ERROR | Perf hardware pmu init fail. |
#LOS_ERRNO_PERF_TIMED_INIT_ERROR | Perf timed pmu init fail. |
#LOS_ERRNO_PERF_SW_INIT_ERROR | Perf software pmu init fail. |
#LOS_ERRNO_PERF_BUF_ERROR | Perf buffer init fail. |
#LOS_OK | Perf init success. |
VOID LOS_PerfNotifyHookReg | ( | const PERF_BUF_NOTIFY_HOOK | func | ) |
Register perf sample data buffer water mark hook function.
func | [IN] Buffer water mark hook function. |
None. |
在文件 los_perf.c 第 519 行定义.
VOID LOS_PerfStart | ( | UINT32 | sectionId | ) |
Start perf sampling.
sectionId | [IN] Set the section id for marking this piece of data in the perf sample data buffer. |
None. |
在文件 los_perf.c 第 455 行定义.
VOID LOS_PerfStop | ( | VOID | ) |
Stop perf sampling.
None. |
None. |
在文件 los_perf.c 第 487 行定义.