summaryrefslogtreecommitdiff
path: root/Makefile.am
AgeCommit message (Expand)AuthorFilesLines
2006-11-13Initial import15.6-2Tobias Klauser1-0/+6
35'>35space:mode:
authorWang Nan <wangnan0@huawei.com>2016-07-14 08:34:38 +0000
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-15 17:27:47 -0300
commita1f72618346a4e7ce9cff6aec1a62737d5d08763 (patch)
tree62d32ea095693439a56178a80bf8a1b9e7b39a73
parent4876075b3205af992bf1012f6d6fbc03593d55b9 (diff)
perf evlist: Extract common code in mmap failure processing
In perf_evlist__mmap_per_cpu() and perf_evlist__mmap_per_thread(), in case of mmap failure, successfully created maps should be cleared. Current code uses two loops calling __perf_evlist__munmap() for each function. This patch extracts common code to perf_evlist__munmap_nofree() and use previous introduced decoupled API perf_mmap__munmap(). Now __perf_evlist__munmap() can be removed because of no user. Signed-off-by: Wang Nan <wangnan0@huawei.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: He Kuang <hekuang@huawei.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Nilay Vaish <nilayvaish@gmail.com> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1468485287-33422-7-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat