diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2016-02-12 19:43:02 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-02-12 19:53:19 +0000 |
| commit | fc0a2c1d59beac70b8738f4ce14431b798837374 (patch) | |
| tree | bb829db727497c244ca5eb259478a27a4c6a4b0a /tools/lib/api/debug.c | |
| parent | perf tools: Unlink entries from terms list (diff) | |
| download | kernel-fc0a2c1d59beac70b8738f4ce14431b798837374.tar.gz kernel-fc0a2c1d59beac70b8738f4ce14431b798837374.zip | |
perf tools: Introduce parse_events_terms__purge()
Purges 'struct parse_event_term' entries from a list_head.
Some users need this because they don't allocate space for the list
head, it maybe on the stack or embedded into some other struct.
Next patch will convert users that need just purging and then the
perf_events__free_terms() routine will free the list head as well,
finally being renamed to perf_events_terms__delete().
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: He Kuang <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions
