From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7DA2C2BB85 for ; Thu, 9 Apr 2020 19:36:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7A07821473 for ; Thu, 9 Apr 2020 19:36:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="tBx8aRUw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7A07821473 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 0FBCF8E000E; Thu, 9 Apr 2020 15:36:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0ACD68E0003; Thu, 9 Apr 2020 15:36:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F04278E000E; Thu, 9 Apr 2020 15:36:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0250.hostedemail.com [216.40.44.250]) by kanga.kvack.org (Postfix) with ESMTP id E111B8E0003 for ; Thu, 9 Apr 2020 15:36:02 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 04D5D181AEF3E for ; Thu, 9 Apr 2020 19:36:01 +0000 (UTC) X-FDA: 76689322164.18.sky94_8be9e57e8aa15 X-HE-Tag: sky94_8be9e57e8aa15 X-Filterd-Recvd-Size: 3587 Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by imf19.hostedemail.com (Postfix) with ESMTP for ; Thu, 9 Apr 2020 19:36:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 9AB86280F66; Thu, 9 Apr 2020 15:36:00 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 5bU-wLzZK8f4; Thu, 9 Apr 2020 15:36:00 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id A0F8C280AF0; Thu, 9 Apr 2020 15:35:59 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com A0F8C280AF0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1586460959; bh=dS2j/RfoCvb6S/7DuXu9SUgFlAK346t8v78OVR21ay0=; h=From:To:Date:Message-Id; b=tBx8aRUw0PewCktQArATxmKEQoI8Hxs24WB5p4gBw8M0c920y4wKP8Xgd+pH6h+Qd n8NulPyTFwH8IiiXuA7pqtW3jNtnMxSv7G0K41BZSGRC9gcFS2qyS+XOgdXs2u8vx6 Frgjs2ZCIPSo21ZjPgmfbI0l8BPFCaU4yXC37Sxt/q6LQVZzvmYALzL3wBKV3Ibpdj 5sW7Uilj9zSxtAWzhcVvKaWQ4LJBmucAuURlA/J8CUA+4Og426j3NHDFbNXtTlLlkL 6ej3KGMNcCUfEcFulkGchFBIYrAMrlEmSQh+CjzAXnA00No8G8bKfQVnQZBfChIm9N E4QPnlnC03sFA== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id W2aLUYIx0DZj; Thu, 9 Apr 2020 15:35:59 -0400 (EDT) Received: from localhost.localdomain (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) by mail.efficios.com (Postfix) with ESMTPSA id F290D280F5C; Thu, 9 Apr 2020 15:35:58 -0400 (EDT) From: Mathieu Desnoyers To: Thomas Gleixner , Will Deacon , akpm@linux-foundation.org, Greg Kroah-Hartman , "K . Prasad" , Masami Hiramatsu , rostedt@goodmis.org, Alexei Starovoitov Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , linux-mm@kvack.org Subject: [RFC PATCH 6/9] mm: export-GPL get_pageblock_migratetype Date: Thu, 9 Apr 2020 15:35:40 -0400 Message-Id: <20200409193543.18115-7-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200409193543.18115-1-mathieu.desnoyers@efficios.com> References: <20200409193543.18115-1-mathieu.desnoyers@efficios.com> 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: The macro include/linux/mmzone.h:get_pageblock_migratetype() uses the symbol get_pfnblock_flags_mask, which is not exported. That macro is used within the kmem and page_ref trace events to trace the migrate type of the target page. Exporting this symbol to GPL modules allows GPL kernel tracers to be implemented as modules. Signed-off-by: Mathieu Desnoyers Cc: Andrew Morton Cc: Thomas Gleixner Cc: linux-mm@kvack.org --- mm/page_alloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 114c56c3685d..390febb028a0 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -501,6 +501,7 @@ unsigned long get_pfnblock_flags_mask(struct page *page, unsigned long pfn, { return __get_pfnblock_flags_mask(page, pfn, end_bitidx, mask); } +EXPORT_SYMBOL_GPL(get_pfnblock_flags_mask); static __always_inline int get_pfnblock_migratetype(struct page *page, unsigned long pfn) { -- 2.17.1