aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorYunfeng Ye <[email protected]>2019-10-14 16:15:57 +0800
committerPeter Zijlstra <[email protected]>2019-10-17 21:31:55 +0200
commitd7e78706e43107fa269fe34b1a69e653f5ec9f2c (patch)
tree123ce021f2ad3c6a16bc359bd5f98296d94be3db /tools/perf/util/trace-event-scripting.c
parent8a9f91c51ea72b126864e0db616b1bac12261200 (diff)
perf/ring_buffer: Matching the memory allocate and free, in rb_alloc()
Currently perf_mmap_alloc_page() is used to allocate memory in rb_alloc(), but using free_page() to free memory in the failure path. It's better to use perf_mmap_free_page() instead. Signed-off-by: Yunfeng Ye <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions