[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <562515B6.3050904@gmail.com>
Date: Mon, 19 Oct 2015 10:09:26 -0600
From: David Ahern <dsahern@...il.com>
To: Namhyung Kim <namhyung@...nel.org>,
Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Jiri Olsa <jolsa@...hat.com>,
LKML <linux-kernel@...r.kernel.org>,
Wang Nan <wangnan0@...wei.com>
Subject: Re: [PATCH 2/2] perf test: Suppress libtraceevent warnings
On 10/19/15 9:23 AM, Namhyung Kim wrote:
> Currently libtraceevent emits warning on unsupported event formats.
> However it'd be better to see them only -v option is given. To do that,
> it needs to override the warning() function which is used in the
> libtracevent. Thus add set_warning_routine() same as set_die_routine()
> and check the verbose flag in our warning routine.
>
> Before:
> # perf test 5
> 5: parse events tests :
> Warning: [kvmmmu:kvm_mmu_get_page] bad op token {
> Warning: [kvmmmu:kvm_mmu_sync_page] bad op token {
> Warning: [kvmmmu:kvm_mmu_unsync_page] bad op token {
> Warning: [kvmmmu:kvm_mmu_prepare_zap_page] bad op token {
> Warning: [kvmmmu:fast_page_fault] function is_writable_pte not defined
> ...
> Ok
>
> After:
> # perf test 5
> 5: parse events tests : Ok
>
> Signed-off-by: Namhyung Kim <namhyung@...nel.org>
> ---
> tools/perf/tests/parse-events.c | 14 ++++++++++++++
> tools/perf/util/usage.c | 5 +++++
> tools/perf/util/util.h | 1 +
> 3 files changed, 20 insertions(+)
>
Acked-by: David Ahern <dsahern@...il.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists