mm: khugepaged: add trace status description for SCAN_PAGE_HAS_PRIVATE
Subsystems (3)
PATCH 1/1 mm: khugepaged: add trace status description for SCAN_PAGE_HAS_PRIVATE
The commit 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 ("mm,thp: add read-only THP support for (non-shmem) FS") instroduced a new khugepaged scan result: SCAN_PAGE_HAS_PRIVATE, but the corresponding description for trance events were not added.
--- include/trace/events/huge_memory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/trace/events/huge_memory.h +2 -1
@@ -31,7 +31,8 @@ EM( SCAN_ALLOC_HUGE_PAGE_FAIL, "alloc_huge_page_failed") \ EM( SCAN_CGROUP_CHARGE_FAIL, "ccgroup_charge_failed") \ EM( SCAN_EXCEED_SWAP_PTE, "exceed_swap_pte") \ - EMe(SCAN_TRUNCATED, "truncated") \ + EM( SCAN_TRUNCATED, "truncated") \ + EMe(SCAN_PAGE_HAS_PRIVATE, "has_private") \#undef EM#undef EMe
Signature · 1 line
1.8.3.1
Quoted 1 line · Yang Shi
The commit
99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0("mm,thp: add
Reduce the commit SHA ID here to just 12 digits instead ?
Quoted 1 line
read-only THP support for (non-shmem) FS") instroduced a new khugepaged
s/instroduced/introduced/
Quoted 2 lines
scan result:
SCAN_PAGE_HAS_PRIVATE, but the corresponding description for trance events were not added.
s/trance/trace/
Quoted 13 lines
Cc Song Liu <[email protected]>Cc Kirill A. Shutemov <[email protected]>Signed-off-by Yang Shi <[email protected]>--- include/trace/events/huge_memory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)include/trace/events/huge_memory.h +0
-0
include/trace/events/huge_memory.h line 35
Quoted 6 lines
include/trace/events/huge_memory.h +2
-1@@ -31,7 +31,8 @@ EM( SCAN_ALLOC_HUGE_PAGE_FAIL, "alloc_huge_page_failed") \ EM( SCAN_CGROUP_CHARGE_FAIL, "ccgroup_charge_failed") \ EM( SCAN_EXCEED_SWAP_PTE, "exceed_swap_pte") \ -EMe (SCAN_TRUNCATED ,"truncated" ) \ + EM( SCAN_TRUNCATED, "truncated") \ +EMe (SCAN_PAGE_HAS_PRIVATE ,"has_private" ) \
Majority of the SCAN_PAGE_* scan results have page_ in the front. Hence we should just follow same pattern here and make it 'page_has_private' instead.
Quoted 4 lines
include/trace/events/huge_memory.h +0
-0#undef EM#undef EMe
Quoted 4 lines · Anshuman Khandual
Quoted 1 line · Yang Shi
The commit
99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0("mm,thp: addReduce the commit SHA ID here to just 12 digits instead ?
Yes, sure.
Quoted 3 lines
Quoted 2 lines
read-only THP support for (non-shmem) FS") instroduced a new khugepaged
s/instroduced/introduced/
Will fix.
Quoted 4 lines
Quoted 3 lines
scan result:
SCAN_PAGE_HAS_PRIVATE, but the corresponding description for trance events were not added.s/trance/trace/
My fat finger :-(
Quoted 8 lines
Quoted 8 lines
Cc Song Liu <[email protected]>Cc Kirill A. Shutemov <[email protected]>Signed-off-by Yang Shi <[email protected]>--- include/trace/events/huge_memory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 13 lines
include/trace/events/huge_memory.h line 35
Quoted 11 lines
include/trace/events/huge_memory.h +2
-1@@ -31,7 +31,8 @@ EM( SCAN_ALLOC_HUGE_PAGE_FAIL, "alloc_huge_page_failed") \ EM( SCAN_CGROUP_CHARGE_FAIL, "ccgroup_charge_failed") \ EM( SCAN_EXCEED_SWAP_PTE, "exceed_swap_pte") \ -EMe (SCAN_TRUNCATED ,"truncated" ) \ + EM( SCAN_TRUNCATED, "truncated") \ +EMe (SCAN_PAGE_HAS_PRIVATE ,"has_private" ) \Majority of the SCAN_PAGE_* scan results have
page_in the front. Hence we should just follow same pattern here and make it 'page_has_private' instead.
Some do start with "page_", anyway either is fine to me.
Quoted 5 lines
Quoted 5 lines
include/trace/events/huge_memory.h +0
-0#undef EM#undef EMe