Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp538306pxb; Mon, 7 Feb 2022 18:11:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwycOqLNkYlAPHlUUplhU3FBSzhxOMTMWLJeZS25syIgHMnKJbKtGEQiHPylo81OzQasqvf X-Received: by 2002:a17:906:4786:: with SMTP id cw6mr1886807ejc.69.1644286266281; Mon, 07 Feb 2022 18:11:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644286266; cv=none; d=google.com; s=arc-20160816; b=IkqnYfIBg207NGN5XMwLHqERBOGkEoZqeznNnMKa2ZYXGztcZdTHKk6n7q+q1FfEFp cOpPPNMRXfKVVryulOL+kWvm4QHlPHCeGcMj37Gqr20pOD4Bs/S1tn5tmotNNbMbJO9Y 8i02wWDio2jGAObGeM41JZAbR9kuvcvrecV3jaTFtIiaL8ixgy7HyN/zPbLjKA5p1shC 6DOt7gsdojru803aAbJXreNojQrq6P82bngM98DoSgyWm+XEjsXjZfPyWmByM/Nx86XM R2IuP60/x54v18A/A9Bh/0nl+yY3tvdnB9s6U192lAZ3aqP5uOJ6mk2iQU3lG1I6rIDk dy1g== 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=STukwnHLJ5JlQRTYdPROsCoSZDqNrbFLjrqiynzZIGo=; b=tZzRiBxK08Zukxc8Q1Ohi3XdXWsoUp2SUzQuTY6yjbY7gp0YAsK8EgxQX0qcC4PxPJ gAwKaprcB57ywjfHY0ymfsxOF557UvINFGzEHvSstADrgfqDxmsuN9vO/We7K1nEFOKc 67T9xT8GTlRSL6tRhxAoHlEs68qBj0/GUd+r9bwAKxuC+wE/WwFN6JyPdq9tDatAJTvz yh25H6dJJcDGh7sAldYoJO0elMcfxV4C3r8f6xEBq6N/Kuu8pRF8jr9q279HbULKsG0s ZC07Sk7BH4JlNebKAf4YvEZ2cL4OOxaMcPgBTLNBGhwm11Fvju9vf5pM6TXdfwCkHpyh kkmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=V1LxTssp; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id da22si4301444edb.566.2022.02.07.18.10.41; Mon, 07 Feb 2022 18:11:06 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=V1LxTssp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233488AbiBHBEg (ORCPT + 99 others); Mon, 7 Feb 2022 20:04:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245715AbiBGX2R (ORCPT ); Mon, 7 Feb 2022 18:28:17 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABBE6C061355 for ; Mon, 7 Feb 2022 15:28:16 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id cz16so15320580edb.8 for ; Mon, 07 Feb 2022 15:28:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=STukwnHLJ5JlQRTYdPROsCoSZDqNrbFLjrqiynzZIGo=; b=V1LxTsspX/2KvteenHDf18lalZxHNEVBq4cfehyDGPcEMldBsF1aN+NyubcTrnYnZP grCXV5UnY7xQB3Yf4Pbs77nsnZDwdkrh4g3rHHu7AFYi20uhNplepumFGBZa+phjsarp Y+z9CZ9nxLRzdcqOq80GxU85D0BQTw5NaiCUXxhE70ABGJiPv8slPFiW0XA3opcK4Pm+ eoUs+lyeDd6OabER4VzIqTzv7h5UKHhnYCrWzSYkpTZVdI3UmnsBi5tYnbgT5RpDTfyx yxRpg3fyXDz1likmSTgfNhK4gortG49lQ1p48V/9Kiq5qujXRLFoLg1Cfe4cdBCc/rPy mY8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=STukwnHLJ5JlQRTYdPROsCoSZDqNrbFLjrqiynzZIGo=; b=YfuqjpTUP6Y3Ds5MhEi/9pOICmzrPLnJ/Lg+xzAY7aL6gNjBBF0Ovh0iwL8e4eXTxD S9GpA4+NisTqB21DCdxFJdCcq2tCs5twBOlnCZpODtIC/HZkFD/jYPUgQvCB7AuuXMTR Jb91cOfk7ePe6DzVI+5upbLH2Ql22Vtq7u/HfNZ233cctbdvXoaEwrn0TxkNpvLnsV8l rnibPekGQrtIuUMQQN0MydBtRSyi5Iy/T4as+D79jj95nzSzSZ27/Og72lSUF5xjqqRG c2Eq8+fO1GgDUlEH1p/iuQrSFF8p5bElr9TbPDnQMqmCVxkPRAngeY/o+JS+hw6P6lYn sC3w== X-Gm-Message-State: AOAM532qmizyPS53z/nDa+0a7E9liCWYq45oj+6cEho0QuV3XUOIVJWQ 9+HjqLBYZPPsnerRHHd3SlM= X-Received: by 2002:aa7:dd15:: with SMTP id i21mr1759125edv.198.1644276495213; Mon, 07 Feb 2022 15:28:15 -0800 (PST) Received: from ubuntu-laptop.speedport.ip (p200300c58721e9801b2c6bc4bf3c75fd.dip0.t-ipconnect.de. [2003:c5:8721:e980:1b2c:6bc4:bf3c:75fd]) by smtp.gmail.com with ESMTPSA id j12sm1776765ejc.83.2022.02.07.15.28.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 15:28:14 -0800 (PST) From: Bean Huo To: kbusch@kernel.org, axboe@fb.com, hch@lst.de, sagi@grimberg.me, linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, beanhuo@micron.com Subject: [PATCH] nvme: add nvme_complete_req tracepoint for batched completion Date: Tue, 8 Feb 2022 00:28:06 +0100 Message-Id: <20220207232806.411801-1-huobean@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 From: Bean Huo Add NVMe request completion trace in nvme_complete_batch_req() because nvme:nvme_complete_req tracepoint is missing in case of request batched completion. Signed-off-by: Bean Huo --- drivers/nvme/host/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 5e0bfda04bd7..eaf0b18ff29e 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -368,6 +368,7 @@ EXPORT_SYMBOL_GPL(nvme_complete_rq); void nvme_complete_batch_req(struct request *req) { + trace_nvme_complete_rq(req); nvme_cleanup_cmd(req); nvme_end_req_zoned(req); } -- 2.25.1