Skip to contentSkip to conversation

trace_export: repair missed fields

PATCH In review Lai Jiangshan 1 participant 2 messages Jun 26, 2009 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace_export: repair missed fields

Some fields for struct ftrace_graph_ret are missed when they are exported to user.

---

kernel/trace/trace_event_types.h +3 -0
index 5e32e37..6db005e 100644
@@ -26,6 +26,9 @@ TRACE_EVENT_FORMAT(funcgraph_exit, TRACE_GRAPH_RET,
 		   ftrace_graph_ret_entry, ignore,
 	TRACE_STRUCT(
 		TRACE_FIELD(unsigned long, ret.func, func)
+		TRACE_FIELD(unsigned long long, ret.calltime, calltime)
+		TRACE_FIELD(unsigned long long, ret.rettime, rettime)
+		TRACE_FIELD(unsigned long, ret.overrun, overrun)
 		TRACE_FIELD(int, ret.depth, depth)
 	),
 	TP_RAW_FMT("<-- %lx (%d)")
#1 lore raw

[tip:tracing/urgent] trace_export: Repair missed fields

Commit-ID:  82d5308127c3e3404ffbf41e503853c68660b18b
Gitweb:     http://git.kernel.org/tip/82d5308127c3e3404ffbf41e503853c68660b18b
Author:     Lai Jiangshan <[email protected]>
AuthorDate: Fri, 26 Jun 2009 17:07:02 +0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 26 Jun 2009 20:48:40 +0200

trace_export: Repair missed fields

Some fields for struct ftrace_graph_ret are missed when they are exported to user.

Cc Frederic Weisbecker <[email protected]>
Cc Steven Rostedt <[email protected]>

LKML-Reference: <[email protected]>

---
 kernel/trace/trace_event_types.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
kernel/trace/trace_event_types.h +3 -0
index 5e32e37..6db005e 100644
@@ -26,6 +26,9 @@ TRACE_EVENT_FORMAT(funcgraph_exit, TRACE_GRAPH_RET,
 		   ftrace_graph_ret_entry, ignore,
 	TRACE_STRUCT(
 		TRACE_FIELD(unsigned long, ret.func, func)
+		TRACE_FIELD(unsigned long long, ret.calltime, calltime)
+		TRACE_FIELD(unsigned long long, ret.rettime, rettime)
+		TRACE_FIELD(unsigned long, ret.overrun, overrun)
 		TRACE_FIELD(int, ret.depth, depth)
 	),
 	TP_RAW_FMT("<-- %lx (%d)")