Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2929747pxu; Mon, 14 Dec 2020 14:41:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/NT3pVXCGDdo5OaUoM7S0SE53/IPRXqMV9RvE12mPvcwpTATOad/jEjpNPEYFq6+DxMJn X-Received: by 2002:a17:907:2111:: with SMTP id qn17mr23714558ejb.525.1607985709468; Mon, 14 Dec 2020 14:41:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607985709; cv=none; d=google.com; s=arc-20160816; b=kImlnYQt/OkVCbmDJrDBWGVcLdgmSlv4svZju8wsp0lEeBAhLmxcrWHKOhT9aXuLWI eozw4lxvsw7UiF3hx3ws7ELXaoXvGHbHEjg8OTGtqXzTuCWNUD1hP7TIXJnoUBxlf/mZ aBVd2XOjTINuaYzWx1uHQqd1UCu5oPTew4BWrUUOyf145NpWE6OQ3cynS+nndoBcOKeX LeRCej0Pv3HqItFa1PUt+jC5fWiy8PsI0jJxBxmpJWuNzHRRwU/AoPcjqj34qa/Db3Rj 9/eLrtOoP2PZlb2zPfnciZeEAXoCm6AjKREjyMEtR/OrKIqlPYcgWkRnRi9xkwQkoorT xNbA== 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=Re4a9ic6X/qC8lw0qDnD/+52GEZaZivwedL28Be9r2Y=; b=L8UDqEen5gZMz+lYE5s1B9pFC6OYpUgQlM8fuKgCBWNDzo3icUzUGZHRllq34WHYOz JOf9FLmZGeHTTusKWzlWzUNzdGU5rqqOL3IgV18GC9fUUc3OmzPDIz7z3e0wbdOsEqlS /ds7n7GAXHbUMqY/KY40J2fxWnmJqRCSIPIzcY+zdgBxBT6/tbYFzcoH1Jc0xi0OSkNs J2rVJvLN8aGDQC+9bkgkbV98NjimHtD3nhu8gqhOjBYQJS5XmHbyU0Wo2TyAphgG81lq WbDDB0ef0mGxuZk+d0V1lgx44itOt1ONBeHSnAVmmnTv45vx6E5MiummovmNnQ/feVOl XIhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=awVQa3kI; 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 c1si11102287edk.605.2020.12.14.14.41.26; Mon, 14 Dec 2020 14:41:49 -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=awVQa3kI; 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 S2441174AbgLNWiN (ORCPT + 99 others); Mon, 14 Dec 2020 17:38:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441091AbgLNWiN (ORCPT ); Mon, 14 Dec 2020 17:38:13 -0500 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F15AEC0613D3; Mon, 14 Dec 2020 14:37:32 -0800 (PST) Received: by mail-ej1-x641.google.com with SMTP id j22so6871903eja.13; Mon, 14 Dec 2020 14:37:32 -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=Re4a9ic6X/qC8lw0qDnD/+52GEZaZivwedL28Be9r2Y=; b=awVQa3kIBFg3XgQ3iLiQoHd85wN1hZNmnRqSKJPr5nFQTqPc25ZijKUOeo/u8bm+Q6 DJdDqUj8ULg6Zm1XBRfkG+WNh8+6bj1HPvUJJOYomwhsm4+aldPmzX9fm/9V6TNX6fUe SJsQiArzxHu93na/vvaWCmnsHylEvimCJECib2/v9jskzJ4pgc2oFY6ixFoyg65bHeGU 1Vow9HTwBXK9QzhDo7y8miHxyxwNpHOZSEH2OkBGQoptzF0arjo7agQsEISmYnrg5nR/ bk1Evt9h4bE3jqDgRPz2habnVAyWK4oIl2nkN6Xwtb5WEFmR/XnFstxcTfSQ2VeKjd4D Owmg== 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=Re4a9ic6X/qC8lw0qDnD/+52GEZaZivwedL28Be9r2Y=; b=UDY0U+7YKEqF0bCwJpOuGs1rF2DDdlsAq7VfC1AAbOKUoZpLGaRvVEOdByKdGeBpj7 7KL0qYJQC9kDCLI7+kQD/HLGcx9YrKgU0bJqCdd/TZxrHnMPD/l4kcP+pCO1Ef36C4j6 X5O3PxOAnwN/plzFwyc32Y5G/zGBF7GOxDG9OCW/rhug5gSbdmPB5dOHoAbrkm6hRxU8 /y6BPRLwJSzQS6p42LQnC18hvSSIPg8iDO4DoJ//LOYj6aeVzMuJ+SFVao8NCTN3EQAz wQS+tElVpU3v96xIRFaaQcvWpo9madpqRBAw0MYOyPzr7D4kqhmripLCmacBVAU0GPpm rdTw== X-Gm-Message-State: AOAM5328Q2YRXg9BxNqq1wgbflptFadtarJIoJTCYYe99Na3OphAR82P FcmFy09vhuci5c1tlONx5io= X-Received: by 2002:a17:906:705:: with SMTP id y5mr10714139ejb.428.1607985451743; Mon, 14 Dec 2020 14:37:31 -0800 (PST) Received: from ubuntu-laptop (ip5f5bfce9.dynamic.kabel-deutschland.de. [95.91.252.233]) by smtp.googlemail.com with ESMTPSA id be6sm16569654edb.29.2020.12.14.14.37.30 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Dec 2020 14:37:31 -0800 (PST) Message-ID: <01a4472065034527d57b0866750eb4ecc79b6a83.camel@gmail.com> Subject: Re: [PATCH v3 0/6] Several changes for the UPIU trace From: Bean Huo To: Avri Altman , "alim.akhtar@samsung.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" , "rostedt@goodmis.org" , "joe@perches.com" Cc: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Mon, 14 Dec 2020 23:37:30 +0100 In-Reply-To: References: <20201214202014.13835-1-huobean@gmail.com> 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-14 at 22:13 +0000, Avri Altman wrote: > Bean Hi, > I support this series. > I think it is a good idea to print the response on complete, > But you need to change the prefix strings, otherwise you are breaking > the current parsers. > > Say that you have a trace log, generated sometime during 2020 using > the current upiu trace. > It would look something like: > "send" > "complete" > > And another log generated sometime during 2021 after your change is > merged: > "send" > "complete" < ****response upiu ****> > > The current parser won't be able to differentiate between those logs. > Just change the prefix strings to be "send_req" and "complete_rsp", > or something, > so the parsing tools that support the new format will be able to > differentiate it from the old one. Avri, I still don't understand, this change doesn't break you current parser. if you still trace "send", "complete", "CDB", "query_send/complte", they are still there, doesn't change. I suggest you just run on your system. see if there is conflict. Regarding your suggestion: This is not problem now, we just change this definition. do you mean just "send" and "complete" or all? #define UFS_CMD_TRACE_STRINGS \ EM(UFS_CMD_SEND, "send_req") \ EM(UFS_CMD_COMP, "complete_rsp") \ below also need add "req" and "rsp"? EM(UFS_DEV_COMP, "dev_complete_rsp") \ EM(UFS_QUERY_SEND, "query_send") \ EM(UFS_QUERY_COMP, "query_complete") \ EM(UFS_QUERY_ERR, "query_complete_err") \ EM(UFS_TM_SEND, "tm_send") \ EM(UFS_TM_COMP, "tm_complete") \ EM(UFS_TM_ERR, "tm_complete_err") > > Also, once the parser can differentiate the new format from the old, > whatever follows its fine: cdb / osf / tsf or whatever makes sense to > you. > > Thanks, > Avri