1. 25 1月, 2013 7 次提交
    • N
      perf tools: Do not include PERF-VERSION-FILE to Makefile · 3cecaa20
      Namhyung Kim 提交于
      When make runs it tries to update the Makefile rules by reading all of
      included Makefiles.  During the perf build it checks PERF-VERSION-FILE
      to get the current version number.  But it triggers Makefile update so
      that make runs again with the update Makefile and, in turn, users will
      see duplicate CHK message on the second path.
      
      Running make with -d option for debugging tells me this:
      
      GNU Make 3.82
      Built for x86_64-redhat-linux-gnu
      Copyright (C) 2010  Free Software Foundation, Inc.
      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
      Reading makefiles...
      Reading makefile `Makefile'...
      Reading makefile `../scripts/Makefile.include' (search path) (no ~ expansion)...
      Reading makefile `config/utilities.mak' (search path) (no ~ expansion)...
      Reading makefile `PERF-VERSION-FILE' (search path) (don't care) (no ~ expansion)...
      Reading makefile `config/feature-tests.mak' (search path) (don't care) (no ~ expansion)...
          CHK -fstack-protector-all
          CHK -Wstack-protector
          CHK -Wvolatile-register-var
      ...
      Updating makefiles....
       Considering target file `PERF-VERSION-FILE'.
       Must remake target `PERF-VERSION-FILE'.
      Invoking recipe from Makefile:52 to update target `PERF-VERSION-FILE'.
      Putting child 0x14037a0 (PERF-VERSION-FILE) PID 31925 on the chain.
      Live child 0x14037a0 (PERF-VERSION-FILE) PID 31925
      PERF_VERSION = 3.8.rc3.gf751db6
      Reaping winning child 0x14037a0 PID 31925
      Removing child 0x14037a0 PID 31925 from chain.
       Successfully remade target file `PERF-VERSION-FILE'.
      ...
      Re-executing[1]: make -d                       <------------ here
      GNU Make 3.82
      Built for x86_64-redhat-linux-gnu
      Copyright (C) 2010  Free Software Foundation, Inc.
      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
      Reading makefiles...
      Reading makefile `Makefile'...
      Reading makefile `../scripts/Makefile.include' (search path) (no ~ expansion)...
      Reading makefile `config/utilities.mak' (search path) (no ~ expansion)...
      Reading makefile `PERF-VERSION-FILE' (search path) (don't care) (no ~ expansion)...
      Reading makefile `config/feature-tests.mak' (search path) (don't care) (no ~ expansion)...
          CHK -fstack-protector-all
          CHK -Wstack-protector
          CHK -Wvolatile-register-var
      ...
      
      Actually PERF-VERSION-FILE is used only for perf.c to #define
      PERF_VERSION macro.  So make it like a C header file and include it
      during compiling the perf.c file will remove the need of being
      included into Makefile.  Hench no need to update the Makefile and no
      CHK lines anymore.
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1358337594-10916-1-git-send-email-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      3cecaa20
    • N
      perf tools: Get rid of unused include of config.mak · 1aa3d178
      Namhyung Kim 提交于
      These lines are came from GIT Makefile and never used for perf.
      
      I found it from make -d output during working on previous patch.
      
      Updating makefiles....
       Considering target file `arch/x86/Makefile'.
       No need to remake target `arch/x86/Makefile'.
       Considering target file `config.mak'.
        File `config.mak' does not exist.
       Must remake target `config.mak'.
       Failed to remake target file `config.mak'.
       Considering target file `config.mak.autogen'.
        File `config.mak.autogen' does not exist.
       Must remake target `config.mak.autogen'.
       Failed to remake target file `config.mak.autogen'.
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1358337594-10916-2-git-send-email-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      1aa3d178
    • N
      perf ui/gtk: Factor out common browser routines · 0da41ce9
      Namhyung Kim 提交于
      Separate out common codes for setting up a browser, and move report/hist
      browser codes into hists.c.  The common codes can be used for annotation
      browser.
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Pekka Enberg <penberg@kernel.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1356078018-31905-2-git-send-email-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      0da41ce9
    • J
      perf tests: Fix PYTHONPATH for python-use test tracepoints · 09ecbb07
      Jiri Olsa 提交于
      If there's not OUTPUT variable defined the PYTHONPATH ends up with
      /python. We need to remove the extra '/'.
      Signed-off-by: NJiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/n/tip-h1hzfyfcdxjnuq9fin2cjwlr@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      09ecbb07
    • N
      perf tests: Check python path on attr and binding test · 000ae33f
      Namhyung Kim 提交于
      Current perf test code tries to execute python version 2 in order to
      test attributes on perf_event_open syscall.  However it's not default
      python version anymore a system can have python v3 only or v2 with a
      different name (e.g. python2).  So if there's no such python interpreter
      with the name 'python', the test would fail like this (yes, it's
      happened on my new archlinux laptop :).
      
      13: struct perf_event_attr setup                 🇸🇭 python: command not found
       FAILED!
      
      As we can pass name of the python interpreter on make, use it for
      the attr test also.
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Acked-by: NJiri Olsa <jolsa@redhat.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1355729101-31317-1-git-send-email-namhyung@kernel.org
      [ committer note: Added the same mechanism to the python binding test ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      000ae33f
    • A
      perf test: Check for linking problems in the python binding · 54359d33
      Arnaldo Carvalho de Melo 提交于
      It just will add the O= builddir to PYTHONPATH and try to 'use perf',
      which will, in verbose mode show the python backtrace with the missing
      symbols, such as in the problem fixed in the patch after this one:
      
        # perf test -v 15
        15: Try 'use perf' in python, checking link problems       :
        --- start ---
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
        ImportError: /home/acme/git/build/perf//python/perf.so: undefined symbol: test_attr__enabled
        ---- end ----
        Try 'use perf' in python, checking link problems: FAILED!
        #
      
      Loooong overdue, done.
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-zmd2oq9gz6t1u145ub7qm2nv@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      54359d33
    • N
      perf test: Add a test case for hists__{match,link} · f8ebb0cd
      Namhyung Kim 提交于
      As they are used from diff and event group report, add a test case to
      verify their behaviors.
      
      In this test I made a fake machine and two evsel.  Each evsel got 10
      samples (so hist entries) - 5 are common and the rests are not.  So
      after hists__match() both of them will have 5 entries with pair set.
      
      And the second evsel has a collapsed entry so that the total number is 9
      - I made it in order to simulate more realistic case.  Thus after
      hists__link the first entry will have 14 entries - 5 are common (w/
      pair), 5 are unmatch (w/o pair) and 4 are dummy (w/ pair).  And the
      second entry will have 9 entries all have its pair.
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/r/1355128197-18193-5-git-send-email-namhyung@kernel.org
      [ committer note: fixed up clashes with cset that moved methods to machine.h ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      f8ebb0cd
  2. 23 1月, 2013 1 次提交
  3. 12 12月, 2012 1 次提交
  4. 11 12月, 2012 1 次提交
  5. 09 12月, 2012 3 次提交
  6. 20 11月, 2012 1 次提交
    • D
      perf: Make perf build for x86 with UAPI disintegration applied · d2709c7c
      David Howells 提交于
      Make perf build for x86 once the UAPI disintegration patches for that arch
      have been applied by adding the appropriate -I flags - in the right order -
      and then converting some #includes that use ../.. notation to find main kernel
      headerfiles to use <asm/foo.h> and <linux/foo.h> instead.
      
      Note that -Iarch/foo/include/uapi is present _before_ -Iarch/foo/include.
      This makes sure we get the userspace version of the pt_regs struct.  Ideally,
      we wouldn't have the latter -I flag at all, but unfortunately we want
      asm/svm.h and asm/vmx.h in builtin-kvm.c and these aren't part of the UAPI -
      at least not for x86.  I wonder if the bits outside of the __KERNEL__ guards
      *should* be transferred there.
      
      I note also that perf seems to do its dependency handling manually by listing
      all the header files it might want to use in LIB_H in the Makefile.  Can this
      be changed to use -MD?
      
      Note that to do make this work, we need to export and UAPI disintegrate
      linux/hw_breakpoint.h, which I think should've been exported previously so that
      perf can access the bits.  We have to do this in the same patch to maintain
      bisectability.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      d2709c7c
  7. 15 11月, 2012 14 次提交
  8. 09 11月, 2012 1 次提交
  9. 02 11月, 2012 1 次提交
  10. 01 11月, 2012 3 次提交
  11. 31 10月, 2012 1 次提交
  12. 29 10月, 2012 2 次提交
  13. 26 10月, 2012 3 次提交
  14. 25 10月, 2012 1 次提交