mm: khugepaged: add trace status description for SCAN_PAGE_HAS_PRIVATE
Subsystems (3)
PATCH v2 1/1 mm: khugepaged: add trace status description for SCAN_PAGE_HAS_PRIVATE
The commit 99cb0dbd47a1 ("mm,thp: add read-only THP support for (non-shmem) FS") introduced a new khugepaged scan result: SCAN_PAGE_HAS_PRIVATE, but the corresponding description for trace events were not added.
Cc Song Liu <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Anshuman Khandual <[email protected]>
Signed-off-by Yang Shi <[email protected]>
---
v2: *Adopted the comments from Anshuman Khandual
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, "page_has_private") \#undef EM#undef EMe
Signature · 1 line
1.8.3.1
Quoted 10 lines · Yang Shi
The commit
99cb0dbd47a1("mm,thp: add read-only THP support for (non-shmem) FS") introduced a new khugepaged scan result:SCAN_PAGE_HAS_PRIVATE, but the corresponding description for trace events were not added.Cc Song Liu <[email protected]>Cc Kirill A. Shutemov <[email protected]>Cc Anshuman Khandual <[email protected]>Signed-off-by Yang Shi <[email protected]>---
v2: *Adopted the comments from Anshuman Khandual
Reviewed-by Anshuman Khandual <[email protected]>
Quoted 19 lines
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, "page_has_private") \#undef EM#undef EMe