• Ingo Molnar's avatar
    perf stat: flip around ':k' and ':u' flags · d3f4b385
    Ingo Molnar authored
    This output:
    
     $ perf stat -e 0:1:k -e 0:1:u ./hello
      Performance counter stats for './hello':
              140131  instructions         (events)
             1906968  instructions         (events)
    
    Is quite confusing - as :k means "user instructions", :u means
    "kernel instructions".
    
    Flip them around - as the 'exclude' property is not intuitive in
    the flag naming.
    
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: John Kacur <jkacur@redhat.com>
    Cc: Mike Galbraith <efault@gmx.de>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    d3f4b385
builtin-stat.c 14.2 KB