summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-06-10 12:06:30 -0400
committerSteven Rostedt <rostedt@goodmis.org>2014-06-10 12:06:30 -0400
commitf0b70cc48cc282cb326a4d71b3d1dda7d8fafd2a (patch)
treea473fffec9136b96c542b0b8f6334f7e545aee51 /kernel/trace/trace.h
parenta6af8fbf17989e41fef5cacf3988a724fb687d78 (diff)
downloadop-kernel-dev-f0b70cc48cc282cb326a4d71b3d1dda7d8fafd2a.zip
op-kernel-dev-f0b70cc48cc282cb326a4d71b3d1dda7d8fafd2a.tar.gz
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 'kernel/trace/trace.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud