summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2013-07-02 23:27:25 +0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-07-12 20:52:05 +0400
commitc5cd8ac07e7ad5f21b1930b23b2e1bb231958430 (patch)
tree0b81ede400260d6b06b2b4b208eef7cc1530b33f /tools/lib
parentc549aca50134640537bf0fbae43c08fd5ff91932 (diff)
downloadlinux-c5cd8ac07e7ad5f21b1930b23b2e1bb231958430.tar.xz
perf parse events: Demystify memory allocations
List heads are currently allocated way down the function chain in __add_event and add_tracepoint and then freed when the scanner code calls parse_events_update_lists. Be more explicit with where memory is allocated and who should free it. With this patch the list_head is allocated in the scanner code and freed when the scanner code calls parse_events_update_lists. Signed-off-by: David Ahern <dsahern@gmail.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1372793245-4136-7-git-send-email-dsahern@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions