diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-06-10 12:06:30 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-06-10 12:06:30 -0400 |
commit | f0b70cc48cc282cb326a4d71b3d1dda7d8fafd2a (patch) | |
tree | a473fffec9136b96c542b0b8f6334f7e545aee51 /scripts/xz_wrap.sh | |
parent | a6af8fbf17989e41fef5cacf3988a724fb687d78 (diff) |
tracing: Fix leak of per cpu max data in instances
The freeing of an instance, if max data is configured, there will be
per cpu data structures created. But these are not freed when the instance
is deleted, which causes a memory leak.
A new helper function is added that frees the individual buffers within a
trace array, instead of duplicating the code. This way changes made for one
are applied to the other (normal buffer vs max buffer).
Link: http://lkml.kernel.org/r/87k38pbake.fsf@sejong.aot.lge.com
Reported-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/xz_wrap.sh')
0 files changed, 0 insertions, 0 deletions