1. 23 7月, 2013 5 次提交
  2. 17 7月, 2013 1 次提交
  3. 13 7月, 2013 4 次提交
  4. 29 5月, 2013 2 次提交
  5. 28 5月, 2013 3 次提交
    • J
      perf tools: Add automated make test suite · 095ae69b
      Jiri Olsa 提交于
      Adding automated test for testing the build process.
      
      To run it you need to be in perf directory or specify one with PERF
      variable. It's also possible to specify optional Makefile to test via MK
      variable.
      
      Whole suite is executed twice, the second time with O=/tmp/xxx option
      added.
      
      To run the whole suite:
        $ make -f tests/make
        - make_pure: cd . && make -f Makefile
          test: test -x ./perf
        - make_clean_all: cd . && make -f Makefile clean all
          test: test -x ./perf
        - make_python_perf_so: cd . && make -f Makefile python/perf.so
          test: test -f ./python/perf.so
        - make_debug: cd . && make -f Makefile DEBUG=1
          test: test -x ./perf
        - make_no_libperl: cd . && make -f Makefile NO_LIBPERL=1
          test: test -x ./perf
      
      You see command line for 'make_pure' test right away, and the output is
      stored into 'make_pure' file.
      
      To run simple test:
        $ make -f tests/make make_debug
        - make_debug: cd . && make -f Makefile DEBUG=1
          test: test -x ./perf
      
      At this moment tests checks for successfull build and for existence of
      several built files. Additional after-build checks could be added.
      Signed-off-by: NJiri Olsa <jolsa@redhat.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.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: Sam Ravnborg <sam@ravnborg.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/r/1369398928-9809-2-git-send-email-jolsa@redhat.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      095ae69b
    • A
      perf test: Fix typo · ffcbaa14
      Arnaldo Carvalho de Melo 提交于
      Its 'multiple', not 'mutliple', noticed while preparing a talk for
      Linuxtag'13.
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mike Galbraith <efault@gmx.de>
      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-dzy9nl1ku7a5umddvdic4ibl@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      ffcbaa14
    • S
      perf tests: Fix compile errors in bp_signal files · b3539d21
      Sukadev Bhattiprolu 提交于
      When building on powerpc,  we get compile errors in bp_signal.c and
      bp_signal_overflow.c due to __u64 and '%llx'.
      
      Powerpc, needs __SANE_USERSPACE_TYPES__ to be defined so we pick up
      <asm-generic/int-ll64.h> and define __u64 as unsigned long long.
      Signed-off-by: NSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/r/20130426173320.GA7029@us.ibm.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      b3539d21
  6. 12 4月, 2013 1 次提交
  7. 01 4月, 2013 1 次提交
    • A
      perf tools: Add support for weight v7 (modified) · 05484298
      Andi Kleen 提交于
      perf record has a new option -W that enables weightened sampling.
      
      Add sorting support in top/report for the average weight per sample and the
      total weight sum. This allows to both compare relative cost per event
      and the total cost over the measurement period.
      
      Add the necessary glue to perf report, record and the library.
      
      v2: Merge with new hist refactoring.
      v3: Fix manpage. Remove value check.
      Rename global_weight to weight and weight to local_weight.
      v4: Readd sort keys to manpage
      v5: Move weight to end
      v6: Move weight to template
      v7: Rename weight key.
      
      Original patch from Andi modified by Stephane Eranian <eranian@google.com>
      to include ONLY the weight supporting code and apply to pristine 3.8.0-rc4.
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung.kim@lge.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/1359040242-8269-6-git-send-email-eranian@google.com
      [ committer note: changed to cope with fc5871ed and the hists_link perf test entry ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      05484298
  8. 18 3月, 2013 1 次提交
  9. 16 3月, 2013 14 次提交
  10. 07 2月, 2013 2 次提交
  11. 01 2月, 2013 1 次提交
  12. 30 1月, 2013 3 次提交
  13. 25 1月, 2013 2 次提交
    • A
      perf tests: Call machine__exit in the vmlinux matches kallsyms test · c0aab59f
      Arnaldo Carvalho de Melo 提交于
      Removing leaks with valgrind.
      
      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-x9hja7wxwexe8ca9v2j8qtlg@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      c0aab59f
    • A
      perf test: Allow skipping tests · 2ae82878
      Arnaldo Carvalho de Melo 提交于
      Sometimes a test is problematic for some reason and one wants to skip it,
      for instance:
      
      [root@sandy ~]# perf test
         1: vmlinux symtab matches kallsyms                        : Ok
         2: detect open syscall event                              : Ok
         3: detect open syscall event on all cpus                  : Ok
         4: read samples using the mmap interface                  : Ok
         5: parse events tests                                     :  Warning: bad op token {
          Warning: bad op token {
          Warning: bad op token {
          Warning: bad op token {
          Warning: bad op token {
          Warning: function is_writable_pte not defined
        Segmentation fault (core dumped)
      
      So now we can use -s/--skip while the problematic tests are being fixed,
      allowing us to test all the other entries:
      
        [root@sandy ~]# perf test -s 5
         1: vmlinux symtab matches kallsyms                        : Ok
         2: detect open syscall event                              : Ok
         3: detect open syscall event on all cpus                  : Ok
         4: read samples using the mmap interface                  : Ok
         5: parse events tests                                     : Skip (user override)
         6: x86 rdpmc test                                         : Ok
         7: Validate PERF_RECORD_* events & perf_sample fields     : Ok
         8: Test perf pmu format parsing                           : Ok
         9: Test dso data interface                                : Ok
        10: roundtrip evsel->name check                            : Ok
        11: Check parsing of sched tracepoints fields              : Ok
        12: Generate and check syscalls:sys_enter_open event fields: Ok
        13: struct perf_event_attr setup                           : Ok
        14: Test matching and linking mutliple hists               : Ok
        15: Try 'use perf' in python, checking link problems       : Ok
        [root@sandy ~]#
      
      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-klzd8p57jzdryafqkmlppcb1@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      2ae82878