mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 22:43:34 +08:00
perf: added perf_event_count() method
this allows drivers to get an event_count from a perf counter
This commit is contained in:
committed by
Lorenz Meier
parent
0b7294a26e
commit
7257642371
@@ -135,6 +135,14 @@ __EXPORT extern void perf_print_all(void);
|
||||
*/
|
||||
__EXPORT extern void perf_reset_all(void);
|
||||
|
||||
/**
|
||||
* Return current event_count
|
||||
*
|
||||
* @param handle The counter returned from perf_alloc.
|
||||
* @return event_count
|
||||
*/
|
||||
__EXPORT extern uint64_t perf_event_count(perf_counter_t handle);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user