perf tools: Only increase index if perf_evsel__new_idx() succeeds
authorTaeung Song <treeze.taeung@gmail.com>
Wed, 1 Feb 2017 12:34:04 +0000 (21:34 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 8 Feb 2017 12:41:10 +0000 (09:41 -0300)
commit75fc5ae5cc53fff71041ecadeb3354a2b4c9fe42
tree2ec72790ee5c4b2134ee46035f6fbcccd2ae45af
parentd5c3a937e0b3ac16d0d7d152fab6768f765350ac
perf tools: Only increase index if perf_evsel__new_idx() succeeds

Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1485952447-7013-2-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c