]> Pileus Git - ~andy/linux/blobdiff - kernel/trace/trace.h
tracing: Use direct field, type and system names
[~andy/linux] / kernel / trace / trace.h
index 68cad7a9e089e0f4c16ba465b37eaf8639ac9b7d..e420f2a230de323dae5732401a68699bb13129f0 100644 (file)
@@ -175,6 +175,7 @@ struct tracer;
 struct trace_array {
        struct ring_buffer      *buffer;
        struct list_head        list;
+       char                    *name;
        int                     cpu;
        int                     buffer_disabled;
        struct trace_cpu        trace_cpu;      /* place holder */
@@ -886,8 +887,8 @@ enum {
 
 struct ftrace_event_field {
        struct list_head        link;
-       char                    *name;
-       char                    *type;
+       const char              *name;
+       const char              *type;
        int                     filter_type;
        int                     offset;
        int                     size;
@@ -999,6 +1000,8 @@ filter_check_discard(struct ftrace_event_call *call, void *rec,
 }
 
 extern void trace_event_enable_cmd_record(bool enable);
+extern int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr);
+extern int event_trace_del_tracer(struct trace_array *tr);
 
 extern struct mutex event_mutex;
 extern struct list_head ftrace_events;