perf: added perf_event_count() method

this allows drivers to get an event_count from a perf counter
This commit is contained in:
Andrew Tridgell
2013-09-12 09:25:08 +02:00
committed by Lorenz Meier
parent 0b7294a26e
commit 7257642371
2 changed files with 34 additions and 0 deletions
+8
View File
@@ -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