1. 17 10月, 2016 2 次提交
    • A
      perf jit: Fix build issue on Ubuntu · 53613e00
      Anton Blanchard 提交于
      When building on Ubuntu 16.04, I get the following error:
      
      Makefile:49: *** the openjdk development package appears to me missing, install and try again.  Stop.
      
      The problem is that update-java-alternatives has multiple spaces between
      fields, and cut treats each space as a new delimiter:
      
      java-1.8.0-openjdk-ppc64el     1081       /usr/lib/jvm/java-1.8.0-openjdk-ppc64el
      
      Fix this by using awk, which handles this fine.
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Reviewed-by: NStephane Eranian <eranian@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/1476325243-15788-1-git-send-email-anton@ozlabs.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      53613e00
    • W
      perf jevents: Handle events including .c and .o · 2d470b62
      Wang Nan 提交于
      This patch helps with Sukadev's vendor event tree where such events can happen.
      
      >From Andi Kleen:
       Any event including a .c/.o/.bpf currently triggers BPF compilation or loading
       and then an error. This can happen for some Intel vendor events, which cannot
       be used.
      
      This patch fixes this problem by forbidding BPF file patch containing '{', '}'
      and ',', make sure flex consumes the leading '{', instead of matching it using
      a BPF file path.
      
      Tested result:
      
        $ perf stat -e '{unc_p_clockticks,unc_p_power_state_occupancy.cores_c0}' -a -I 1000
        invalid or unsupported event: '{unc_p_clockticks,unc_p_power_state_occupancy.cores_c0}'
        Run 'perf list' for a list of valid events
        (as expected, interperted as event)
      
        $ perf stat -e 'aaa.c' -a -I 1000
        ERROR: problems with path aaa.c: No such file or directory
        (as expected, interpreted as BPF source)
      
        $ perf stat -e 'aaa.ccc' -a -I 1000
        invalid or unsupported event: 'aaa.ccc'
        (as expected, interpreted as event)
      
        $ perf stat -e '{aaa.c}' -a -I 1000
        ERROR: problems with path aaa.c: No such file or directory
        event syntax error: '{aaa.c}'
        <SKIP>
        (as expected, interpreted as BPF source)
      
        $ perf stat -e '{cycles,aaa.c}' -a -I 1000
        ERROR: problems with path aaa.c: No such file or directory
        event syntax error: '{cycles,aaa.c}'
        (as expected, interpreted as BPF source)
      Signed-off-by: NWang Nan <wangnan0@huawei.com>
      Tested-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Reported-by: NAndi Kleen <ak@linux.intel.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
      Cc: Zefan Li <lizefan@huawei.com>
      Cc: pi3orama@163.com
      Link: http://lkml.kernel.org/r/1475900185-37967-1-git-send-email-wangnan0@huawei.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      2d470b62
  2. 13 10月, 2016 2 次提交
  3. 07 10月, 2016 1 次提交
    • I
      Merge tag 'perf-core-for-mingo-20161005' of... · c68306ce
      Ingo Molnar 提交于
      Merge tag 'perf-core-for-mingo-20161005' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
      - Intel PT timestamp fixes (Adrian Hunter)
      
      - Fix Intel JSON fixed counter conversions (Andi Kleen)
      
      - Sync memcpy, cpufeatures and bpf headers with the kernel (Arnaldo Carvalho de Melo)
      
      - Add some more tool tips (Donghyun Kim, Kim SeonYoung, Nambong Ha)
      
      - Fix libtraceevent's kbuffer_read_at_offset() handling of offsets before or
        equal the first event (Namhyung Kim)
      
      - Fix uretprobe probe placement on ppc64le (Ravi Bangoria)
      
      - Support building C++ source files and add feature detection for g++,
        prep work for supporting a builtin clang/llvm, to remove the need for having
        that toolchain installed to automagically build BPF scriptlets that then
        gets uploaded to the kernel via sys_bpf() (Wang Nan)
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      c68306ce
  4. 06 10月, 2016 9 次提交
  5. 05 10月, 2016 4 次提交
  6. 04 10月, 2016 22 次提交