Commit 4a85f45e authored by Richard Chang's avatar Richard Chang Committed by Todd Kjos
Browse files

BACKPORT: FROMGIT: mm: add alloc_contig_migrate_range allocation statistics

alloc_contig_migrate_range has every information to be able to understand
big contiguous allocation latency.  For example, how many pages are
migrated, how many times they were needed to unmap from page tables.

This patch adds the trace event to collect the allocation statistics.  In
the field, it was quite useful to understand CMA allocation latency.

[akpm@linux-foundation.org: a/trace_mm_alloc_config_migrate_range_info_enabled/trace_mm_alloc_contig_migrate_range_info_enabled]
Link: https://lkml.kernel.org/r/20240228051127.2859472-1-richardycc@google.com


Signed-off-by: default avatarRichard Chang <richardycc@google.com>
Reviewed-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org.>
Cc: Martin Liu <liumartin@google.com>
Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>

Bug: 315897534
(cherry picked from commit c8b36003
 https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git

 mm-stable)
[richardycc: slight modification for android change 0de2f429]
Change-Id: If6c3cd106201fd13683d1dd5afdfa62a48a4dd3b
Signed-off-by: default avatarRichard Chang <richardycc@google.com>
parent e2903ba0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment