Files
kernel_arpi/include
Minchan Kim a7f55c5c73 ANDROID: mm: add cma allocation statistics
alloc_contig_range is the core worker function for CMA allocation
so it has every information to be able to understand allocation
latency. For example, how many pages are migrated, how many time
unmap was needed to migrate pages, how many times it encountered
errors by some reasons.

This patch adds such statistics in the alloc_contig_range and
return it to user so user can use those information to analyize
latency. The cma_alloc is first user for the statistics, which
export the statistics as new trace event(i.e., cma_alloc_info).

It was really usefuli to optimize cma allocation work.

Bug: 192475091
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I7be43cc89d11078e2a324d2d06aada6d8e9e1cc9
Signed-off-by: Richard Chang <richardycc@google.com>
(cherry picked from commit 675e504598)
2023-01-05 02:16:50 +00:00
..
2022-09-21 17:30:12 +02:00
2022-09-24 10:02:50 +02:00
2022-11-15 16:38:36 +00:00
2022-12-08 16:43:35 +00:00
2022-09-24 10:01:09 +02:00