]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/trace/events/timer.h
Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma
[karo-tx-linux.git] / include / trace / events / timer.h
index 8d219470624f6c9d4eb5b39a037d1044a0fb811f..68c2c2000f02bb639e1445245e1e460a18349f54 100644 (file)
@@ -323,6 +323,27 @@ TRACE_EVENT(itimer_expire,
                  (int) __entry->pid, (unsigned long long)__entry->now)
 );
 
+#ifdef CONFIG_NO_HZ_COMMON
+TRACE_EVENT(tick_stop,
+
+       TP_PROTO(int success, char *error_msg),
+
+       TP_ARGS(success, error_msg),
+
+       TP_STRUCT__entry(
+               __field( int ,          success )
+               __string( msg,          error_msg )
+       ),
+
+       TP_fast_assign(
+               __entry->success        = success;
+               __assign_str(msg, error_msg);
+       ),
+
+       TP_printk("success=%s msg=%s",  __entry->success ? "yes" : "no", __get_str(msg))
+);
+#endif
+
 #endif /*  _TRACE_TIMER_H */
 
 /* This part must be outside protection */