perf python: Fix pyrf_evlist__read_on_cpu event consuming
authorJiri Olsa <jolsa@kernel.org>
Sun, 10 Jul 2016 11:07:56 +0000 (13:07 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 19:16:44 +0000 (16:16 -0300)
commite8968e654191390a1300f0847250353a1c9da30d
tree1cf0c700b38d1e139f730f3059ad86743dd2266a
parentad4e3c04587c01c2e2b00c0e6a414dbededa6c55
perf python: Fix pyrf_evlist__read_on_cpu event consuming

We can't consume the event before parsing it. Under heavy load we could
get caught by kernel writer overwriting the event we're trying to parse.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1468148882-10362-5-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/python.c