mbox series

[V2,0/2] mm/migration: Add trace events

Message ID 1643080105-11416-1-git-send-email-anshuman.khandual@arm.com (mailing list archive)
Headers show
Series mm/migration: Add trace events | expand

Message

Anshuman Khandual Jan. 25, 2022, 3:08 a.m. UTC
This adds trace events for all migration scenarios including base page, THP
and HugeTLB. This series is applies on v5.17-rc1. 

Changes in V2:

- Used DECLARE_EVENT_CLASS()/DEFINE_EVENT() construct reducing code footprint
- Added trace events for base page and HugeTLB

Changes in V1:

https://lore.kernel.org/all/1641531575-28524-1-git-send-email-anshuman.khandual@arm.com/

- Dropped mm, pmdp, page arguments from trace
- Updated trace argument names and output format

Changes in RFC:

https://lore.kernel.org/all/1640328398-20698-1-git-send-email-anshuman.khandual@arm.com/

Anshuman Khandual (2):
  mm/migration: Add trace events for THP migrations
  mm/migration: Add trace events for base page and HugeTLB migrations

 include/trace/events/migrate.h | 31 +++++++++++++++++++++++++++++++
 include/trace/events/thp.h     | 27 +++++++++++++++++++++++++++
 mm/huge_memory.c               |  5 +++++
 mm/migrate.c                   |  3 +++
 mm/rmap.c                      |  5 +++++
 5 files changed, 71 insertions(+)