Re: [PATCH 2/2] perf test: Suppress libtraceevent warnings

2015-10-19 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 19, 2015 at 10:09:26AM -0600, David Ahern escreveu: > On 10/19/15 9:23 AM, Namhyung Kim wrote: > >Before: > > # perf test 5 > >5: parse events tests : > > Warning: [kvmmmu:kvm_mmu_get_page] bad op token { > > Warning:

Re: [PATCH 2/2] perf test: Suppress libtraceevent warnings

2015-10-19 Thread David Ahern
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()

[PATCH 2/2] perf test: Suppress libtraceevent warnings

2015-10-19 Thread Namhyung Kim
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

[PATCH 2/2] perf test: Suppress libtraceevent warnings

2015-10-19 Thread Namhyung Kim
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

Re: [PATCH 2/2] perf test: Suppress libtraceevent warnings

2015-10-19 Thread David Ahern
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()

Re: [PATCH 2/2] perf test: Suppress libtraceevent warnings

2015-10-19 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 19, 2015 at 10:09:26AM -0600, David Ahern escreveu: > On 10/19/15 9:23 AM, Namhyung Kim wrote: > >Before: > > # perf test 5 > >5: parse events tests : > > Warning: [kvmmmu:kvm_mmu_get_page] bad op token { > > Warning: