1. 25 Jan, 2013 6 commits
    • Arnaldo Carvalho de Melo's avatar
      perf kmem: Use memdup() · 8d9233f2
      Arnaldo Carvalho de Melo authored
      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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      8d9233f2
    • Arnaldo Carvalho de Melo's avatar
      perf tools: Use memdup in map__clone · 8e16017d
      Arnaldo Carvalho de Melo authored
      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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      8e16017d
    • Arnaldo Carvalho de Melo's avatar
      perf tools: Stop using 'self' in map.[ch] · 237a7e04
      Arnaldo Carvalho de Melo authored
      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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      237a7e04
    • Arnaldo Carvalho de Melo's avatar
      perf tools: Stop using 'self' in strlist · d8639f06
      Arnaldo Carvalho de Melo authored
      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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      d8639f06
    • Jiri Olsa's avatar
      tools lib traceevent: Handle dynamic array's element size properly · e23c1a55
      Jiri Olsa authored
      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: default avatarJiri Olsa <jolsa@redhat.com>
      Acked-by: default avatarSteven 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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      e23c1a55
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo' of... · a2d28d0c
      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:
      
      . 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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      a2d28d0c
  2. 24 Jan, 2013 34 commits