perf tools: Handle arrays in print fields for trace parsing
authorSteven Rostedt <srostedt@redhat.com>
Wed, 14 Oct 2009 19:43:35 +0000 (15:43 -0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 15 Oct 2009 08:42:36 +0000 (10:42 +0200)
commit0959b8d65ce26131c2d5ccfa518a7b76529280fa
treeeae5c5c426623156142dc406f92b42d358dd53c2
parent298ebc3ef2a6c569b3eb51651f04e26aecbf8a1d
perf tools: Handle arrays in print fields for trace parsing

The array used by the ftrace stack events (caller[x]) causes
issues with the parser. This adds code to handle the case, but
it also assumes that the array is of type long.

Note, this is a special case used (currently) only by the ftrace
user and kernel stack records.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <20091014194358.124833639@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/trace-event-parse.c