[PATCH 09/13] perf tools: Use perf_event_terms__purge() for non-malloced terms

2016-02-15 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In these two cases, a 'perf test' entry and in the PMU code the list_head is on the stack, so we can't use perf_event__free_terms() (soon to be renamed to perf_event_terms__delete()), because it will free the list_head as well. Acked-by: Jiri Olsa

[PATCH 09/13] perf tools: Use perf_event_terms__purge() for non-malloced terms

2016-02-15 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In these two cases, a 'perf test' entry and in the PMU code the list_head is on the stack, so we can't use perf_event__free_terms() (soon to be renamed to perf_event_terms__delete()), because it will free the list_head as well. Acked-by: Jiri Olsa Cc: Alexei