]> asedeno.scripts.mit.edu Git - linux.git/commit
perf tools: Recognize hugetlb mapping as anon mapping
authorWang Nan <wangnan0@huawei.com>
Tue, 6 Sep 2016 04:58:27 +0000 (04:58 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Sep 2016 15:28:06 +0000 (12:28 -0300)
commit0ac3348e502423cf2fe86beca83b8835a2e6d289
treedbcb20037ff6254f6af6686f16be78f4b4f039ae
parentbe39db9f2932f0ce4e116c71ba5ae2b542e536a7
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>
tools/perf/util/map.c