perf evlist: Fix inverted logic in perf_mmap__empty
authorHe Kuang <hekuang@huawei.com>
Tue, 7 Apr 2015 09:31:10 +0000 (17:31 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 8 Apr 2015 12:06:58 +0000 (09:06 -0300)
commit8ea92ceb748535799e3e9f35afb85bdc23bf6d7c
tree2c5d2d0cf391702c6ef4e796a20a666bd96095a1
parent6645f3187f5beb64f7a40515cfa18f3889264ece
perf evlist: Fix inverted logic in perf_mmap__empty

perf_evlist__mmap_consume() uses perf_mmap__empty() to judge whether
perf_mmap is empty and can be released. But the result is inverted so
fix it.

Signed-off-by: He Kuang <hekuang@huawei.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1428399071-7141-1-git-send-email-hekuang@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c