1. 17 Feb, 2016 13 commits
  2. 16 Feb, 2016 11 commits
  3. 15 Feb, 2016 1 commit
    • Arnaldo Carvalho de Melo's avatar
      perf tests: Fix build on older systems where 'signal' is reserved · 1ad826ba
      Arnaldo Carvalho de Melo authored
      fixing the following problems, for instance, on RHEL6.7:
      
          CC       /tmp/build/perf/tests/bp_signal.o
        cc1: warnings being treated as errors
        tests/bp_signal.c: In function ‘__event’:
        tests/bp_signal.c:106: error: declaration of ‘signal’ shadows a global declaration
        /usr/include/signal.h:101: error: shadowed declaration is here
        tests/bp_signal.c: In function ‘bp_event’:
        tests/bp_signal.c:144: error: declaration of ‘signal’ shadows a global declaration
        /usr/include/signal.h:101: error: shadowed declaration is here
        tests/bp_signal.c: In function ‘wp_event’:
        tests/bp_signal.c:149: error: declaration of ‘signal’ shadows a global declaration
        /usr/include/signal.h:101: error: shadowed declaration is here
        mv: cannot stat `/tmp/build/perf/tests/.bp_signal.o.tmp': No such file or directory
        make[3]: *** [/tmp/build/perf/tests/bp_signal.o] Error 1
        make[2]: *** [tests] Error 2
        make[1]: *** [/tmp/build/perf/perf-in.o] Error 2
        make[1]: *** Waiting for unfinished jobs....
      Reported-by: default avatarVinson Lee <vlee@freedesktop.org>
      Cc: Alexei Starovoitov <ast@kernel.org>
      Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Cc: He Kuang <hekuang@huawei.com>
      Cc: Li Zefan <lizefan@huawei.com>
      Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: pi3orama@163.com
      Fixes: 8fd34e1c ("perf test: Improve bp_signal")
      Link: http://lkml.kernel.org/n/tip-wlpx6tik1b0jirlkw64bv400@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      1ad826ba
  4. 12 Feb, 2016 12 commits
  5. 09 Feb, 2016 3 commits
    • Martin KaFai Lau's avatar
      kprobes: Optimize hot path by using percpu counter to collect 'nhit' statistics · a7636d9e
      Martin KaFai Lau authored
      When doing ebpf+kprobe on some hot TCP functions (e.g.
      tcp_rcv_established), the kprobe_dispatcher() function
      shows up in 'perf report'.
      
      In kprobe_dispatcher(), there is a lot of cache bouncing
      on 'tk->nhit++'.  'tk->nhit' and 'tk->tp.flags' also share
      the same cacheline.
      
      perf report (cycles:pp):
      
      	8.30%  ipv4_dst_check
      	4.74%  copy_user_enhanced_fast_string
      	3.93%  dst_release
      	2.80%  tcp_v4_rcv
      	2.31%  queued_spin_lock_slowpath
      	2.30%  _raw_spin_lock
      	1.88%  mlx4_en_process_rx_cq
      	1.84%  eth_get_headlen
      	1.81%  ip_rcv_finish
      	~~~~
      	1.71%  kprobe_dispatcher
      	~~~~
      	1.55%  mlx4_en_xmit
      	1.09%  __probe_kernel_read
      
      perf report after patch:
      
      	9.15%  ipv4_dst_check
      	5.00%  copy_user_enhanced_fast_string
      	4.12%  dst_release
      	2.96%  tcp_v4_rcv
      	2.50%  _raw_spin_lock
      	2.39%  queued_spin_lock_slowpath
      	2.11%  eth_get_headlen
      	2.03%  mlx4_en_process_rx_cq
      	1.69%  mlx4_en_xmit
      	1.19%  ip_rcv_finish
      	1.12%  __probe_kernel_read
      	1.02%  ehci_hcd_cleanup
      Signed-off-by: default avatarMartin KaFai Lau <kafai@fb.com>
      Acked-by: default avatarMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
      Acked-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      Cc: Alexei Starovoitov <alexei.starovoitov@gmail.com>
      Cc: Josef Bacik <jbacik@fb.com>
      Cc: Kernel Team <kernel-team@fb.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/1454531308-2441898-1-git-send-email-kafai@fb.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      a7636d9e
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo' of... · 156d2238
      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:
      
      User visible fixes:
      
       - Handle spaces in file names obtained from /proc/pid/maps (Marcin Ślusarz)
      
      New features:
      
       - Improved support for Java, using the JVMTI agent library to do jitdumps
         that then will be inserted in synthesized PERF_RECORD_MMAP2 events via
         'perf inject' pointed to synthesized ELF files stored in ~/.debug and
         keyed with build-ids, to allow symbol resolution and even annotation with
         source line info, see the changeset comments to see how to use it (Stephane Eranian)
      
      Documentation changes:
      
       - Document mmore variables in the 'perf config' man page (Taeung Song)
      
      Infrastructure changes:
      
       - Improve a bit the 'make -C tools/perf build-test' output (Arnaldo Carvalho de Melo)
      
       - Do 'build-test' in parallel, using 'make -j' (Arnaldo Carvalho de Melo)
      
       - Fix handling of 'clean' in multi-target make invokations for parallell builds (Jiri Olsa)
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      156d2238
    • Borislav Petkov's avatar
      perf/x86: Move perf_event_amd_uncore.c .... => x86/events/amd/uncore.c · d0af1c05
      Borislav Petkov authored
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Vince Weaver <vincent.weaver@maine.edu>
      Link: http://lkml.kernel.org/r/1454947748-28629-6-git-send-email-bp@alien8.deSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      d0af1c05