From patchwork Fri Jan 5 01:36:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bixuan Cui X-Patchwork-Id: 13511653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 350BAC47073 for ; Fri, 5 Jan 2024 01:36:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9A87D6B02F1; Thu, 4 Jan 2024 20:36:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 958E86B02F2; Thu, 4 Jan 2024 20:36:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7D1F16B02F3; Thu, 4 Jan 2024 20:36:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 66D8C6B02F1 for ; Thu, 4 Jan 2024 20:36:55 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 46F2AA203A for ; Fri, 5 Jan 2024 01:36:55 +0000 (UTC) X-FDA: 81643543590.11.1999C94 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2118.outbound.protection.outlook.com [40.107.117.118]) by imf19.hostedemail.com (Postfix) with ESMTP id 693EC1A0005 for ; Fri, 5 Jan 2024 01:36:52 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=vivo.com header.s=selector2 header.b=ewSH2B4m; dmarc=pass (policy=quarantine) header.from=vivo.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf19.hostedemail.com: domain of cuibixuan@vivo.com designates 40.107.117.118 as permitted sender) smtp.mailfrom=cuibixuan@vivo.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1704418612; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/+HFuVXQet26qI0PvwZToEYKyK1hQvB+fF6C3EU4waA=; b=wBPOwP06RWWnW8IIwvbOpkLi2hKR1r/wu2HNwt9SdUxziwPxS5h6lSkC+isG9amRwsJaTR kA5ZeD2U0vCQ1XH7ZGZ7u2Maw1VV1ud8o/5NN3y8zoh5jkogRteg4VxyhArReHezco415C DXfBtoABS7UqSq6dn3A1tISX+30JJTM= ARC-Authentication-Results: i=2; imf19.hostedemail.com; dkim=pass header.d=vivo.com header.s=selector2 header.b=ewSH2B4m; dmarc=pass (policy=quarantine) header.from=vivo.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf19.hostedemail.com: domain of cuibixuan@vivo.com designates 40.107.117.118 as permitted sender) smtp.mailfrom=cuibixuan@vivo.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1704418612; a=rsa-sha256; cv=pass; b=a5/SbyyKcb4IRsFQtI5b0Q5NZwkpobK9H4Fs3mMJensgtIZ0dvlncwzN3F8Keev7bKU6DU cfdpOaM+f+EvDevf8tnIwCahpCISZBqpFDgGScgdoMoD2iOF4tzGGhlbl/cslpN0lq/zAc 8TxoKgo1ElmFHTdWAA6ZBlvI6aAxuqk= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y08zRpsr+D9yVLbQgyWacusfOpeGjRAOF06dIwvBMmF0RzMWxsYCBrVuaYPuaAVjMsAj8cw+0YBGReu/6TPIe/WtaDsEc0SAr/o1lo2R+YMFSTTzuhx2yWv+SCyvT8grqgVVDr3vUcATVBx3nMy7Uz+MECV6NIFcNbdqpAUHY1c+Aqq7PIalxWCuevQQkINR4emaS6TSbHRYHLXEiXEUfcg2YNXwvYqA+EVQk5ZeFP+O0gjAqcB9YgStP4kpt7SwKTQ1j0pXeiUG4WV5WlS10pysHZGnESvZmCioFXdMHzk8hU/GI/dVl2iOnXYXLIMmkeOEob0XA0P9cf2nzCn1nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/+HFuVXQet26qI0PvwZToEYKyK1hQvB+fF6C3EU4waA=; b=fnn/+BLo0c5Xs2vGVRCQ1cW6WWGIVYVuM5yrVQbwWFnh6vz9rP4iBgELOgDfc82bz7IweI28rt4tCSHpMC0fcF/vzRH5+sBtvKHcjrU9f3KGxW3p0nrWUqnQ//V5gPzzNRdCZPlyUMZbOUikWy0/amY4kRrUdqNFVT4Apt2pae9ASu/VoHvpmkGZz1EcddLKIHgsV/WdRHjA1dERtBf9bhI+1uPG6Xo1GJMeZpdY+qChlP94ElFm15Af6Surjj14g2fYtuXYFiuSf+Ia1//2eJRttGuUVYeldpGCC2zqqwLdWY9U2vLGVrtcTKGFlCwD1IP056LW/1OpPLelv8Xi2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/+HFuVXQet26qI0PvwZToEYKyK1hQvB+fF6C3EU4waA=; b=ewSH2B4mjiR/8qBsjVwOxmZfUiYLyok9KqW5wa94fIk/tNCtl10BQQJl9kZWX9thdBcT55NzUz6oyibMiJlLdrwY4qC3Ffv060yJv24s998FNg8EQJ7D8JlGQdQboLNeqJc/kYXcqyYt8N0mg8cfMokwLH1mQ54iVreTt8cUXGGOrhAfBE5JENqL9OhVBB1aZHRHTZW6OxlnyIdqD+GkxiBLib48KrH3jYxt5nKBjPzoM5YO5UoQp40zob6GGOErNnXICgPcKtbaZ6G/6v0U+oDLyDvxPqXi6gh+PP0nXfVj2s1pCU/FFkHabkheqE+CE0G76zZphWH3vT3D4Q0zEQ== Received: from TYZPR06MB4045.apcprd06.prod.outlook.com (2603:1096:400:21::8) by PSAPR06MB4488.apcprd06.prod.outlook.com (2603:1096:301:81::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.16; Fri, 5 Jan 2024 01:36:42 +0000 Received: from TYZPR06MB4045.apcprd06.prod.outlook.com ([fe80::9925:32d7:c818:3c5]) by TYZPR06MB4045.apcprd06.prod.outlook.com ([fe80::9925:32d7:c818:3c5%7]) with mapi id 15.20.7159.015; Fri, 5 Jan 2024 01:36:42 +0000 From: Bixuan Cui To: akpm@linux-foundation.org, rostedt@goodmis.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, opensource.kernel@vivo.com, cuibixuan@vivo.com Subject: [PATCH -next v6 1/2] mm: shrinker: add new event to trace shrink count Date: Thu, 4 Jan 2024 17:36:06 -0800 Message-Id: <20240105013607.2868-2-cuibixuan@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240105013607.2868-1-cuibixuan@vivo.com> References: <20240105013607.2868-1-cuibixuan@vivo.com> X-ClientProxiedBy: SG2PR04CA0169.apcprd04.prod.outlook.com (2603:1096:4::31) To TYZPR06MB4045.apcprd06.prod.outlook.com (2603:1096:400:21::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB4045:EE_|PSAPR06MB4488:EE_ X-MS-Office365-Filtering-Correlation-Id: 93c84b2f-a06c-4b1a-4d20-08dc0d8ec4d2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W5ib7TSsf151qQdLjOkJH69RCLYWSJKalN8XkBvzYJqabALlDWwPaeWmQyu9suc7bU11RlSlrCYC1k4SKy9zLezW0rYRHYd+FGpnSeaijCSgkggMyLu5TalHjUY1fqZdvdXtBRQxWd2g6U86FrbX1saRAJLA02YJMROZv8mLxB6AztWe+S3lNbaKLhQ1ONi0J999OwqLjQi6segjG2iCc24fsXaWZJGGkCSGhoMzcQy1SEYm6ktVy+M3wUzO+Jx/WHXJaKW78Ny0wrYnVPa1KHqyGZHrA6ojwF++N1ooINRO7Lo/2sTscaN1wyIsyu0dxXbEmpsBGxlgJW4jFyIOCSun1L4iIETCyPVNAi6NE2Ssz5XeflGGbJljoDh4yGDQspAU1bXWMLuygILmegma4LG6STrinMLhlJSpQfV/qXFIRBXVTNk/A2bD0SrSj7wPYhl0h9/b2KwGgn+8G4TlMFEdwCnqzIvBJM4tNidf3XVATC1/6dOatNY9nKx99t47+wuX+Alkku98KPfzrR9/nj51jeeW8pf/D8bY7WFl6DsN08AVNojYBWe2R+WcgHo1ZEhdNypitTgG19igNFszpZkXHoPQKk5RYNCATiL+urt5G1qcbvc2rt+SzTFOKeKk X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR06MB4045.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(136003)(396003)(376002)(39850400004)(346002)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(52116002)(26005)(1076003)(6666004)(6486002)(478600001)(6512007)(6506007)(2616005)(83380400001)(107886003)(5660300002)(2906002)(41300700001)(66556008)(316002)(8676002)(8936002)(66476007)(4326008)(38350700005)(66946007)(38100700002)(40140700001)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9nylH50KXxLXXrOTmteQIVeZhlXKHBJ8VqDr4Nh6wlaMi8Lj0s0Bwo1jAmPmIuBuPvG+xTMk6eZxSYpDXOBRYyrGOTjphVvqwf58rc5nvN0Xh5YzCw+OSD3o+PdTEYzI4CQ8Mvzn7PSDWg9d8Lnm0b0VWbExi9BlBTLXTH9UZ2YBKRpsvA3il6gtcI6aClZOL7wpOkPyAKHKSjjn5br0tWjMrTpoMeV2h2KDN3eEfvGU/4w54mcMaXtkC4bSyqmBmq4AOVL7SAiAf3Ds3AJl/GoCvCkZWa5SU4NEOeQknT+ZUEtO1Wf580rXxqaZpueYfTwL++AEn3VTzTwEkvzA4D0YPdiOWqQiTIQouHVObF2NkZoRq/iBHFQ/l9xmkO6iLg0u8JwkUwPqmvmnHWa/QDpFasih8LYhCIcPCuvwcU9d8Z60thbh4d72s+Kqo7Z0ZSQLAQqvHHbt48QskqdO2rzvrslcYv98IRULEj4LFqiCJedSW4MFYJV43D84VmbRdx3FVhcTzVAKJH5jBgbaWNvp53BLkp8ctvIFbDoNwLD0WnYPWoXzVlugLtZmVkAQvOlLJrPIiw0x1vf7l1AWt0uwCIpP+V2eCazqirfkQ4qccumdkDy3ZfceQklI0vIDOWsL9H3rjDJb7k7O0OFU8ONWb/DGOcu7gfTP7IE/fRWB4zH0pRdoqaCmEBM6nAMHY0+4Ag2f7k/CxrC6Aq0eXvE4QLGSwRhqApRkHAO3mbxj2T6vAX8oaovm96RsYkFlDvbezV6C7gyVwpz7Y9joi9BOCbJdHoxJz/6SkKVaqrsifVDBGTT0tw7Gutl026zISW4f5hZBR5iBiXvWa+MDOsmiH8028oecOK840q8NkUzFdhMEdQ1t13ufSYQZNY+UbYGiwchJGPp3VTzMVo+qoHZj5PbcS5OjWOUDPCaOwyGHAtbiY+X4MYhmXZ7AGiR5y9YNxWdSulNm0AM+PV9HhA5Xk/MaFIrUhyKG/g6WORm2YuGHTeZq71JxpMxpT86PxxXBR85x1ZqdxQMTr6/C1VEsgnolvSWge63JYDwpG6v8hzGqlntjLTTXaI2MjbgUrcTi18OmG5f5dvLQkhCUfEwTqZWb/qrG3pxGsnEAOMG5iXoekW0XAsNmmPLdhVT1hFLf/EShpxiL2ESr5vctcX3V/LIH/gqFJ/S00VCvrZQKOZVodO922srh2PuMmvHdZSiLqmEL1CW5xmUQGOk/8F2osK6iKPO1vNfo+g8jKRuSHOlHRQakg+ANGkr60cUe4iiVRINtFjAng/koOxC/dmqL/C3qky2GljSxd+T7cZ4R+VBU0UvdBBdOmpbHvIdgPDWyoPMCF0vo443FgWT6o5w8aBYVUQBLMxFxcn0Qnhpi3HKoYiv4Yk4dUX03sRzDMEDlmQFoUyRC2rNVAcNg+vKBEXKqh9g/yzwkW7t0YuNZVfg756cXkqDRo9csReQMlBFfV7QpPl2322JR69S0VNC9kM79D4byLZXdx+wNQmlkOBWnuRd9WkIKYqSfmFmkVcpzXsYrd0JnAV2/9/MP7/Y/n5JC/WmW4mvSOK5+zSsB5tAeJ6OpQcNTMmbsT4OK X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93c84b2f-a06c-4b1a-4d20-08dc0d8ec4d2 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB4045.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2024 01:36:41.9742 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eQGGnHYvTsxk2ouB6qlH6tOf+tA5pYbqSlBbCrZax6ahRrvJ7fweyl/z+4wHfjCGhpJkFPqAL2KcUSFX2CrxlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4488 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 693EC1A0005 X-Stat-Signature: oaz5gby7iku5yirgm1ru9x7gky98ybyd X-Rspam-User: X-HE-Tag: 1704418612-766816 X-HE-Meta: U2FsdGVkX1+RccFDOlejvmqEggRPV27UnjLa/LD19TcbLa37NjvK/evxY5Oq6p2EQPFQFTAlvjFOW3/qUcQ8G2K0j3z4Nvlimx57P+MZUXJuwLYwReVyziv08MT8C0qVGFWoq5vYGKGpaqvJ5sqxaqzlrRFyVfsTpn+KLsu6FjD2nVbYoAUvSMvK54dSd61e5d+5GT4/EC+pUUXNrXwdzYwQ9a5HnIT2P6JIGTBAKiMq+2L5PXBqXA62t9newPeREfixXDyfzXf6z7799Cgfg8k3cnQi4Y0PoNL3K8EW/K00KxV2rT4aJxz85uihg2lyXB42ieOB9bVrhORRz17Gqc84A4CGEQY6gcx5g8G5Qj2oCTzDwyUYM3onztd+5XCpLFG03iEZrVEhgmNly25i0+q75WQ/79YEkHm1rKzfvI0yMnFBjRdIYUBb9PwIGt4BrLzFXNSoZs63B3IxRT0Wz/n9fc2siUyOxI85Lg9AtJ166MpNaRy2kNERnfp+KblneYvQzu8+k10b0CQaakTTrnFb94DK+sG9u69+FSXbXiX1G4878hLak5yIMsDCTOKtY1O1snVdT+4/4RE/NZRSWO+cjIeZbZjecV7Q2CPi2tCyu3Pdqe/gUWNBHivmXsabi3SH9gEqpMQdfFBo76m45PlqF1hTz9F7Hr24VOvPUA0piOmMkTn27fUduzNtvpU8b9qYNLzxTALted/pTtRs8RTf0gCtT8JuxJj5iGT3IGFCPFgqIDsetkFkGgkPgCG9Awh1B8dPQnXjjcSiDIYLrnhyuI4geFZQCry1BzvwSoS1qN2wF3wqB/Yc1SImmSTVlR2CtqUPxkkilmSeoH2ZMyGM8q3y2grpNc+VWk3eKo+GLt7A50WSpFqaM1JWz6XGTiDBUgEzjTKvF9GKtdlg+c06qOssfV7nE2fq5ga+jvlJoiBtanVZCrDaOOvh97TlEzyjOGROj21F1Sl9dKz 6tcnpDtJ f3qMfzTj5uY2ibSaBz7SCqQfNr7WXXak4xtwUtvCo7Wbr3rdnO2lm4F5s1GU31LEaSMCm06ei1oXrrv+oNoBYaxHJBDGTKYhGb3SUaSllyHBPyVpl0r5bjIEXjgNFoZke2YTR1AVfq25rNqKsUNPn5wpQ18SkVcxi6lahrcXjPtBoYE0oH9Bv1HfDAY3CDjMTkyYTx75qMDlMDV4Sq0T4CwRtEiV68pImnyLugCdjZID//5/oHfmrgl05eGfN8Eh6EvLskOsx7DXipUtbowqlPHvUJQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: cuibixuan do_shrink_slab() calculates the freeable memory through shrinker->count_objects(), and then reclaims the memory through shrinker->scan_objects(). When reclaiming memory, shrinker->count_objects() takes a certain amount of time: Fun spend(us) ext4_es_count 4302 ext4_es_scan 12 super_cache_count 4195 super_cache_scan 2103 Therefore, adding the trace event to count_objects() can more accurately obtain the time taken for slab memory recycling. Example of output: kswapd0-103 [003] ..... 1098.317942: mm_shrink_count_start: kfree_rcu_shrink_count.cfi_jt+0x0/0x8 00000000c540ff51: nid: 0 kswapd0-103 [003] ..... 1098.317951: mm_shrink_count_end: kfree_rcu_shrink_count.cfi_jt+0x0/0x8 00000000c540ff51: nid: 0 freeable:36 Signed-off-by: Bixuan Cui Reviewed-by: Steven Rostedt (Google) --- Changes: v6: * Add Reviewed-by from Steven Rostedt. v5: * Use 'DECLARE_EVENT_CLASS(mm_vmscan_lru_shrink_start_template' to replace 'RACE_EVENT(mm_vmscan_lru_shrink_inactive/active_start' * Add the explanation for adding new shrink lru events into 'mm: vmscan: add new event to trace shrink lru' v4: * Add Reviewed-by and Changlog to every patch. v3: * Swap the positions of 'nid' and 'freeable' to prevent the hole in the trace event. v2: * Modify trace_mm_vmscan_lru_shrink_inactive() in evict_folios() at the same time to fix build error (Andrew pointed out). include/trace/events/vmscan.h | 49 +++++++++++++++++++++++++++++++++++ mm/shrinker.c | 4 +++ 2 files changed, 53 insertions(+) diff --git a/include/trace/events/vmscan.h b/include/trace/events/vmscan.h index 1a488c30afa5..b99cd28c9815 100644 --- a/include/trace/events/vmscan.h +++ b/include/trace/events/vmscan.h @@ -196,6 +196,55 @@ DEFINE_EVENT(mm_vmscan_direct_reclaim_end_template, mm_vmscan_memcg_softlimit_re ); #endif /* CONFIG_MEMCG */ +TRACE_EVENT(mm_shrink_count_start, + TP_PROTO(struct shrinker *shr, struct shrink_control *sc), + + TP_ARGS(shr, sc), + + TP_STRUCT__entry( + __field(struct shrinker *, shr) + __field(void *, shrink) + __field(int, nid) + ), + + TP_fast_assign( + __entry->shr = shr; + __entry->shrink = shr->count_objects; + __entry->nid = sc->nid; + ), + + TP_printk("%pS %p: nid: %d", + __entry->shrink, + __entry->shr, + __entry->nid) +); + +TRACE_EVENT(mm_shrink_count_end, + TP_PROTO(struct shrinker *shr, struct shrink_control *sc, long freeable), + + TP_ARGS(shr, sc, freeable), + + TP_STRUCT__entry( + __field(struct shrinker *, shr) + __field(void *, shrink) + __field(long, freeable) + __field(int, nid) + ), + + TP_fast_assign( + __entry->shr = shr; + __entry->shrink = shr->count_objects; + __entry->freeable = freeable; + __entry->nid = sc->nid; + ), + + TP_printk("%pS %p: nid: %d freeable:%ld", + __entry->shrink, + __entry->shr, + __entry->nid, + __entry->freeable) +); + TRACE_EVENT(mm_shrink_slab_start, TP_PROTO(struct shrinker *shr, struct shrink_control *sc, long nr_objects_to_shrink, unsigned long cache_items, diff --git a/mm/shrinker.c b/mm/shrinker.c index dd91eab43ed3..d0c7bf61db61 100644 --- a/mm/shrinker.c +++ b/mm/shrinker.c @@ -379,7 +379,11 @@ static unsigned long do_shrink_slab(struct shrink_control *shrinkctl, : SHRINK_BATCH; long scanned = 0, next_deferred; + trace_mm_shrink_count_start(shrinker, shrinkctl); + freeable = shrinker->count_objects(shrinker, shrinkctl); + + trace_mm_shrink_count_end(shrinker, shrinkctl, freeable); if (freeable == 0 || freeable == SHRINK_EMPTY) return freeable;