kernel-ark/tools/perf
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
..
bench
Documentation perf: Make the install relative to DESTDIR if specified 2010-03-11 14:08:11 +01:00
scripts
util perf: Fix static strings treated like dynamic ones 2010-05-11 09:14:24 +02:00
.gitignore
builtin-annotate.c perf session: Change perf_session post processing functions to take histogram tree 2010-03-10 13:53:49 +01:00
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-diff.c perf session: Change perf_session post processing functions to take histogram tree 2010-03-10 13:53:49 +01:00
builtin-help.c
builtin-kmem.c perf kmem: Fix breakage introduced by 5a0e3ad slab.h script 2010-04-06 17:48:06 +02:00
builtin-list.c
builtin-lock.c perf lock: Drop the buffers multiplexing dependency 2010-02-27 17:06:19 +01:00
builtin-probe.c perf probe: Fix probe_point buffer overrun 2010-03-13 08:32:22 +01:00
builtin-record.c perf record: Don't try to find buildids in a zero sized file 2010-03-11 20:00:32 +01:00
builtin-report.c perf report: Add multiple event support 2010-03-10 13:53:50 +01:00
builtin-sched.c
builtin-stat.c perf tools: Fix sparse CPU numbering related bugs 2010-03-11 13:36:53 +01:00
builtin-timechart.c
builtin-top.c perf top: Add missing initialization to zero 2010-03-16 22:51:00 +01:00
builtin-trace.c perf trace: Don't use pager if scripting 2010-03-04 12:19:55 +01:00
builtin.h
command-list.txt perf lock: Fix and add misc documentally things 2010-02-27 17:05:22 +01:00
CREDITS
design.txt
Makefile perf, probe-finder: Build fix on Debian 2010-04-02 22:46:26 +02:00
perf-archive.sh perf archive: Don't try to collect files without a build-id 2010-03-02 19:27:46 +01:00
perf.c Merge branch 'for-next' into for-linus 2010-03-08 16:55:37 +01:00
perf.h perf, ARM: Modify kuser rmb() call to compile for Thumb-2 2010-03-04 12:13:28 +01:00