perf_counter tools: Fix index boundary check
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 13 Jul 2009 00:25:47 +0000 (02:25 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Jul 2009 08:58:28 +0000 (10:58 +0200)
commit23cdb5d5171d591ec911aada682e09d53c14a810
tree3f2b2a4470fc5da8033494482367a27e69ec6ef9
parentd4d7d0b9545721d3cabb19d15163bbc66b797707
perf_counter tools: Fix index boundary check

Keep index within event_type_descriptors[]

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A5A7F0B.4070106@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/parse-events.c