Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2788382rwd; Fri, 9 Jun 2023 17:33:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6UNtFYh62ogqHBajZZfJcCFxKN+DNh81u1xzYVdmktfGe9+mb8nqKfaGw873ERYG2rAb4T X-Received: by 2002:a05:6a21:168f:b0:10c:ef9f:ddbd with SMTP id np15-20020a056a21168f00b0010cef9fddbdmr2388169pzb.8.1686357199953; Fri, 09 Jun 2023 17:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686357199; cv=none; d=google.com; s=arc-20160816; b=eY2PwvHkSxqWFzuDrIx1Mp6Tgh3qtlcf77FCYiOZmjHkPsqAhNGBiuVvLv5tVuiLTP PLgvd8TmLcRlJ9rGoixc7qQMCD4eGuL0Gi4iLo3HW1xCwmU+B7sH3N2Xv3xiKVXc7VO2 bD14ZRgacmR1TG531xKD+qOH1SNjdRO3dY0CoOzAGtrhl0mgRuMneNggkWxa8rU5/vvE oY84WivKMcrFyj51DtpglvVZPiaeSoTFNC+eZ0QeNwb4AGVfkxIAY6dXerqA4vd9MX+g 3+yq9d9aKBCYMGZEaXR44W/ylK/8a21xL3vQfThfNbKtiik97YpxATCd6Wpy1oJEmE7C G7iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HZvL0AVSKR7jJKndT6J3KioN2BGrycG/XhYHqz3bYec=; b=XpVtIA3HB75WyJ6ZJUx09Auy51Civ+qZNIgOjSJuk8GqDZq88zOfoNVxDCsYPJkNpd aa8XOws1WF3YB5TGaqQVCNoB1JF4RRFfyrc1NmXFkCbNsd4Ul5vDhNXIDSwl4YHZRZPO SBTlX1PkeFBrRHBArXjXKeuccqA8wFZcAAQseCKYyvaLanvxxl+ZKHxSoFmURVA3hC6e Ny55PgUP+LfTAyYgtpv+gQec73k2tqwBo2aq5Ssg1Lp/qY98Bt7OjOY7LbUCJ97uuFZE e7aEuzQ7FeHWVphzd7cjP2pXgr/zlhlCfgIX2WuR1kL9gieCqEm/uHb6/6CkmQT7Jal9 Qfbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=M6n17cdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e28-20020a63371c000000b0053481e4c743si3485469pga.171.2023.06.09.17.33.07; Fri, 09 Jun 2023 17:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=M6n17cdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232210AbjFJAWL (ORCPT + 99 others); Fri, 9 Jun 2023 20:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjFJAWJ (ORCPT ); Fri, 9 Jun 2023 20:22:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E317E19BB; Fri, 9 Jun 2023 17:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=HZvL0AVSKR7jJKndT6J3KioN2BGrycG/XhYHqz3bYec=; b=M6n17cdFh94bT5xy9wq13Tp++S ukuZPpcYNni11peN4ClYCLcJJff98KTuzsW19AaE2yvT6/8QspesVQdXqWw22/d6H7CyTwXKrKnRN /wo4IuJoeCztNzeMnJGFkVaTpl3ZGmKiEpSe6OLnM/NwQP1fhVUHhzarPtb6q61ZZIV85BK1Hzx97 y7vW8TSon9XNJ7J5L2c3Go7foU7ZK9arvzKdtNFF3Voqm6aTuFXrdBXO4t0pFYwrSePOAfIqzInsZ VI3WTMSK5Tb4z4prXJ1IMU5OCyzJY9JsdxPq9o4fCQJHrAI3gZ2zyNrk5hjLeiDYkAk+UxiqxKinj QoDPvgCA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1q7mMc-00HHo0-KZ; Sat, 10 Jun 2023 00:21:54 +0000 Date: Sat, 10 Jun 2023 01:21:54 +0100 From: Matthew Wilcox To: Wei-chin Tsai =?utf-8?B?KOiUoee2reaZiSk=?= Cc: "linux@armlinux.org.uk" , "linux-kernel@vger.kernel.org" , Mel Lee =?utf-8?B?KOadjuWlh+mMmik=?= , "linux-mediatek@lists.infradead.org" , wsd_upstream , "linux-arm-kernel@lists.infradead.org" , "linux-fsdevel@vger.kernel.org" , "matthias.bgg@gmail.com" , Ivan Tseng =?utf-8?B?KOabvuW/l+i7kik=?= , "angelogioacchino.delregno@collabora.com" Subject: Re: [PATCH v1 1/1] memory: export symbols for process memory related functions Message-ID: References: <20230609110902.13799-1-Wei-chin.Tsai@mediatek.com> <5cc76704214673cf03376d9f10f61325b9ed323f.camel@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5cc76704214673cf03376d9f10f61325b9ed323f.camel@mediatek.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 09, 2023 at 04:09:01PM +0000, Wei-chin Tsai (蔡維晉) wrote: > > You haven't included any users of these new exports, so the initial > > reaction is going to be negative - please include the users of these > > new symbols in your patch set. > We use these two export functions from our kernel module to get a > specific user process's memory information and heap usage. Furthermore, > we can use such information to detect the memory leak issues. > > The example code is as follows: No. You need to be submitting the code that will use the symbol *at the same time* as the patch to export the symbol. No example code showing how it could be used. Because if the user isn't compelling, the patch to export the symbol won't be applied either.