linux-sg2042/tools/lib/traceevent
Kapileshwar Singh c2e4b24ff8 tools lib traceevent: Fix string handling in heterogeneous arch environments
When a trace recorded on a 32-bit device is processed with a 64-bit
binary, the higher 32-bits of the address need to ignored.

The lack of this results in the output of the 64-bit pointer
value to the trace as the 32-bit address lookup fails in find_printk().

Before:

  burn-1778  [003]   548.600305: bputs:   0xc0046db2s: 2cec5c058d98c

After:

  burn-1778  [003]   548.600305: bputs:   0xc0046db2s: RT throttling activated

The problem occurs in PRINT_FIELD when the field is recognized as a
pointer to a string (of the type const char *)

Heterogeneous architectures cases below can arise and should be handled:

* Traces recorded using 32-bit addresses processed on a 64-bit machine
* Traces recorded using 64-bit addresses processed on a 32-bit machine

Reported-by: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Javi Merino <javi.merino@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1442928123-13824-1-git-send-email-kapileshwar.singh@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-09-22 11:57:04 -03:00
..
.gitignore tools lib traceevent: Ignore libtrace-dynamic-list file 2015-06-08 10:30:32 -03:00
Build tools lib traceevent: Use tools build framework 2015-02-12 17:55:38 -03:00
Makefile tools lib: Improve clean target 2015-07-08 17:56:13 -03:00
event-parse.c tools lib traceevent: Fix string handling in heterogeneous arch environments 2015-09-22 11:57:04 -03:00
event-parse.h tools lib traceevent: Allow setting an alternative symbol resolver 2015-07-23 22:01:26 -03:00
event-plugin.c tools lib traceevent: Make plugin options either string or boolean 2015-03-24 12:20:09 -03:00
event-utils.h tools lib traceevent: Get rid of die() finally!! 2014-01-15 15:10:36 -03:00
kbuffer-parse.c tools lib traceevent: Add way to find sub buffer boundary 2015-03-24 12:22:09 -03:00
kbuffer.h tools lib traceevent: Add way to find sub buffer boundary 2015-03-24 12:22:09 -03:00
parse-filter.c tools lib traceevent: Free filter tokens in process_filter() 2015-03-24 12:23:03 -03:00
parse-utils.c tools lib traceevent: Get rid of die() finally!! 2014-01-15 15:10:36 -03:00
plugin_cfg80211.c tools lib traceevent: Provide le16toh define for older systems 2015-05-14 12:28:11 -03:00
plugin_function.c tools lib traceevent: Add options to function plugin 2014-06-07 23:33:37 +02:00
plugin_hrtimer.c tools lib traceevent: Unregister handler when hrtimer plugin is unloaded 2014-01-16 16:26:24 -03:00
plugin_jbd2.c tools lib traceevent: Clean up format of args in jbd2 plugin 2014-06-19 18:18:37 +02:00
plugin_kmem.c tools lib traceevent: Unregister handler when kmem plugin is unloaded 2014-01-16 16:26:24 -03:00
plugin_kvm.c tools lib traceevent: Fix format in plugin_kvm 2014-06-19 18:18:33 +02:00
plugin_mac80211.c tools lib traceevent: Unregister handler when mac80211 plugin is unloaded 2014-01-16 16:26:25 -03:00
plugin_sched_switch.c tools lib traceevent: Unregister handler when sched_switch plugin is unloaded 2014-01-16 16:26:25 -03:00
plugin_scsi.c scsi: add SPC-3 command definitions 2014-11-24 20:01:44 +01:00
plugin_xen.c tools lib traceevent: Unregister handler when xen plugin is unloaded 2014-01-16 16:26:25 -03:00
trace-seq.c tools lib traceevent: Introduce trace_seq_do_fprintf function 2015-02-06 11:46:37 +01:00