[RFC] Add gup trace points support

2015-12-01 Thread Yang Shi
Some background about why I think this might be useful. When I was profiling some hugetlb related program, I got page-faults event doubled when hugetlb is enabled. When I looked into the code, I found page-faults come from two places, do_page_fault and gup. So, I tried to figure out which play

[RFC] Add gup trace points support

2015-12-01 Thread Yang Shi
Some background about why I think this might be useful. When I was profiling some hugetlb related program, I got page-faults event doubled when hugetlb is enabled. When I looked into the code, I found page-faults come from two places, do_page_fault and gup. So, I tried to figure out which play