Messages in this thread | | | Subject | Re: [PATCH 2/2] perf test: Suppress libtraceevent warnings | From | David Ahern <> | Date | Mon, 19 Oct 2015 10:09:26 -0600 |
| |
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>
| |