Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp776580imm; Wed, 8 Aug 2018 05:42:08 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw7mHPCvjlbpcbEkLeAp+gfgcUNxFYzHcVG877J+88fWSbCrIVzYbN9yQqh8Ai5d2kXoam+ X-Received: by 2002:a63:ef54:: with SMTP id c20-v6mr2419715pgk.368.1533732128321; Wed, 08 Aug 2018 05:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533732128; cv=none; d=google.com; s=arc-20160816; b=msKx1Jj3iLyHcq8yAF4dzEclo+7Us1LR8rW1elQnDvudDQFv6Dfwoe/h3nrWXTQwIn SjMlkBJtaST1tJa2dPH8HzW0Z98H2lsERZ/X+e8s6l+ih27maiooESgWv1mnS69YR1om cCrs/OQuLYjvCiBAqRXB03qh8tsHwJs7S8fzExnsZSPIKowYx5FL48az4rnh2wg38V7m fUsgk5QyoIgJV0ifGFRGz/RFeTHM0lbnnojnBApEk6Zbho2GNYjirdTlug0lYNapqqCI hAu/OtJGyVqVqgLFTKkKoekIvsWJ4iYu4FOO2JE8Jai3ekiYWTpLtAEFgquqQAf5OjNZ +A9g== 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=d7xfngaTL+dGQ03GT1PQzevp1CWCKFEpZaLnNdh0w7U=; b=tlK6rvbvaDmeNfBzA4i7Y2QtNUJWDm0eKvIll/PPY+YgqkEDesYYo77+Mg9liZT2bC hO4SZFT53cU23pu22hChCBt689HPR5OyQHH+JI9SuPxwptjbUUWMc8IoYEWVKu2b8Ral tQPywDBm6voCLZlJ5rtqWa7HFpdD2XJRBuPMbt6I2AsN3Jx2sP7dpGz5eGDNQzxO9rK/ iqer5Tz0qfv5pZbvVVjyadOBWgJOLxBjpXdxr1h6gOG6AwGfuEmD0UhgwbydeEZ/SCmZ L4nj2VZD3wg3MWMSTXxYQeJmM8CvFfXN+6k5t+PR6HrfM36C7veC499RZChdLfhCS0Pi 3h8g== 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 j19-v6si3997574pgg.313.2018.08.08.05.41.54; Wed, 08 Aug 2018 05:42:08 -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 S1727109AbeHHPAK (ORCPT + 99 others); Wed, 8 Aug 2018 11:00:10 -0400 Received: from mga06.intel.com ([134.134.136.31]:19078 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbeHHPAK (ORCPT ); Wed, 8 Aug 2018 11:00:10 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2018 05:40:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,457,1526367600"; d="scan'208";a="222943267" Received: from sofia.sh.intel.com (HELO sofia) ([10.239.147.112]) by orsmga004.jf.intel.com with ESMTP; 08 Aug 2018 05:40:12 -0700 Date: Wed, 8 Aug 2018 20:39:22 +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: <20180808123921.GA145536@sofia> References: <20180808092927.GA144203@sofia> <20180808082412.20f7bd92@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180808082412.20f7bd92@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 On 08:24 Wed 08 Aug, Steven Rostedt wrote: > On Wed, 8 Aug 2018 17:29:27 +0800 > "Liu, Changcheng" wrote: > > > Track snd_soc_dapm_widget:id which is used as dapm > > sequence index in dapm_down_seq/dapm_up_seq. It's > > useful for checking dapm seq after tracking it. > > > > Signed-off-by: Liu Changcheng > > > > diff --git a/include/trace/events/asoc.h b/include/trace/events/asoc.h > > index 40c300f..0bc935b 100644 > > --- a/include/trace/events/asoc.h > > +++ b/include/trace/events/asoc.h > > @@ -92,16 +92,18 @@ DECLARE_EVENT_CLASS(snd_soc_dapm_widget, > > > > TP_STRUCT__entry( > > __string( name, w->name ) > > + __field( int, id ) > > __field( int, val ) > > ), > > > > TP_fast_assign( > > __assign_str(name, w->name); > > + __entry->id = w->id; > > __entry->val = val; > > ), > > > > - 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? -- Changcheng > > > ); > > > > DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_power, >