lkml.org 
[lkml]   [2015]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 2/2] perf test: Suppress libtraceevent warnings
    From
    Date
    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>




    \
     
     \ /
      Last update: 2015-10-19 18:21    [W:3.106 / U:0.408 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site