* perf-<pid>.map I generated for jit codes lose effect when hugepage used
@ 2012-12-31 6:02 Zhu, Wen-Jie (Joshua)
2012-12-31 19:40 ` Andi Kleen
0 siblings, 1 reply; 2+ messages in thread
From: Zhu, Wen-Jie (Joshua) @ 2012-12-31 6:02 UTC (permalink / raw)
To: linux-perf-users@vger.kernel.org
Hello,
I use perf and the perf-<pid>.map I generated for Java jit codes to help profiling java application.
And recently I found jit symbols cannot be listed any more in perf report.
By "sysctl vm.nr_hugepages=0" to disable hugepage temporarily, it works.
Without hugepage, by judging anonymous memory's vm_area_struct, perf_mmap_event's filename will be set to "//anon" indicating this vma is belong to anonymous memory.
Once hugepage is used, vma's filename point to hugetlbfs. In this way, this vma will not be regarded as anonymous memory by is_anon_memory() in perf user space utility.
Therefore in order to avoid this problem, I temporarily change the codes of is_anon_memory() into following:
return (strcmp(filename, "//anon") && strcmp(filename, "/anon_hugepage (deleted)")) == 0;
I already verify this problem in kernel 3.5.0-21-generic and RHEL kernel 2.6.32-279.el6.
Do you have any better solution replacement?
Thank you!
Joshua
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-31 19:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-31 6:02 perf-<pid>.map I generated for jit codes lose effect when hugepage used Zhu, Wen-Jie (Joshua)
2012-12-31 19:40 ` Andi Kleen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.