diff --git a/platforms/posix/src/px4_layer/drv_hrt.cpp b/platforms/posix/src/px4_layer/drv_hrt.cpp index e17e6b364571659d6edd7f8b1a39f8836a5b8a54..407c9a16735774f8ccdd1387cf69b4fe4787f75a 100644 --- a/platforms/posix/src/px4_layer/drv_hrt.cpp +++ b/platforms/posix/src/px4_layer/drv_hrt.cpp @@ -54,11 +54,6 @@ static struct sq_queue_s callout_queue; -/* latency histogram */ -#define LATENCY_BUCKET_COUNT 8 -__EXPORT const uint16_t latency_bucket_count = LATENCY_BUCKET_COUNT; -__EXPORT const uint16_t latency_buckets[LATENCY_BUCKET_COUNT] = { 1, 2, 5, 10, 20, 50, 100, 1000 }; -__EXPORT uint32_t latency_counters[LATENCY_BUCKET_COUNT + 1]; static void hrt_call_reschedule(void); diff --git a/src/systemcmds/perf/perf.c b/src/systemcmds/perf/perf.c index 8daa4a6bba50d212c96c845ed4faa11e7fb0b0db..7e0f083f2a0190edcd4372692b10623db921c60a 100644 --- a/src/systemcmds/perf/perf.c +++ b/src/systemcmds/perf/perf.c @@ -44,6 +44,13 @@ __EXPORT int perf_main(int argc, char *argv[]); +/* latency histogram */ +#define LATENCY_BUCKET_COUNT 8 +__EXPORT const uint16_t latency_bucket_count = LATENCY_BUCKET_COUNT; +__EXPORT const uint16_t latency_buckets[LATENCY_BUCKET_COUNT] = { 1, 2, 5, 10, 20, 50, 100, 1000 }; +__EXPORT uint32_t latency_counters[LATENCY_BUCKET_COUNT + 1]; + + static void print_usage(void) { PRINT_MODULE_DESCRIPTION("Tool to print performance counters");