Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp144972rwb; Wed, 10 Aug 2022 16:37:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR6sDXwL2k1uH5z7nIXPp/EPABZf2oV+/rKlL+gkskbghD1cLzn3r2uOMwYKWey9A2mixT5j X-Received: by 2002:a17:907:7da0:b0:734:9bc0:6203 with SMTP id oz32-20020a1709077da000b007349bc06203mr415238ejc.637.1660174661580; Wed, 10 Aug 2022 16:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660174661; cv=none; d=google.com; s=arc-20160816; b=VEW4wZ20Zl1kUF4lKYVb+e3HKRHPxJbtG7ft4KNUYNH369yAD3IkIc7/aEUAdGmtbp IRL9xyc8os5h3a8h22b/3J/1N+JKa5oHazkrwwy7+27zDu0tZs68ndL84uOMojPfMnS5 rPRGFTzwKM2WyycgHTHkhbO29Nb575exKYlKm0Y10+YnNjzdSGJBaOsKmkVOiIML5X12 kxSP77svYSTuHTUmITbdvj5/duI13FXi22Gsv5ZBmkf/FSIzTQCy7wpeBbzZAryGkbmR HmnuTLQBlwu+8r6+T/qHtSIb1jilezuWjhrtR6wI/UmT46Jb9m6Uduj8ClkNs6DlehnK kX2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XIdpOQq44WwBDrfcT18lSv7b7H/On0t6NSVFCJoXbes=; b=pn28Ge06gYNzlwsXxtQRWCzNVRxESkhqa/Pv/fIkL15ThqAkG7SUfn9Sbn0TWe3z7Q F48vVel6kCIaZc59KjAuIifPlh7egD66Mmyy6f5PIrHdXbhpJg8TUPol503KJ+MM3Wbi gLFi2xASEvhJMWw2mdtkUAQ/sz/bXsX4ebVYA3QpgTMFjZwYG14UG2ZDJqeBMjCF3wbL 4pd24p7HttEqcMawBsmol8HrbJuNn0FDKjtaT+P0JcLYZlR8hySmA/omxfacr0+qVzn1 yO4G2DhP4gqr203Zbs8YCylxxNZPQAWb8d7/O8xf2kanrfEpH+5CA1JNQt+5lN3RiZGY 4HRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=mQcRRBoL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn11-20020a1709070d0b00b007306064f323si626839ejc.531.2022.08.10.16.37.16; Wed, 10 Aug 2022 16:37:41 -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=@163.com header.s=s110527 header.b=mQcRRBoL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232315AbiHJXcd (ORCPT + 99 others); Wed, 10 Aug 2022 19:32:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiHJXc3 (ORCPT ); Wed, 10 Aug 2022 19:32:29 -0400 Received: from m12-16.163.com (m12-16.163.com [220.181.12.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 52F487FE6B; Wed, 10 Aug 2022 16:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=XIdpO Qq44WwBDrfcT18lSv7b7H/On0t6NSVFCJoXbes=; b=mQcRRBoLt+b8XkGoggg2d aBudR+RH0JF6aKb6yeDX3whtMyrTwIW/OJrPu5StBz4x6yGe0SxUChG/I/bP39iG Lhy2QEV+u6zz84vRPy9dFKZF03sn7hBvPUhCwkZzCs4/CN6ZivXlMZfSESwg5bwP nLAmlBfI1qEr24MBgjnZXA= Received: from localhost.localdomain (unknown [113.87.232.118]) by smtp12 (Coremail) with SMTP id EMCowACn0zlvP_Ri7Nf3Fw--.60811S4; Thu, 11 Aug 2022 07:30:03 +0800 (CST) From: Chen Lin To: ioana.ciornei@nxp.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, yi.liu@nxp.com, Chen Lin , Chen Lin Subject: [PATCH] dpaa2-eth: trace the allocated address instead of page struct Date: Thu, 11 Aug 2022 07:29:48 +0800 Message-Id: <20220810232948.40636-1-chen45464546@163.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: EMCowACn0zlvP_Ri7Nf3Fw--.60811S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrtw1DJFyDKF1UKF4kAFWUJwb_yoWDJFc_ur nrXr17JF4jkFyFya1Fkr45Xa4v9r47Zr48AF1SgFW3G347Ar1rJw1kA34xArZ5ur4SkF9x Jw17Aa43J3s3JjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRAtxhPUUUUU== X-Originating-IP: [113.87.232.118] X-CM-SenderInfo: hfkh0kqvuwkkiuw6il2tof0z/xtbBdhtZnmDkoNZ6JAAAsG X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Follow the commit 27c874867c4(dpaa2-eth: Use a single page per Rx buffer), we should trace the allocated address instead of page struct. Signed-off-by: Chen Lin --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c index cd9ec8052..75d515726 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c @@ -1660,8 +1660,8 @@ static int dpaa2_eth_add_bufs(struct dpaa2_eth_priv *priv, buf_array[i] = addr; /* tracing point */ - trace_dpaa2_eth_buf_seed(priv->net_dev, - page, DPAA2_ETH_RX_BUF_RAW_SIZE, + trace_dpaa2_eth_buf_seed(priv->net_dev, page_address(page), + DPAA2_ETH_RX_BUF_RAW_SIZE, addr, priv->rx_buf_size, bpid); } -- 2.25.1