Lines Matching full:perf
33 * @defgroup los_perf Perf
50 * Perf max sample filter task number.
56 * Perf max sample event counter's number.
62 * Perf max backtrace depth.
68 * Perf sample data buffer's water mark 1/N.
74 * Perf status.
77 PERF_UNINIT, /* perf isn't inited */
78 PERF_STARTED, /* perf is started */
79 PERF_STOPPED, /* perf is stopped */
84 * Define the type of the perf sample data buffer water mark hook function.
91 * Define the type of the perf sample data buffer flush hook function.
98 * Perf error code: Bad status.
102 * Solution: Follow the perf state machine.
108 * Perf error code: Hardware pmu init failed.
118 * Perf error code: Hrtimer init failed for hrtimer timed pmu init.
128 * Perf error code: Software pmu init failed.
132 * Solution: Check the Perf software events init.
138 * Perf error code: Perf buffer init failed.
148 * Perf error code: Perf pmu type error.
158 * Perf error code: Perf pmu config error.
168 * Perf error code: Perf pmu config attr is NULL.
178 * Perf types
229 * perf sample data types
245 * perf configuration sub event information
255 } events[PERF_MAX_EVENT]; /* perf event list */
256 UINT32 eventsNr; /* total perf event number */
263 * perf configuration main information
265 …* This structure is used to set perf sampling attributes, including events, tasks and other inform…
268 PerfEventConfig eventsCfg; /* perf event config */
269 UINT32 taskIds[PERF_MAX_FILTER_TSKS]; /* perf task filter list (allowlist) */
271 … if set 0 perf will sample all tasks */
272 …UINT32 processIds[PERF_MAX_FILTER_TSKS]; /* perf process filter list (allowlist)…
274 … if set 0 perf will sample all processes */
281 * @brief Init perf.
285 * <li>Used to initialize the perf module, including initializing the PMU, allocating memory,
296 * @retval #LOS_ERRNO_PERF_STATUS_INVALID Perf in a wrong status.
297 * @retval #LOS_ERRNO_PERF_HW_INIT_ERROR Perf hardware pmu init fail.
298 * @retval #LOS_ERRNO_PERF_TIMED_INIT_ERROR Perf timed pmu init fail.
299 * @retval #LOS_ERRNO_PERF_SW_INIT_ERROR Perf software pmu init fail.
300 * @retval #LOS_ERRNO_PERF_BUF_ERROR Perf buffer init fail.
301 * @retval #LOS_OK Perf init success.
311 * @brief Start perf sampling.
314 * Start perf sampling.
318 …* @param sectionId [IN] Set the section id for marking this piece of data in the perf sa…
329 * @brief Stop perf sampling.
332 * Stop perf sampling.
348 * @brief Config perf parameters.
351 …* Config perf parameters before sample, for example, sample event, sample task, etc. This interfac…
356 * @param attr [IN] Address of a perf event attr struct.
358 * @retval #LOS_ERRNO_PERF_STATUS_INVALID Perf in a wrong status.
360 * @retval #LOS_ERRNO_PERF_INVALID_PMU Config perf pmu with error type.
361 …* @retval #LOS_ERRNO_PERF_PMU_CONFIG_ERROR Config perf events fail with invalid event id or…
372 * @brief Read data from perf sample data buffer.
375 …* Because perf sample data buffer is a ringbuffer, the data may be covered after user read ringbuf…
391 * @brief Register perf sample data buffer water mark hook function.
395 * <li> Register perf sample data buffer water mark hook function.</li>
413 * @brief Register perf sample data buffer flush hook function.
417 * <li> Register perf sample data buffer flush hook function.</li>