1. 14 8月, 2014 3 次提交
    • A
      perf trace: Add beautifier for mremap flags param · 86998dda
      Alex Snast 提交于
      ~/devel/kernel/tools/perf(branch:master*) » sudo ./perf trace ~/mremap_test
           0.543 ( 0.003 ms): mprotect(start: 0x600000, len: 4096, prot: READ      ) = 0
           0.550 ( 0.003 ms): mprotect(start: 0x7f441260d000, len: 4096, prot: READ) = 0
           0.561 ( 0.010 ms): munmap(addr: 0x7f44125e2000, len: 165572             ) = 0
           0.595 ( 0.012 ms): mmap(len: 12288, prot: READ|WRITE, flags: SHARED|ANONYMOUS|LOCKED, fd: -1) = 0x12608000
           0.603 ( 0.006 ms): mremap(addr: 0x7f4412608000, old_len: 4096, new_len: 4096, flags: MAYMOVE|FIXED, new_addr: 0x7f16da295000) = 0xda295000
           0.608 ( 0.003 ms): mremap(addr: 0x7f441260a000, old_len: 4096, new_len: 4096, flags: MAYMOVE|FIXED, new_addr: 0x7f16da297000) = 0xda297000
           0.612 ( 0.003 ms): mremap(addr: 0x7f4412609000, old_len: 4096, new_len: 4096, flags: MAYMOVE|FIXED, new_addr: 0x7f16da296000) = 0xda296000
           0.619 ( 0.000 ms): exit_group(
      Signed-off-by: NAlex Snast <asnast@gmail.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1407944560-26924-1-git-send-email-asnast@gmail.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      86998dda
    • M
      perf probe: Fix --del option to delete events only with uprobe events · 467ec085
      Masami Hiramatsu 提交于
      Current perf probe --del doesn't work if only CONFIG_UPROBE_EVENTS=y
      because it aborts when it fails to open kprobe_events file before
      checking uprobe_events file.
      
      This fixes --del option to delete dynamic events if it can open either
      kprobe_events or uprobe_events. Only if it failed to open both of them,
      it shows an error message and aborts.
      
      Without this patch, if we run perf probe -d on the kernel configured
      with CONFIG_KPROBE_EVENTS=n and CONFIG_UPROBE_EVENTS=y,
      
        # perf probe -d \*
        kprobe_events file does not exist - please rebuild kernel with CONFIG_KPROBE_EVENTS.
          Error: Failed to delete events.
      
      With this patch,
      
        # perf probe -d \*
        Removed event: probe_perf:alloc_event
      
      Changes in v2:
       - Use strerror_r instead of strerror.
      Signed-off-by: NMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Naohiro Aota <naota@elisp.net>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/20140813161250.26440.24028.stgit@kbuild-fedora.novalocalSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      467ec085
    • M
      perf probe: Fix --list option to show events only with uprobe events · 5e45187c
      Masami Hiramatsu 提交于
      Current perf probe --list doesn't work if only CONFIG_UPROBE_EVENTS=y
      because it aborts when it fails to open kprobe_events file before
      checking uprobe_events file.
      
      This fixes --list option to show dynamic events if it can open either
      kprobe_events or uprobe_events. Only if it failed to open both of them,
      it shows an error message and aborts.
      
      Without this patch, if we run perf probe -l on the kernel configured
      with CONFIG_KPROBE_EVENTS=n and CONFIG_UPROBE_EVENTS=y,
      
        # perf probe -l
        /sys/kernel/debug/tracing/kprobe_events file does not exist - please rebuild ker
          Error: Failed to show event list.
      
      With this patch,
      
        # perf probe -l
          probe_perf:alloc_event (on alloc_event@lib/traceevent/event-parse.c in /home/fedora/ksrc/linux-3/tools/perf/perf)
      
      Changes in v2:
       - Use strerror_r instead of strerror.
      Reported-by: NNaohiro Aota <naota@elisp.net>
      Signed-off-by: NMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Naohiro Aota <naota@elisp.net>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/20140813161248.26440.84370.stgit@kbuild-fedora.novalocalSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      5e45187c
  2. 13 8月, 2014 24 次提交
  3. 12 8月, 2014 13 次提交