tracing: Use EVENT_NULL_STR macro instead of open coding "(null)"
[linux-2.6-microblaze.git] / include / linux / trace_events.h
index fc6d0af..6f9bdfb 100644 (file)
@@ -17,6 +17,9 @@ struct dentry;
 struct bpf_prog;
 union bpf_attr;
 
+/* Used for event string fields when they are NULL */
+#define EVENT_NULL_STR         "(null)"
+
 const char *trace_print_flags_seq(struct trace_seq *p, const char *delim,
                                  unsigned long flags,
                                  const struct trace_print_flags *flag_array);