]> git.baikalelectronics.ru Git - kernel.git/commit
perf evlist: Fix side band thread draining
authorJiri Olsa <jolsa@kernel.org>
Tue, 16 Apr 2019 16:01:23 +0000 (18:01 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Apr 2019 17:30:11 +0000 (14:30 -0300)
commite6faf34d5d931c80341070634e0b28e3be98fd9f
treed03a6aa8ffe1c6d6ddc54821e9336ce4208a460e
parentc0c014ff3e60c765939bc014ec7d8652a06df339
perf evlist: Fix side band thread draining

Current perf_evlist__poll_thread() code could finish without draining
the data. Adding the logic that makes sure we won't finish before the
drain.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Song Liu <songliubraving@fb.com>
Fixes: ccc6a592ad1b ("perf evlist: Introduce side band thread")
Link: http://lkml.kernel.org/r/20190416160127.30203-9-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c