Frederic Weisbecker
de068ec048
perf: Fix static strings treated like dynamic ones
...
The raw_field_ptr() helper, used to retrieve the address of a field
inside a trace event, treats every strings as if they were dynamic
ie: having a secondary level of indirection to retrieve their
contents.
FIELD_IS_STRING doesn't mean FIELD_IS_DYNAMIC, we only need to
compute the secondary dereference for the latter case.
This fixes perf sched segfaults, bad cmdline report and may be
some other bugs.
Reported-by: Jason Baron <jbaron@redhat.com>
Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Tom Zanussi <tzanussi@gmail.com>
2010-05-11 09:14:24 +02:00
..
2010-02-04 09:33:27 +01:00
2010-04-02 21:32:16 +02:00
2009-08-16 10:47:47 +02:00
2009-07-01 12:49:48 +02:00
2010-02-04 09:33:26 +01:00
2010-02-04 09:33:26 +01:00
2009-10-13 11:55:31 +02:00
2009-10-23 08:22:47 +02:00
2009-09-24 21:27:51 +02:00
2009-08-16 23:06:45 +02:00
2009-09-24 21:27:51 +02:00
2009-08-16 10:47:47 +02:00
2010-03-11 13:36:53 +01:00
2010-03-11 13:36:53 +01:00
2009-11-23 21:55:20 +01:00
2009-12-28 09:03:33 +01:00
2009-11-16 22:05:50 +01:00
2009-12-28 10:36:36 +01:00
2009-12-28 10:36:36 +01:00
2010-02-28 10:20:25 -08:00
2010-03-10 13:53:48 +01:00
2009-08-16 10:47:47 +02:00
2009-09-24 21:27:51 +02:00
2010-02-04 10:03:03 +01:00
2010-01-21 08:31:29 +01:00
2009-07-01 12:49:48 +02:00
2009-09-24 21:27:51 +02:00
2010-03-18 16:52:46 -07:00
2010-03-10 13:53:49 +01:00
2009-09-24 21:27:51 +02:00
2010-02-25 12:27:17 +01:00
2010-02-25 12:27:17 +01:00
2009-06-27 06:06:39 +02:00
2010-01-13 10:09:13 +01:00
2009-10-15 11:35:23 +02:00
2009-12-10 08:30:28 +01:00
2009-09-24 21:27:51 +02:00
2009-08-16 10:47:47 +02:00
2009-10-16 10:34:28 +02:00
2010-03-13 08:32:22 +01:00
2010-01-13 10:09:14 +01:00
2010-03-16 10:02:19 +01:00
2010-03-16 10:02:19 +01:00
2009-08-04 11:09:56 +02:00
2009-09-24 21:27:51 +02:00
2009-08-16 10:47:47 +02:00
2009-09-24 21:27:51 +02:00
2010-03-10 13:53:48 +01:00
2010-03-10 13:53:48 +01:00
2009-09-24 21:27:51 +02:00
2009-12-16 16:53:37 +01:00
2009-12-16 16:53:37 +01:00
2009-07-01 12:49:48 +02:00
2009-09-24 21:27:51 +02:00
2010-02-25 17:49:30 +01:00
2010-02-25 17:49:30 +01:00
2009-12-15 20:22:01 +01:00
2009-12-15 20:22:02 +01:00
2009-10-20 03:39:21 +02:00
2009-09-24 21:27:51 +02:00
2010-03-16 09:52:36 +01:00
2010-03-16 09:52:36 +01:00
2010-03-10 13:53:52 +01:00
2010-03-10 13:53:52 +01:00
2010-01-16 10:58:46 +01:00
2010-05-11 09:14:24 +02:00
2010-02-04 10:03:03 +01:00
2010-02-25 04:07:29 +01:00
2010-02-25 04:07:29 +01:00
2009-09-24 21:27:51 +02:00
2009-06-07 17:31:52 +02:00
2010-01-17 07:53:09 +01:00
2009-12-28 09:03:36 +01:00
2010-01-13 10:09:15 +01:00
2009-09-24 21:27:51 +02:00
2009-11-24 16:37:03 +01:00