diff options
author | 2013-07-02 13:27:25 -0600 | |
---|---|---|
committer | 2013-07-12 13:52:05 -0300 | |
commit | c5cd8ac07e7ad5f21b1930b23b2e1bb231958430 (patch) | |
tree | 0b81ede400260d6b06b2b4b208eef7cc1530b33f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | perf tests: Make terms a stack variable in test_term (diff) | |
download | linux-dev-c5cd8ac07e7ad5f21b1930b23b2e1bb231958430.tar.xz linux-dev-c5cd8ac07e7ad5f21b1930b23b2e1bb231958430.zip |
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/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions