]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - tools/perf/util/hist.c
perf utils: Check verbose flag properly
authorNamhyung Kim <namhyung@kernel.org>
Fri, 17 Feb 2017 08:17:38 +0000 (17:17 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 20 Feb 2017 14:35:54 +0000 (11:35 -0300)
commitbb963e16507ca7670f0bb47ccaada8874b2ba6a1
treef031d2d30e418588ebf323d85f749a14894d6e39
parent80df1988201ac6648609eba13d48aef9f7974c10
perf utils: Check verbose flag properly

It now can have negative value to suppress the message entirely.  So it
needs to check it being positive.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: kernel-team@lge.com
Link: http://lkml.kernel.org/r/20170217081742.17417-3-namhyung@kernel.org
[ Adjust fuzz on tools/perf/util/pmu.c, add > 0 checks in many other places ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
29 files changed:
tools/perf/builtin-diff.c
tools/perf/builtin-mem.c
tools/perf/builtin-record.c
tools/perf/builtin-report.c
tools/perf/builtin-sched.c
tools/perf/builtin-stat.c
tools/perf/builtin-top.c
tools/perf/builtin-trace.c
tools/perf/pmu-events/json.c
tools/perf/tests/attr.c
tools/perf/tests/builtin-test.c
tools/perf/tests/code-reading.c
tools/perf/tests/fdarray.c
tools/perf/tests/llvm.c
tools/perf/tests/parse-events.c
tools/perf/tests/perf-record.c
tools/perf/tests/python-use.c
tools/perf/tests/thread-map.c
tools/perf/tests/vmlinux-kallsyms.c
tools/perf/ui/browsers/map.c
tools/perf/ui/hist.c
tools/perf/util/annotate.c
tools/perf/util/dso.c
tools/perf/util/hist.c
tools/perf/util/pmu.c
tools/perf/util/probe-event.c
tools/perf/util/sort.c
tools/perf/util/stat.c
tools/perf/util/symbol-elf.c