Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp795007imm; Wed, 8 Aug 2018 06:01:18 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwQgagJEH8FSuZJ1ZsRal8TlMSNBC+JP92TWOXP/JjbEzNrhgKOBbdC93oOSD7ZqqXwOxpg X-Received: by 2002:a63:c14a:: with SMTP id p10-v6mr2540561pgi.305.1533733277957; Wed, 08 Aug 2018 06:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533733277; cv=none; d=google.com; s=arc-20160816; b=dmlgURMWNKdngY46ib/5ZlF19Wzp4sZTIBQIUbu+NENK9v3UlO6/otEaw7YatDI2Uc CPk/mgNucW1eoEHeTlwcsPM3SfO2pGnM4Qs4I6agPEpf/LxCvptZorZCrxNc2n+A/Y7A z6jH1rcIu29mbuf1jZE6hcdQ38pz2UoCp0KJdQ0K2y0UPuh5q7MlCh4VDhJJ985u1sWb j2IvrpRbf8U7S8HDJVdhElTmkVD1JRvCfePBgWqugL0laiMbRHUeEnne0y9bwGRfwTli sAZc/fqtO3haRSGyYF8iW/ThN8+ADZ86WFdv3lPZkv69EOBlpGvQF878pX742aSRi8fU LHOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=58pV9m70i3skozLmAC1sp9wf5OfAfU37GHVyFqK889g=; b=NQ4L8Ij0dToNQiDxf1NUkpCKzzKZj8C3FNHedVvYZYq9BYlk3sZm5RbA2UBassc/a9 ILaPyJcl/K5MmQKxtwMO2sVDYqqw1WUnIIrvE2jggeOATqo4v8rEfYq4mP+Zi8WNr8PF DZBnC4m5hxLjTYSqtU6kgTZov7Up4Yp52SglaPc/Sl4gG9wvPptsrMdNGBpEQywJgVMN A62Va5GwIxWndvzBEcY22DlB8w9sWVws5m29Zui7MJ7bxQTwsd0EjdyoZW/IQrnDqMZX sctzfqGU+7EQag6QJecZCDYRfcOHBNOF3/E6X08guCVcCoMqrsEtgIaOUDqvTGVIt13l J4xQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15-v6si3103533plr.470.2018.08.08.06.01.02; Wed, 08 Aug 2018 06:01:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727109AbeHHPTt (ORCPT + 99 others); Wed, 8 Aug 2018 11:19:49 -0400 Received: from mga12.intel.com ([192.55.52.136]:22281 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726971AbeHHPTs (ORCPT ); Wed, 8 Aug 2018 11:19:48 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2018 06:00:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,457,1526367600"; d="scan'208";a="63290458" Received: from sofia.sh.intel.com (HELO sofia) ([10.239.147.112]) by orsmga007.jf.intel.com with ESMTP; 08 Aug 2018 06:00:11 -0700 Date: Wed, 8 Aug 2018 20:59:21 +0800 From: "Liu, Changcheng" To: Steven Rostedt Cc: broonie@opensource.wolfsonmicro.com, mingo@redhat.com, linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH] ASoC: trace: track dapm type in snd_soc_dapm_widget Message-ID: <20180808125921.GA145678@sofia> References: <20180808092927.GA144203@sofia> <20180808082412.20f7bd92@gandalf.local.home> <20180808123921.GA145536@sofia> <20180808085301.2b0617c6@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180808085301.2b0617c6@gandalf.local.home> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Steven for the suggestion. I'll write two patches. One is for cleaning the format issue. The other is for tracking the dapm up/down sequence in trace events. B.R. Changcheng On 08:53 Wed 08 Aug, Steven Rostedt wrote: > On Wed, 8 Aug 2018 20:39:22 +0800 > "Liu, Changcheng" wrote: > > > > > - TP_printk("widget=%s val=%d", __get_str(name), > > > > - (int)__entry->val) > > > > + TP_printk("widget=%s dapm_id=%d val=%d", __get_str(name), > > > > + (int)__entry->id, (int)__entry->val) > > > > > > Not sure why it was there before, but the (int) typecast isn't needed > > > in either case. __field(int, val) makes __entry->val of type int. Same > > > for id. > > > > > > -- Steve > > > > @Steve: This patch aims at tracking the dapm up/down sequence. For the > > (int) typecast format problem, what do you think of using another > > seperate patch to resolve it? > > Yeah, I was just commenting on that as a general comment. It doesn't > affect the actual patch, which I don't see anything wrong with it from > a tracing point of view. > > I agree the typecast removal should be done in a separate clean-up > patch. > > -- Steve