1. 01 2月, 2013 16 次提交
  2. 31 1月, 2013 1 次提交
    • I
      Merge tag 'perf-core-for-mingo' of... · 152fefa9
      Ingo Molnar 提交于
      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:
      
      . Fix some leaks in exit paths.
      
      . Use memdup where applicable
      
      . Remove some die() calls, allowing callers to handle exit paths
        gracefully.
      
      . Correct typo in tools Makefile, fix from Borislav Petkov.
      
      . Add 'perf bench numa mem' NUMA performance measurement suite, from Ingo Molnar.
      
      . Handle dynamic array's element size properly, fix from Jiri Olsa.
      
      . Fix memory leaks on evsel->counts, from Namhyung Kim.
      
      . Make numa benchmark optional, allowing the build in machines where required
        numa libraries are not present, fix from Peter Hurley.
      
      . Add interval printing in 'perf stat', from Stephane Eranian.
      
      . Fix compile warnings in tests/attr.c, from Sukadev Bhattiprolu.
      
      . Fix double free, pclose instead of fclose, leaks and double fclose errors
        found with the cppcheck tool, from Thomas Jarosch.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      152fefa9
  3. 30 1月, 2013 13 次提交
  4. 25 1月, 2013 10 次提交
    • 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 ui browser: Free browser->helpline() on ui_browser__hide() · 56ab7140
      Arnaldo Carvalho de Melo 提交于
      It is allocated at ui_browser__show(), so free it in its counterpart,
      ui_browser__hide().
      
      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-g449kvnbcpli4ceyxbe2jp1e@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      56ab7140
    • A
      perf header: Stop using die() calls when processing tracing data · 2caa48a2
      Arnaldo Carvalho de Melo 提交于
      The callers of this function (perf_event__process_tracing_data) already
      handles a negative value return as error, so just use pr_err() to log
      the problem and return -1 instead of panic'ing.
      
      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-eeeljnecpi0zi5s7ux1mzdv9@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      2caa48a2
    • A
      perf kmem: Use memdup() · 8d9233f2
      Arnaldo Carvalho de Melo 提交于
      Instead of hand coded equivalent.
      
      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-42ldngi973f4ssvzlklo8t2k@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      8d9233f2
    • A
      perf tools: Use memdup in map__clone · 8e16017d
      Arnaldo Carvalho de Melo 提交于
      We have memdup() exactly for that, remove open coded dup.
      
      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-tnsoexrgv6u9l125srq2c7su@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      8e16017d
    • A
      perf tools: Stop using 'self' in map.[ch] · 237a7e04
      Arnaldo Carvalho de Melo 提交于
      As suggested by tglx, 'self' should be replaced by something that is
      more useful.
      
      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-vse2c54m0yahx6p79tmoel03@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      237a7e04
    • A
      perf tools: Stop using 'self' in strlist · d8639f06
      Arnaldo Carvalho de Melo 提交于
      As suggested by tglx, 'self' should be replaced by something that is
      more useful.
      
      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-933537sxtcz47qs0e0ledmrp@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      d8639f06
    • J
      tools lib traceevent: Handle dynamic array's element size properly · e23c1a55
      Jiri Olsa 提交于
      Fixing the dynamic array format field parsing.
      
      Currently the event_read_fields function could segfault while parsing
      dynamic array other than string type. The reason is the event->pevent
      does not need to be set and gets dereferenced unconditionaly.
      
      Also adding proper initialization of field->elementsize based on the
      parsed dynamic type.
      Signed-off-by: NJiri Olsa <jolsa@redhat.com>
      Acked-by: NSteven Rostedt <rostedt@goodmis.org>
      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: Steven Rostedt <rostedt@goodmis.org>
      Link: http://lkml.kernel.org/r/1359060403-32422-1-git-send-email-jolsa@redhat.com
      [ committer note: Made a char pointer parameter const, as requested by Steven ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      e23c1a55
    • I
      Merge tag 'perf-core-for-mingo' of... · a2d28d0c
      Ingo Molnar 提交于
      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:
      
      . Allow skipping problematic entries in 'perf test'.
      
      . Fix some namespace problems in the event parsing routines.
      
      . Add 'perf test' entry to make sure the python binding doesn't have
        linking problems.
      
      . Adjust 'perf test' attr tests verbosity levels.
      
      . Make tools/perf build with GNU make v3.80, fix from Al Cooper.
      
      . Do missing feature fallbacks in just one place, removing duplicated
        code in multiple tools.
      
      . Fix some memory leaks, from David Ahern.
      
      . Fix segfault when drawing out-of-bounds jumps, from Frederik Deweerdt.
      
      . Allow of casting an array of char to string in 'perf probe', from
        Hyeoncheol Lee.
      
      . Add support for wildcard in tracepoint system name, from Jiri Olsa.
      
      . Update FSF postal address to be URL's, from Jon Stanley.
      
      . Add anonymous huge page recognition, from Joshua Zhu.
      
      . Remove some needless feature test checks, from Namhyung Kim.
      
      . Multiple improvements to the sort routines, from Namhyung Kim.
      
      . Fix warning on '>=' operator in libtraceevent, from Namhyung Kim.
      
      . Use ARRAY_SIZE instead of reinventing it in 'perf script' and 'perf kmem',
        from Sasha Levin.
      
      . Remove some redundant checks, from Sasha Levin.
      
      . Test correct variable after allocation in libtraceevent, fix from Sasha Levin.
      
      . Mark branch_info maps as referenced, fix from Stephane Eranian.
      
      . Fix PMU format parsing test failure, from Sukadev Bhattiprolu.
      
      . Fix possible (unlikely) buffer overflow, from Thomas Jarosch.
      
      . Multiple 'perf script' fixes, from Tom Zanussi.
      
      . Add missing field in PERF_RECORD_SAMPLE documentation, from Vince Weaver.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      a2d28d0c
    • 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