Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1250884
| From | David Ahern <dsahern@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] perf test: Suppress libtraceevent warnings |
| Date | 2015-10-19 18:10 +0200 |
| Message-ID | <qllaz-Yc-41@gated-at.bofh.it> (permalink) |
| References | <qlkxP-8qb-7@gated-at.bofh.it> <qlkxQ-8qb-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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@kernel.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@gmail.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] perf test: Silence tracepoint event failures Namhyung Kim <namhyung@kernel.org> - 2015-10-19 17:30 +0200
[PATCH 2/2] perf test: Suppress libtraceevent warnings Namhyung Kim <namhyung@kernel.org> - 2015-10-19 17:30 +0200
Re: [PATCH 2/2] perf test: Suppress libtraceevent warnings David Ahern <dsahern@gmail.com> - 2015-10-19 18:10 +0200
Re: [PATCH 2/2] perf test: Suppress libtraceevent warnings Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-10-19 20:10 +0200
[tip:perf/core] perf test: Suppress libtraceevent warnings tip-bot for Namhyung Kim <tipbot@zytor.com> - 2015-10-20 09:50 +0200
Re: [PATCH 1/2] perf test: Silence tracepoint event failures David Ahern <dsahern@gmail.com> - 2015-10-19 18:10 +0200
Re: [PATCH 1/2] perf test: Silence tracepoint event failures Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-10-19 20:00 +0200
[tip:perf/core] perf test: Silence tracepoint event failures tip-bot for Namhyung Kim <tipbot@zytor.com> - 2015-10-20 09:50 +0200
csiph-web