[PATCH] Perf: add anonymous huge page recognition

2013-01-04 Thread Joshua Zhu
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 vm_file points to hugetlbfs. In this way, this vma will not be regarded as anonymous memory by is_anon_memory() in perf user

[PATCH] Perf: add anonymous huge page recognition

2013-01-04 Thread Joshua Zhu
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 vm_file points to hugetlbfs. In this way, this vma will not be regarded as anonymous memory by is_anon_memory() in perf user