]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/trace/trace_probe.h
Merge tag 'sound-5.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
[linux.git] / kernel / trace / trace_probe.h
index 87d48d850b632211c75e3f8e8da2d473a856d9a5..d1714820efe1949d2ec7c9343bb623bd42d17ed5 100644 (file)
@@ -55,7 +55,6 @@
 /* Flags for trace_probe */
 #define TP_FLAG_TRACE          1
 #define TP_FLAG_PROFILE                2
-#define TP_FLAG_REGISTERED     4
 
 /* data_loc: data location, compatible with u32 */
 #define make_data_loc(len, offs)       \
@@ -261,9 +260,20 @@ static inline bool trace_probe_is_enabled(struct trace_probe *tp)
        return trace_probe_test_flag(tp, TP_FLAG_TRACE | TP_FLAG_PROFILE);
 }
 
-static inline bool trace_probe_is_registered(struct trace_probe *tp)
+static inline const char *trace_probe_name(struct trace_probe *tp)
 {
-       return trace_probe_test_flag(tp, TP_FLAG_REGISTERED);
+       return trace_event_name(&tp->call);
+}
+
+static inline const char *trace_probe_group_name(struct trace_probe *tp)
+{
+       return tp->call.class->system;
+}
+
+static inline struct trace_event_call *
+       trace_probe_event_call(struct trace_probe *tp)
+{
+       return &tp->call;
 }
 
 static inline int trace_probe_unregister_event_call(struct trace_probe *tp)