diff options
author | Wang Nan <wangnan0@huawei.com> | 2016-04-13 10:21:04 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-04-14 13:57:54 +0200 |
commit | b26dc73018d2e3a68cad0cf0bad902a8637f9bdf (patch) | |
tree | 5bde43b441f56287898616365d33dfe89e76e5cc /tools/perf/util/data.c | |
parent | perf ordered_events: Introduce reinit() (diff) | |
download | linux-b26dc73018d2e3a68cad0cf0bad902a8637f9bdf.tar.xz linux-b26dc73018d2e3a68cad0cf0bad902a8637f9bdf.zip |
perf session: Make ordered_events reusable
ordered_events__free() leaves linked lists and timestamps not cleared,
so unable to be reused after ordered_events__free(). Which is inconvenient
after 'perf record' supports generating multiple perf.data output and
process build-ids for each of them.
Use ordered_events__reinit() for this.
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1460535673-159866-2-git-send-email-wangnan0@huawei.com
Signed-off-by: He Kuang <hekuang@huawei.com>
[ Split from larger patch ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/data.c')
0 files changed, 0 insertions, 0 deletions