Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3492113pxu; Tue, 8 Dec 2020 13:33:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxC8IpgoPeo8PGK0LZrjRkQ1ptYJO3g47xHtaxC5YeQlTVXY8yhzrjbzqgUrEkmMhSTfPts X-Received: by 2002:a17:906:358e:: with SMTP id o14mr24108752ejb.526.1607463231085; Tue, 08 Dec 2020 13:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607463231; cv=none; d=google.com; s=arc-20160816; b=SrFzKLDDcvOd55mx2fzdiZfke9Ueb5SInf0rqtMLg1dvvUKhN73pkaU/z8jsjBYTAr L+uYiqQqXqnkZ3MGYaGkakWK920y8LK2YC1pcOrYngcXKojkPAWUT/Owkk8Houcbo6p5 x3m4BuqDwegeDS61y34ccFwGNKIl7XLHyDrW6zD1XQ4v/ojBVUqKAlsjdHOTn1zvku2p XfOkDrCxwiZ00iDAIglNe86DmKhsEA/vNg3sChIeqVrUJTzQVsOk9bfhCI2WUwsCtvTl oLdP0d1q6jmV4Ea5qXPzeLhXdmOFyIk2TR1R9FuUJSNq8b6BrIwrUaQB6tQKJQe9PId4 jtfg== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=MM65uySM3WXetJR81qISn55UyWapPuFerPV8cOsCP3Y=; b=mjX6DPBX9AL/ZQPym1v/flnE1wLd1u9zsmRlLT1SyQyBrbOb2v8XfwgTtwDSoqjjw+ 5BYcvYg658fHg4RL/uX7aAmI2uDhLntW/yMtxmVB4Z622gcEu4ZRtJ1aB/xsY7yQBCOe NZYwGJEdBIi0BjeIgnbwVDB7N+xzO+kCnMoyhf3UtkPWvfhEQ5YamR8q4hd+C9vQHq1B rKgxY3LrR/Ym5gq6ay91T3uC2nzNRxIOE3vtigSDMcZZoUYhM01Rw3e76vNyCkvrQGiz 3LhnhpMjRfrfnXLx27ouOX8s8qQHtXaXRWa9osl1169YdW3hic9Pwv1Va4XN0OT8+i57 I38A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cHeJ70V6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb9si10874702edb.436.2020.12.08.13.33.28; Tue, 08 Dec 2020 13:33:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cHeJ70V6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729010AbgLHVbM (ORCPT + 99 others); Tue, 8 Dec 2020 16:31:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727872AbgLHVbL (ORCPT ); Tue, 8 Dec 2020 16:31:11 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60F6AC0613CF; Tue, 8 Dec 2020 13:30:31 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id m19so26677006ejj.11; Tue, 08 Dec 2020 13:30:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=MM65uySM3WXetJR81qISn55UyWapPuFerPV8cOsCP3Y=; b=cHeJ70V64ZHJ4xM4opuM/N0V7rL6IS4EcQ2CN80+bzY8Dk2st7ZezednvLPv0kZnBB 9vK8gzF8tf6cL8nTqHoYsSH4DBnibqno/S7tWFruok40FfppcmxsZEJ9I6B9TwrE6KEr sStWLHxwaZUgQg4g8qQIgORa3sZrZuaLDf/ozjJrQZl+8KnMqIDW42ORgoSY7ogVVD8e 87eUIawqVE4cKEBIRsSrG36WJJTnnB0u2yi0eUJNFMbTVpnAgcJqq4C0jbIifHWldkzf DwaSddQJTa/rCz3Sqyiv/oJ8E4hCxod9OSzWWCA8pp2SOc9mV/NfILOoQavCe+k//Sxl tUwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=MM65uySM3WXetJR81qISn55UyWapPuFerPV8cOsCP3Y=; b=Kcw2lkXUpQjxcUDrZI+DJ27fLfr9GRnP0jHstni9uLyoEayQQpWgbdonL0rG4oBpap ge7WRFY3Nez8Xx+l4tkHFXZC8eKVfygFWXNfjM5sBnZVCf21vbZF8wcGpn9G9ModZ7cr 6t84S77etpk/OIt1Ls9MRozBVgZG9y1T8BJp+voDPoFK0IuFTFANNOPeQ3oquANNlMka 1JEGhvaOeQST4LZDAwfogD/MWBPF2tCEWXG312HmWnP0SnMpJbAJ4HfyN9ZdVPaQqExR OvBVWB/cdTIPGyRHjM25Y4zo1J7GIpk8RRcj66eb5ym8cQGS3vgP287ZbaYohFxB1YY8 6Ntg== X-Gm-Message-State: AOAM5308bCJUXY9B0hiBGJBKDrPJVPPK8Ui7g+k92LmkaCIPXe3AnsUu hiE0DV3ylLVtWd38kqwwmDI= X-Received: by 2002:a17:906:ca47:: with SMTP id jx7mr25907646ejb.237.1607463030132; Tue, 08 Dec 2020 13:30:30 -0800 (PST) Received: from ubuntu-laptop (ip5f5bfce9.dynamic.kabel-deutschland.de. [95.91.252.233]) by smtp.googlemail.com with ESMTPSA id j5sm46682edl.42.2020.12.08.13.30.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 Dec 2020 13:30:29 -0800 (PST) Message-ID: <4fd0591ce84684448e3f7720321f0c90eb3dccba.camel@gmail.com> Subject: Re: [PATCH v1 1/3] scsi: ufs: Distinguish between query REQ and query RSP in query trace From: Bean Huo To: Steven Rostedt Cc: alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, bvanassche@acm.org, tomas.winkler@intel.com, cang@codeaurora.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 08 Dec 2020 22:30:28 +0100 In-Reply-To: <20201207102126.66d8e4f7@gandalf.local.home> References: <20201206164226.6595-1-huobean@gmail.com> <20201206164226.6595-2-huobean@gmail.com> <20201207102126.66d8e4f7@gandalf.local.home> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-12-07 at 10:21 -0500, Steven Rostedt wrote: > > @@ -321,9 +321,15 @@ static void ufshcd_add_cmd_upiu_trace(struct > > ufs_hba *hba, unsigned int tag, > > static void ufshcd_add_query_upiu_trace(struct ufs_hba *hba, > > unsigned int tag, > > const char *str) > > { > > - struct utp_upiu_req *rq = hba->lrb[tag].ucd_req_ptr; > > + struct utp_upiu_req *rq_rsp; > > + > > I would add: > > if (!trace_ufshcd_upiu_enabled()) > return; > > Why do the work if the trace point is not enabled? > > -- Steve Steve, Thanks a lot, I will fix it in the next version. Thanks, Bean