aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib/perf_counter.h
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2013-10-11 16:22:08 +0200
committerAnton Babushkin <anton.babushkin@me.com>2013-10-11 16:22:08 +0200
commite770f84858491591cd07554989fbc0708b9e0cd3 (patch)
tree723d690aa3759fdfe0776888f5c22bddf1d2d40c /src/modules/systemlib/perf_counter.h
parent87e1ffe0ba293c62b882a8ae9729878e36a95c4c (diff)
parent1306c9de7b946783ff1143bb42a33734e9380e2c (diff)
downloadpx4-firmware-e770f84858491591cd07554989fbc0708b9e0cd3.tar.gz
px4-firmware-e770f84858491591cd07554989fbc0708b9e0cd3.tar.bz2
px4-firmware-e770f84858491591cd07554989fbc0708b9e0cd3.zip
Merge branch 'master' into px4io_fix
Diffstat (limited to 'src/modules/systemlib/perf_counter.h')
-rw-r--r--src/modules/systemlib/perf_counter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/systemlib/perf_counter.h b/src/modules/systemlib/perf_counter.h
index 4cd8b67a1..e1e3cbe95 100644
--- a/src/modules/systemlib/perf_counter.h
+++ b/src/modules/systemlib/perf_counter.h
@@ -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