perf trace: Allow specifying index offset in strarrays
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 8 Oct 2013 19:00:21 +0000 (16:00 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Oct 2013 15:17:59 +0000 (12:17 -0300)
commit03e3adc9f4d8b57dc83475c8c4c6e462a78ff709
treea2fa111925de27561e3cf8ac22b33c143644591d
parent316d70d6dbde540b275289563cbddd9f0c903fc6
perf trace: Allow specifying index offset in strarrays

So that the index passed doesn't have to start at zero, being
decremented from an offset specified when declaring the strarray before
being used as the real array index.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-k1ce6uqyt4qar9edrj3mevod@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c