1. 12 1月, 2016 1 次提交
  2. 21 7月, 2015 2 次提交
  3. 20 7月, 2015 1 次提交
  4. 16 7月, 2015 1 次提交
  5. 16 1月, 2014 1 次提交
    • N
      perf tools: Fix build error due to zfree() cast · 7d16c634
      Namhyung Kim 提交于
      It failed to build perf on my ubuntu 10.04 box (gcc 4.4.3):
      
          CC       util/strlist.o
        cc1: warnings being treated as errors
        util/strlist.c: In function ‘str_node__delete’:
        util/strlist.c:42: error: dereferencing type-punned pointer will break strict-aliasing rules
        util/strlist.c:42: error: dereferencing type-punned pointer will break strict-aliasing rules
          CC       util/strfilter.o
        make: *** [util/strlist.o] Error 1
      
          CC       util/srcline.o
        cc1: warnings being treated as errors
        util/srcline.c: In function ‘addr2line_init’:
        util/srcline.c:132: error: dereferencing type-punned pointer will break strict-aliasing rules
        util/srcline.c:132: error: dereferencing type-punned pointer will break strict-aliasing rules
        util/srcline.c: In function ‘addr2line_cleanup’:
        util/srcline.c:143: error: dereferencing type-punned pointer will break strict-aliasing rules
        util/srcline.c:143: error: dereferencing type-punned pointer will break strict-aliasing rules
        make: *** [util/srcline.o] Error 1
      
      It seems it only allows to remove 'const' qualifier.
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung.kim@lge.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/1389276479-9047-1-git-send-email-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      7d16c634
  6. 28 12月, 2013 1 次提交
  7. 14 3月, 2013 1 次提交
  8. 25 1月, 2013 1 次提交
  9. 06 9月, 2012 1 次提交
    • S
      perf tools: Remove the node from rblist in strlist__remove · 45922814
      Suzuki K. Poulose 提交于
      The following commit:
      
      author	David Ahern <dsahern@gmail.com>
      	Tue, 31 Jul 2012 04:31:33 +0000 (22:31 -0600)
      committer	Arnaldo Carvalho de Melo <acme@redhat.com>
      	Fri, 3 Aug 2012 13:39:51 +0000 (10:39 -0300)
      commit	ee8dd3ca
      
      causes a double free during a probe deletion as the node is never
      removed from the list via strlist__remove(), even though it gets
      'deleted' (read free()'d). This causes a double free when we do
      strlist__delete() as the node is already deleted but present in the
      rblist.
      
      [suzukikp@suzukikp perf]$ sudo ./perf probe -a do_fork
      Added new event:
        probe:do_fork        (on do_fork)
      
      You can now use it in all perf tools, such as:
      
      	perf record -e probe:do_fork -aR sleep 1
      
      [suzukikp@suzukikp perf]$ sudo ./perf probe -d do_fork
      Removed event: probe:do_fork
      *** glibc detected *** ./perf: double free or corruption (fasttop): 0x000000000133d600 ***
      ======= Backtrace: =========
      /lib64/libc.so.6[0x38eec7dda6]
      ./perf(rblist__delete+0x5c)[0x47d3dc]
      ./perf(del_perf_probe_events+0xb6)[0x47b826]
      ./perf(cmd_probe+0x471)[0x42c8d1]
      ./perf[0x4150b3]
      ./perf(main+0x501)[0x4148e1]
      /lib64/libc.so.6(__libc_start_main+0xed)[0x38eec2169d]
      ./perf[0x414a61]
      
      Make sure we remove the node from the rblist before we delete the node.
      The rblist__remove_node() will invoke rblist->node_delete, which  will
      take care of deleting the node with the suitable function provided by
      the user.
      Reported-by: NAnanth N. Mavinakayanahalli <ananth@in.ibm.com>
      Signed-off-by: NSuzuki K. Poulose <suzuki@in.ibm.com>
      Acked-by: NDavid Ahern <dsahern@gmail.com>
      Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/20120829055840.7802.1459.stgit@suzukikp.in.ibm.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      45922814
  10. 03 8月, 2012 1 次提交
  11. 16 12月, 2009 1 次提交
    • M
      perf probe: Fix --del to update current event list · 3e340590
      Masami Hiramatsu 提交于
      Fix --del option to update current existing event list
      after perf probe deleted an event.
      Signed-off-by: NMasami Hiramatsu <mhiramat@redhat.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Jim Keniston <jkenisto@us.ibm.com>
      Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: Frank Ch. Eigler <fche@redhat.com>
      Cc: Jason Baron <jbaron@redhat.com>
      Cc: K.Prasad <prasad@linux.vnet.ibm.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
      Cc: systemtap <systemtap@sources.redhat.com>
      Cc: DLE <dle-develop@lists.sourceforge.net>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      LKML-Reference: <20091215153149.17436.61265.stgit@dhcp-100-2-132.bos.redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      3e340590
  12. 12 7月, 2009 1 次提交
  13. 01 7月, 2009 1 次提交