summaryrefslogtreecommitdiffstats
path: root/pk/trace/pk_trace_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'pk/trace/pk_trace_core.c')
-rw-r--r--pk/trace/pk_trace_core.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pk/trace/pk_trace_core.c b/pk/trace/pk_trace_core.c
index 93072bd8..429679db 100644
--- a/pk/trace/pk_trace_core.c
+++ b/pk/trace/pk_trace_core.c
@@ -91,12 +91,15 @@ void pk_trace_tiny(uint32_t i_parm)
// This function is called periodically in order to ensure that the max ticks
// between trace entries is no more than what will fit inside a 32bit value.
+#ifndef PK_TRACE_TIMER_OUTPUT
+#define PK_TRACE_TIMER_OUTPUT 1
+#endif
void pk_trace_timer_callback(void* arg)
{
-
+#if PK_TRACE_TIMER_OUTPUT
// guarantee at least one trace before the lower 32bit timebase flips
PK_TRACE("PERIODIC TIMESTAMPING TRACE");
-
+#endif
// restart the timer
pk_timer_schedule(&g_pk_trace_timer,
PK_TRACE_TIMER_PERIOD);
OpenPOWER on IntegriCloud