diff options
author | Steven Rostedt (Red Hat) <[email protected]> | 2014-06-10 12:06:30 -0400 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2014-06-10 12:06:30 -0400 |
commit | f0b70cc48cc282cb326a4d71b3d1dda7d8fafd2a (patch) | |
tree | a473fffec9136b96c542b0b8f6334f7e545aee51 /scripts/patch-kernel | |
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/[email protected]
Reported-by: Namhyung Kim <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions