lkml.org 
[lkml]   [2014]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 3/3] tracing: introduce a trace_data_offset struct to store array size
On Mon, 3 Mar 2014 15:48:26 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:

> without patch:
>
> pst2pdf-3506 [000] 120.700910: sched_process_exec: filename=/usr/bin/pst2pdf pid=3506 old_pid=3506
>
>
> With patch:
>
> pstopnm-4432 [001] 1490.246765: sched_process_exec: filename= pid=4432 old_pid=4432

Now, after applying the following patch to your patch, I was able to
get this again:

pst2pdf-3512 [000] 99.693582: sched_process_exec: filename=/usr/bin/pst2pdf pid=3512 old_pid=3512


-- Steve

diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index 67e4122..2c6d1b0 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -124,8 +124,13 @@ struct trace_event {
};

struct trace_array_offset {
+#ifdef __BIG_ENDIAN
+ u16 length;
+ u16 offset;
+#else
u16 offset;
u16 length;
+#endif
};

extern int register_ftrace_event(struct trace_event *event);

\
 
 \ /
  Last update: 2014-03-03 22:41    [W:0.072 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site