diff options
author | Joel Fernandes (Google) <[email protected]> | 2020-01-02 14:46:25 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2020-01-03 11:34:37 -0500 |
commit | bf44f488e168368cae4139b4b33c3d0aaa11679c (patch) | |
tree | 0fa02cc8521cf9a014a5b9f99e613933828a4a1b | |
parent | e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d (diff) |
tracing: Change offset type to s32 in preempt/irq tracepoints
Discussion in the below link reported that symbols in modules can appear
to be before _stext on ARM architecture, causing wrapping with the
offsets of this tracepoint. Change the offset type to s32 to fix this.
Link: http://lore.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Cc: Bjorn Helgaas <[email protected]>
Cc: David Sterba <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Sakari Ailus <[email protected]>
Cc: Antonio Borneo <[email protected]>
Cc: [email protected]
Fixes: d59158162e032 ("tracing: Add support for preempt and irq enable/disable events")
Signed-off-by: Joel Fernandes (Google) <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
-rw-r--r-- | include/trace/events/preemptirq.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/trace/events/preemptirq.h b/include/trace/events/preemptirq.h index 95fba0471e5b..3f249e150c0c 100644 --- a/include/trace/events/preemptirq.h +++ b/include/trace/events/preemptirq.h @@ -18,13 +18,13 @@ DECLARE_EVENT_CLASS(preemptirq_template, TP_ARGS(ip, parent_ip), TP_STRUCT__entry( - __field(u32, caller_offs) - __field(u32, parent_offs) + __field(s32, caller_offs) + __field(s32, parent_offs) ), TP_fast_assign( - __entry->caller_offs = (u32)(ip - (unsigned long)_stext); - __entry->parent_offs = (u32)(parent_ip - (unsigned long)_stext); + __entry->caller_offs = (s32)(ip - (unsigned long)_stext); + __entry->parent_offs = (s32)(parent_ip - (unsigned long)_stext); ), TP_printk("caller=%pS parent=%pS", |