diff options
author | Wang Nan <wangnan0@huawei.com> | 2016-09-06 07:58:27 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-09-08 18:28:06 +0300 |
commit | 0ac3348e502423cf2fe86beca83b8835a2e6d289 (patch) | |
tree | dbcb20037ff6254f6af6686f16be78f4b4f039ae /tools/lib | |
parent | be39db9f2932f0ce4e116c71ba5ae2b542e536a7 (diff) | |
download | linux-0ac3348e502423cf2fe86beca83b8835a2e6d289.tar.xz |
perf tools: Recognize hugetlb mapping as anon mapping
Hugetlbfs mapping should be recognized as anon mapping so user has a
chance to create /tmp/perf-<pid>.map file for symbol resolving. This
patch utilizes MAP_HUGETLB to identify hugetlb mapping.
After this patch, if perf is started before a program starts using huge
pages (so perf gets MMAP2 events from kernel), perf is able to recognize
hugetlb mapping as anon mapping.
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Nilay Vaish <nilayvaish@gmail.com>
Cc: Zefan Li <lizefan@huawei.com>
Link: http://lkml.kernel.org/r/1473137909-142064-2-git-send-email-wangnan0@huawei.com
Signed-off-by: Hou Pengyang <houpengyang@huawei.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions