From 7d22ae2248e26f0c940277ad47f974ba897a7fa8 Mon Sep 17 00:00:00 2001 From: "dongliang.cui" Date: Thu, 29 Feb 2024 18:10:08 +0800 Subject: [PATCH] ANDROID: TRACE: mm: export mm_filemap_* for calling in ko In certain scenarios, we want to track the file names associated with file pages in user version. So we want to export this tracepoint for calling in ko. Bug: 327557147 Bug: 399801543 Change-Id: I6b9a81a4ebe1f582fdc4b3967c590f5ba450d61e Signed-off-by: dongliang.cui Signed-off-by: Cixi Geng --- mm/filemap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mm/filemap.c b/mm/filemap.c index b30a8466de59..c3f91381b1bf 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -129,6 +129,10 @@ * ->private_lock (zap_pte_range->block_dirty_folio) */ +/* Export tracepoints that act as a bare tracehook */ +EXPORT_TRACEPOINT_SYMBOL_GPL(mm_filemap_delete_from_page_cache); +EXPORT_TRACEPOINT_SYMBOL_GPL(mm_filemap_add_to_page_cache); + static void mapping_set_update(struct xa_state *xas, struct address_space *mapping) {