OpenCloudOS-Kernel/tools/lib/traceevent
Steven Rostedt de04f8657d tools lib traceevent: Fix memory leak in pretty_print()
Commit 12e55569a2 "tools lib traceevent: Use helper trace-seq in print
functions like kernel does" added a extra trace_seq helper to process
string arguments like the kernel does it. But the difference between the
kernel and the userspace library is that the kernel's trace_seq structure
has a static allocated buffer. The userspace one has a dynamically
allocated one. It requires a trace_seq_destroy(), otherwise it produces
a nasty memory leak.

Cc: stable@vger.kernel.org # 3.14+
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20140422192330.6bb09bf8@gandalf.local.home
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
2014-04-23 13:19:30 +02:00
..
.gitignore tools lib traceevent: Ignore TRACEEVENT-CFLAGS file 2012-07-25 11:54:44 -03:00
Makefile perf tools: Fix traceevent plugin path definitions 2014-01-23 15:48:12 -03:00
event-parse.c tools lib traceevent: Fix memory leak in pretty_print() 2014-04-23 13:19:30 +02:00
event-parse.h tools lib traceevent: Fix backward compatibility macros for pevent filter enums 2014-04-23 13:19:23 +02:00
event-plugin.c tools lib traceevent: Make plugin unload function receive pevent 2014-01-15 15:10:40 -03:00
event-utils.h tools lib traceevent: Get rid of die() finally!! 2014-01-15 15:10:36 -03:00
kbuffer-parse.c tools lib traceevent: Port kbuffer parser routines 2013-07-12 13:52:16 -03:00
kbuffer.h tools lib traceevent: Port kbuffer parser routines 2013-07-12 13:52:16 -03:00
parse-filter.c tools lib traceevent: Introduce pevent_filter_strerror() 2013-12-18 14:47:58 -03:00
parse-utils.c tools lib traceevent: Get rid of die() finally!! 2014-01-15 15:10:36 -03:00
plugin_cfg80211.c tools lib traceevent: Unregister handler when cfg80211 plugin is unloaded 2014-01-16 16:26:25 -03:00
plugin_function.c tools lib traceevent: Unregister handler when function plugin is unloaded 2014-01-16 16:26:24 -03:00
plugin_hrtimer.c tools lib traceevent: Unregister handler when hrtimer plugin is unloaded 2014-01-16 16:26:24 -03:00
plugin_jbd2.c tools lib traceevent: Unregister handler when jbd2 plugin is is unloaded 2014-01-16 16:26:25 -03:00
plugin_kmem.c tools lib traceevent: Unregister handler when kmem plugin is unloaded 2014-01-16 16:26:24 -03:00
plugin_kvm.c tools lib traceevent: Unregister handler when kvm plugin is unloaded 2014-01-16 16:26:24 -03:00
plugin_mac80211.c tools lib traceevent: Unregister handler when mac80211 plugin is unloaded 2014-01-16 16:26:25 -03:00
plugin_sched_switch.c tools lib traceevent: Unregister handler when sched_switch plugin is unloaded 2014-01-16 16:26:25 -03:00
plugin_scsi.c tools lib traceevent: Unregister handler when scsi plugin is unloaded 2014-01-16 16:26:25 -03:00
plugin_xen.c tools lib traceevent: Unregister handler when xen plugin is unloaded 2014-01-16 16:26:25 -03:00
trace-seq.c tools lib traceevent: Get rid of malloc_or_die() in trace_seq_init() 2014-01-15 15:10:32 -03:00