perf evsel: Add missing decrement in id sample parsing
authorAdrian Hunter <[email protected]>
Fri, 18 Oct 2013 12:29:01 +0000 (15:29 +0300)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 21 Oct 2013 14:18:49 +0000 (11:18 -0300)
The final array decrement in id sample parsing is missing, which may
trip up the next person adding a sample format, so add it in.

Signed-off-by: Adrian Hunter <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/evsel.c

index 291b18ac236aa7992cbd8ff9399fa8306d8bd848..ec0cc1e21c626e3617820039e7a9df4ca60f43eb 100644 (file)
@@ -1218,6 +1218,7 @@ static int perf_evsel__parse_id_sample(const struct perf_evsel *evsel,
 
                sample->pid = u.val32[0];
                sample->tid = u.val32[1];
+               array--;
        }
 
        return 0;