[PATCH 04/14] tracing: add private data field into struct ftrace_event_file

From: zhangwei(Jovi)
Date: Wed Mar 27 2013 - 05:51:34 EST


From: "zhangwei(Jovi)" <jovi.zhangwei@xxxxxxxxxx>

Since modules can register own event_trace_ops tracing callback
functions now, so it's reasonable to allow modules have own
private data in struct ftrace_event_file.

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@xxxxxxxxxx>
---
include/linux/ftrace_event.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index 27d7a4f..38c272a 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -319,6 +319,8 @@ struct ftrace_event_file {
* caching and such. Which is mostly OK ;-)
*/
unsigned long flags;
+
+ void *data; /* private data */
};

#define __TRACE_EVENT_FLAGS(name, value) \
--
1.7.9.7


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/