1. 13 Dec, 2013 1 commit
  2. 11 Dec, 2013 2 commits
    • Peter Zijlstra's avatar
      perf: Optimize ring-buffer write by depending on control dependencies · c7f2e3cd
      Peter Zijlstra authored
      Remove a full barrier from the ring-buffer write path by relying on
      a control dependency to order a LOAD -> STORE scenario.
      
      Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
      Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/n/tip-8alv40z6ikk57jzbaobnxrjl@git.kernel.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      c7f2e3cd
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo' of... · 81393214
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
        * Add an option in 'perf script' to print the source line number, from Adrian Hunter
      
        * Add --header/--header-only options to 'script' and 'report', the default is not
          tho show the header info, but as this has been the default for some time,
          leave a single line explaining how to obtain that information, from Jiri Olsa.
      
        * Fix symoff printing in callchains in 'perf script', from Adrian Hunter.
      
        * Assorted mmap_pages handling fixes, from Adrian Hunter.
      
        * Fix summary percentage when processing files in 'perf trace', from David Ahern.
      
        * Handle old kernels where the "raw_syscalls" tracepoints were called plan "syscalls",
          in 'perf trace', from David Ahern.
      
        * Several man pages typo fixes from Dongsheng Yang.
      
        * Add '-v' option to 'perf kvm', from Dongsheng Yang.
      
        * Make perf kvm diff support --guestmount, from Dongsheng Yang.
      
        * Get rid of several die() calls in libtraceevent, from Namhyung Kim.
      
        * Use basename() in a more robust way, to avoid problems related to different
          system library implementations for that function, from Stephane Eranian.
      
        * Remove open coded management of short_name_allocated member, from Adrian Hunter
      
        * Several cleanups in the "dso" methods, constifying some parameters and
          renaming some fields to clarify its purpose. (Arnaldo Carvalho de Melo.)
      
        * Add per-feature check flags, fixing libunwind related build problems on some
          architectures, from Jean Pihet.
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      81393214
  3. 10 Dec, 2013 14 commits
  4. 09 Dec, 2013 17 commits
  5. 06 Dec, 2013 1 commit
    • Steven Rostedt's avatar
      tools lib traceevent: Report better error message on bad function args · 3a3ffa2e
      Steven Rostedt authored
      When Jiri Olsa was writing a function callback for
      scsi_trace_parse_cdb(), he thought that the traceevent library had a
      bug in it because he was getting this error:
      
        Error: expected ')' but read ','
        Error: expected ')' but read ','
        Error: expected ')' but read ','
        Error: expected ')' but read ','
      
      But in truth, he didn't have the write number of arguments for the
      function callback, and the error was the library detecting the
      discrepancy. A better error message would have prevented the confusion:
      
        Error: function 'scsi_trace_parse_cdb()' only expects 2 arguments but event scsi_dispatch_cmd_timeout has more
        Error: function 'scsi_trace_parse_cdb()' only expects 2 arguments but event scsi_dispatch_cmd_start has more
        Error: function 'scsi_trace_parse_cdb()' only expects 2 arguments but event scsi_dispatch_cmd_error has more
        Error: function 'scsi_trace_parse_cdb()' only expects 2 arguments but event scsi_dispatch_cmd_done has more
      
      Or
      
        Error: function 'scsi_trace_parse_cdb()' expects 4 arguments but event scsi_dispatch_cmd_timeout only uses 3
        Error: function 'scsi_trace_parse_cdb()' expects 4 arguments but event scsi_dispatch_cmd_start only uses 3
        Error: function 'scsi_trace_parse_cdb()' expects 4 arguments but event scsi_dispatch_cmd_error only uses 3
        Error: function 'scsi_trace_parse_cdb()' expects 4 arguments but event scsi_dispatch_cmd_done only uses 3
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      Link: http://lkml.kernel.org/n/tip-a4c34w62vl0diitvxb7bt3er@git.kernel.orgSigned-off-by: default avatarJiri Olsa <jolsa@redhat.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      3a3ffa2e
  6. 05 Dec, 2013 4 commits
  7. 04 Dec, 2013 1 commit
    • Jiri Olsa's avatar
      tools lib traceevent: Update kvm plugin with is_writable_pte helper · 6d65894b
      Jiri Olsa authored
      Adding is_writable_pte print helper function, so the
      kvmmmu:fast_page_fault print format gets resolved properly.
      
      The diff of 'perf script' output generated by old and new code:
      (data was generated by 'perf record -e 'kvm:*,kvmmmu:*' -a')
      
        --- script.kvm.old
        +++ script.kvm.new
        - qemu-system-x86  3290 [002] 10708.755312: kvmmmu:fast_page_fault: [FAILED TO PARSE] vcpu_id=0 gva=4094486080 error_code=3 sptep=0xffff88019f1e3670 old_spte=336391285 new_spte=336391287 retry=1
        + qemu-system-x86  3290 [002] 10708.755312: kvmmmu:fast_page_fault: vcpu 0 gva f40ce640 error_code P|W sptep 0xffff88019f1e3670 old 0x140cec75 new 140cec77 spurious 0 fixed 1
      Signed-off-by: default avatarJiri Olsa <jolsa@redhat.com>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Link: http://lkml.kernel.org/r/1386076182-14484-28-git-send-email-jolsa@redhat.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      6d65894b