* [GIT PULL 0/4] perf/urgent fixes
@ 2014-04-23 11:31 Jiri Olsa
2014-04-23 11:31 ` [PATCH 4/4] tools lib traceevent: Fix memory leak in pretty_print() Jiri Olsa
2014-04-23 13:09 ` [GIT PULL 0/4] perf/urgent fixes Ingo Molnar
0 siblings, 2 replies; 3+ messages in thread
From: Jiri Olsa @ 2014-04-23 11:31 UTC (permalink / raw)
To: Ingo Molnar
Cc: linux-kernel, Arnaldo Carvalho de Melo, Corey Ashford,
David Ahern, Frederic Weisbecker, Jean Pihet, Jiri Olsa,
Josh Boyer, Masanari Iida, Namhyung Kim, Paul Mackerras,
Peter Zijlstra, Steven Rostedt, stable
hi Ingo,
please consider pulling
thanks,
jirka
The following changes since commit fd741edc25600e1660abd00b5c1bbe967018c6a0:
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf into perf/urgent (2014-04-20 09:53:55 +0200)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git tags/perf-urgent-for-mingo
for you to fetch changes up to de04f8657de9d3351a2d5880f1f7080b23b798cf:
tools lib traceevent: Fix memory leak in pretty_print() (2014-04-23 13:19:30 +0200)
----------------------------------------------------------------
perf/urgent fixes:
Developer stuff:
. Fix memory leak and backward compatibility macros for pevent
filter enums in traceevent library (Steven Rostedt)
. Disable libdw unwind for all but x86 arch (Jiri Olsa)
. Fix memory leak in sample_ustack (Masanari Iida)
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
----------------------------------------------------------------
Jiri Olsa (1):
perf tools: Disable libdw unwind for all but x86 arch
Masanari Iida (1):
perf tests x86: Fix memory leak in sample_ustack()
Steven Rostedt (2):
tools lib traceevent: Fix backward compatibility macros for pevent filter enums
tools lib traceevent: Fix memory leak in pretty_print()
tools/lib/traceevent/event-parse.c | 1 +
tools/lib/traceevent/event-parse.h | 4 ++--
tools/perf/arch/x86/tests/dwarf-unwind.c | 1 +
tools/perf/config/Makefile | 8 ++++++++
4 files changed, 12 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 4/4] tools lib traceevent: Fix memory leak in pretty_print()
2014-04-23 11:31 [GIT PULL 0/4] perf/urgent fixes Jiri Olsa
@ 2014-04-23 11:31 ` Jiri Olsa
2014-04-23 13:09 ` [GIT PULL 0/4] perf/urgent fixes Ingo Molnar
1 sibling, 0 replies; 3+ messages in thread
From: Jiri Olsa @ 2014-04-23 11:31 UTC (permalink / raw)
To: Ingo Molnar; +Cc: linux-kernel, Steven Rostedt, stable, Jiri Olsa
From: Steven Rostedt <rostedt@goodmis.org>
Commit 12e55569a244 "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>
---
tools/lib/traceevent/event-parse.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index baec7d8..b83184f 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -4344,6 +4344,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event
format, len_arg, arg);
trace_seq_terminate(&p);
trace_seq_puts(s, p.buffer);
+ trace_seq_destroy(&p);
arg = arg->next;
break;
default:
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [GIT PULL 0/4] perf/urgent fixes
2014-04-23 11:31 [GIT PULL 0/4] perf/urgent fixes Jiri Olsa
2014-04-23 11:31 ` [PATCH 4/4] tools lib traceevent: Fix memory leak in pretty_print() Jiri Olsa
@ 2014-04-23 13:09 ` Ingo Molnar
1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2014-04-23 13:09 UTC (permalink / raw)
To: Jiri Olsa
Cc: linux-kernel, Arnaldo Carvalho de Melo, Corey Ashford,
David Ahern, Frederic Weisbecker, Jean Pihet, Josh Boyer,
Masanari Iida, Namhyung Kim, Paul Mackerras, Peter Zijlstra,
Steven Rostedt, stable
* Jiri Olsa <jolsa@redhat.com> wrote:
> hi Ingo,
> please consider pulling
>
> thanks,
> jirka
>
>
> The following changes since commit fd741edc25600e1660abd00b5c1bbe967018c6a0:
>
> Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf into perf/urgent (2014-04-20 09:53:55 +0200)
>
> are available in the git repository at:
>
>
> git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git tags/perf-urgent-for-mingo
>
> for you to fetch changes up to de04f8657de9d3351a2d5880f1f7080b23b798cf:
>
> tools lib traceevent: Fix memory leak in pretty_print() (2014-04-23 13:19:30 +0200)
>
> ----------------------------------------------------------------
> perf/urgent fixes:
>
> Developer stuff:
> . Fix memory leak and backward compatibility macros for pevent
> filter enums in traceevent library (Steven Rostedt)
>
> . Disable libdw unwind for all but x86 arch (Jiri Olsa)
>
> . Fix memory leak in sample_ustack (Masanari Iida)
>
> Signed-off-by: Jiri Olsa <jolsa@redhat.com>
>
> ----------------------------------------------------------------
> Jiri Olsa (1):
> perf tools: Disable libdw unwind for all but x86 arch
>
> Masanari Iida (1):
> perf tests x86: Fix memory leak in sample_ustack()
>
> Steven Rostedt (2):
> tools lib traceevent: Fix backward compatibility macros for pevent filter enums
> tools lib traceevent: Fix memory leak in pretty_print()
>
> tools/lib/traceevent/event-parse.c | 1 +
> tools/lib/traceevent/event-parse.h | 4 ++--
> tools/perf/arch/x86/tests/dwarf-unwind.c | 1 +
> tools/perf/config/Makefile | 8 ++++++++
> 4 files changed, 12 insertions(+), 2 deletions(-)
Pulled, thanks a lot Jiri!
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-23 13:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-23 11:31 [GIT PULL 0/4] perf/urgent fixes Jiri Olsa
2014-04-23 11:31 ` [PATCH 4/4] tools lib traceevent: Fix memory leak in pretty_print() Jiri Olsa
2014-04-23 13:09 ` [GIT PULL 0/4] perf/urgent fixes Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).