From patchwork Wed Jul 17 01:16:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13735018 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 EFE85C3DA59 for ; Wed, 17 Jul 2024 01:16:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 100526B0089; Tue, 16 Jul 2024 21:16:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0B1046B008C; Tue, 16 Jul 2024 21:16:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EB9C36B0092; Tue, 16 Jul 2024 21:16:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id CE0526B0089 for ; Tue, 16 Jul 2024 21:16:38 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 48B2FA0869 for ; Wed, 17 Jul 2024 01:16:38 +0000 (UTC) X-FDA: 82347479676.30.E7CE86C Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf29.hostedemail.com (Postfix) with ESMTP id A221712000C for ; Wed, 17 Jul 2024 01:16:35 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=GbsFw2M+; spf=pass (imf29.hostedemail.com: domain of 3chuXZgYKCEEvxuhqejrrjoh.frpolqx0-ppnydfn.ruj@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3chuXZgYKCEEvxuhqejrrjoh.frpolqx0-ppnydfn.ruj@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721178975; a=rsa-sha256; cv=none; b=5Sl6hISko7V4gTh05LOsGgJlTVW32ofzNBFtRw55MblzKKgJM3eSZx+2h4gtaS6mAXa51u BiyC+Of9/8CLiluMRkOjDPc25DhHXOw0C+u0zSJa0giHzzl5eQ/24wfDmBzNLHNbESAYEM IUvWIgjt0Zd0j9pc6azwnfqE46rszSk= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=GbsFw2M+; spf=pass (imf29.hostedemail.com: domain of 3chuXZgYKCEEvxuhqejrrjoh.frpolqx0-ppnydfn.ruj@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3chuXZgYKCEEvxuhqejrrjoh.frpolqx0-ppnydfn.ruj@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721178975; 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: references:dkim-signature; bh=ZtrRmPuJ7RM5N+fdBtCHcqUiCGG1Rz876hQyLiOH5uA=; b=XzCJWfeLXp/l/iJoVs/avUs7/bzKuCN6Nwqu12TfV2fbSYo8Fa7VwKHUb52v4Y0NXP/9sg u+KlJ5xhD2BIaL1FGkxXPii7dkoGJAw5DwRDJGOf4GmXZlAti5jy33DMS2KYgfaPLaStlO pxRz42ASgmoAZg2kwPzaSYNmV/G54Eo= Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-65b985bb059so123168067b3.2 for ; Tue, 16 Jul 2024 18:16:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1721178995; x=1721783795; darn=kvack.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=ZtrRmPuJ7RM5N+fdBtCHcqUiCGG1Rz876hQyLiOH5uA=; b=GbsFw2M+FR+PsN3CWFO6xGjeTMjJslVaUOMk2+jm6jfAdBAoMlQmE6BithsVyWLSDR KyhPuqgYJdMsg556EIS61pSNXpjAjWMpgDCDmseU/oSlS6lerDAE7YY6qEvUiGryFr45 3biBeHkuY6pR8dG4x2Iq94X0hCIAEBlYH2qmhujJFekvI5b5c+o8W4hEYQe52E1TcrW9 +Cl4kBuUMvgHa9u8YJAIUstBU586Q4+I3Z0+9COqcEo3mIWhg1yS3NFaMIvQEanQzUrp azK6uIUqkRIe2p8O/vOiBoMvivgmZaRGI/tkaT4M9WHP/ydw5P3T1crGDgsEYixQiH8l c/Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721178995; x=1721783795; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZtrRmPuJ7RM5N+fdBtCHcqUiCGG1Rz876hQyLiOH5uA=; b=DFxHUT6N3T/jSi1ZqvmVKdMzqsHRScPheKhweSBiyVaZiVHx0JuWBB7J1H/1CQKTOC g6KE8vAYvl0k/fxZgHESDQ3IbIIfK6sPpZqjW3hgNs07UEdZN7li1xW9jGvGZ7deDgsS hO2yZzjf3Y+4eTqgtadc3jFo71Xw29rQIxkQgNsnXotbWoKorIE7dERiwic1AxhbkXxI bDWOjhmVvjAoW5ALZnZO4Yjiq4XDlklVGRCd3ULk/5ny83fSOO3fNVLUopbMRHjTESlo x7LQW3YedjSGACaqUcRp08GLg2HOO5u/crg77MgCTic6Y4sFbHivTP4nxywePRpJ/rca nR9Q== X-Forwarded-Encrypted: i=1; AJvYcCXloozt1/fSAf6LxuU70PynbR2dbj0CwLAinKJ5V+PZQzCOFwtbe58KrQhvpYbZvALpLVCcp3eUgEf8szi1Vr2HHCA= X-Gm-Message-State: AOJu0Yz2V+LC1AoN38v40ArgnPu29N2i8CFdkyyFXZ7oRKe1CVhIRsbs PpvLm/YkyxVWkFAjs9IXAiF4LjKhWibXSgBvOur5HteuWKfs0XbbMnQettP+bp17wDaH9kkTIjO jwg== X-Google-Smtp-Source: AGHT+IHTFNVrUuio+0uJd4nBOImnRm7IfFbCs/D9PnfF9NdGaQRDzAThxxkd1t68PzDM1tR8DwO1gU2sT2Y= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:9b4f:4efc:3f93:ed78]) (user=surenb job=sendgmr) by 2002:a05:690c:2fc5:b0:62d:fbf:920a with SMTP id 00721157ae682-665015e57ecmr106577b3.10.1721178994558; Tue, 16 Jul 2024 18:16:34 -0700 (PDT) Date: Tue, 16 Jul 2024 18:16:29 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.45.2.993.g49e7a77208-goog Message-ID: <20240717011631.2150066-1-surenb@google.com> Subject: [PATCH 1/2] alloc_tag: export mem_alloc_profiling_key used by modules From: Suren Baghdasaryan To: akpm@linux-foundation.org Cc: kent.overstreet@linux.dev, hch@infradead.org, vbabka@suse.cz, pasha.tatashin@soleen.com, souravpanda@google.com, keescook@chromium.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, surenb@google.com, kernel test robot X-Stat-Signature: 5qm8yr1jweciuiart9byy558m8ucaxbg X-Rspamd-Queue-Id: A221712000C X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1721178995-559911 X-HE-Meta: U2FsdGVkX1+VQ0XPBzykQ0DuAAD4a99iU6FWtURepVoOy5fydxiZqFq5Ef8+GLhITw9YVX4aQw1Xy7WQQHykDMzbtYFrIE2U845Iy66XOGC6J20mfV4ukoqSXagmEZItZII8LhCQgl0u/60bANtr8eiB+MdlK8Mm/yVz8toTPpEumO81eUk7s3Vksp9cvPyiXIPol24Rb6K9iac4tiNfB0nL1Lrf5NGhyMb+4lIK4NhnjWZWoTdoSAfcuS3052S5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oEzUx1kvyEWDuDSldV0s+aDt9+jNJ6sxwjV2lm29vSE9MTlIKxsjlvnRFcdzJxEvhPGOKDJy6Mud4KRhk6S8XPilckZZ7UBamD8c7rZIafTcghzc1TrltbAttlK5mEAfDv1OZvZagU6g9Jb86UjcWs6EvZeYAFM5eD2uU20myyM5AGEuY3d9Y9rtvsJxGXls3bkFHzTWVEgmHVMtHr1IVO+SiWiY7h2NPxvmB4D+G04N5yBT2UZ/rvBxyjW/DQzCfP7OGPtrlXUWIpK9mk8i0Dim7bSuStLNi8jbASMW5yyFAnIRx8wj4Xnk= X-Bogosity: Ham, tests=bogofilter, spamicity=0.027882, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Export mem_alloc_profiling_key as it is used by modules (indirectly via mem_alloc_profiling_enabled()). Fixes: 22d407b164ff ("lib: add allocation tagging support for memory allocation profiling") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202407080044.DWMC9N9I-lkp@intel.com/ Signed-off-by: Suren Baghdasaryan Acked-by: Vlastimil Babka --- lib/alloc_tag.c | 1 + 1 file changed, 1 insertion(+) base-commit: 0434dbe32053d07d658165be681505120c6b1abc diff --git a/lib/alloc_tag.c b/lib/alloc_tag.c index 81e5f9a70f22..832f79a32b3e 100644 --- a/lib/alloc_tag.c +++ b/lib/alloc_tag.c @@ -15,6 +15,7 @@ EXPORT_SYMBOL(_shared_alloc_tag); DEFINE_STATIC_KEY_MAYBE(CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT, mem_alloc_profiling_key); +EXPORT_SYMBOL(mem_alloc_profiling_key); struct allocinfo_private { struct codetag_iterator iter;