proc: fix timerslack_ns CAP_SYS_NICE check when adjusting self
[cascardo/linux.git] / kernel / trace / trace_entries.h
index 5c30efc..d1cc37e 100644 (file)
@@ -322,3 +322,30 @@ FTRACE_ENTRY(branch, trace_branch,
        FILTER_OTHER
 );
 
+
+FTRACE_ENTRY(hwlat, hwlat_entry,
+
+       TRACE_HWLAT,
+
+       F_STRUCT(
+               __field(        u64,                    duration        )
+               __field(        u64,                    outer_duration  )
+               __field(        u64,                    nmi_total_ts    )
+               __field_struct( struct timespec,        timestamp       )
+               __field_desc(   long,   timestamp,      tv_sec          )
+               __field_desc(   long,   timestamp,      tv_nsec         )
+               __field(        unsigned int,           nmi_count       )
+               __field(        unsigned int,           seqnum          )
+       ),
+
+       F_printk("cnt:%u\tts:%010lu.%010lu\tinner:%llu\touter:%llunmi-ts:%llu\tnmi-count:%u\n",
+                __entry->seqnum,
+                __entry->tv_sec,
+                __entry->tv_nsec,
+                __entry->duration,
+                __entry->outer_duration,
+                __entry->nmi_total_ts,
+                __entry->nmi_count),
+
+       FILTER_OTHER
+);