libperf tests: Add support for verbose printing
authorRob Herring <robh@kernel.org>
Wed, 14 Apr 2021 16:07:38 +0000 (11:07 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 15 Apr 2021 19:40:15 +0000 (16:40 -0300)
commitd3003d9e686890a1e9f0cc7c08aa02ef2953b1f0
tree9150db1aae2cbac0523b3f555b5b80fb5a43261a
parent6cd70754f262e593febc06a02d7ea637c927ea42
libperf tests: Add support for verbose printing

Add __T_VERBOSE() so tests can add verbose output. The verbose output is
enabled with the '-v' command line option. Running 'make tests V=1' will
enable the '-v' option when running the tests.

It'll be used in the next patch, for a user space counter access test.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Itaru Kitayama <itaru.kitayama@gmail.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Link: http://lore.kernel.org/lkml/20210414155412.3697605-3-robh@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/include/internal/tests.h
tools/lib/perf/tests/Makefile