Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp760315imm; Wed, 8 Aug 2018 05:25:27 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzC8tJOC4SXivwGHn7LzKPBom74iRDZ2Qeoxpi0eNiQ3LI5QXT+6dRE3RY/dmTQvikkO7x2 X-Received: by 2002:a62:c4c3:: with SMTP id h64-v6mr2717441pfk.39.1533731127193; Wed, 08 Aug 2018 05:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533731127; cv=none; d=google.com; s=arc-20160816; b=tQuhK30eWYAYkuGJxIopSzgtjc9rUvaNFS2prDt/GsS4q3KcM0SA09jLAPVC9qXx6l 541jjavb05bo0ActCn/MVwaKxIcIq88MmE6XwkAOhgp00r5oO8nM/dl221FozZ5nzF07 l+GSFBMt9oYhcz4dhG3MHJh3BVAdJrR9dt57zMBpkb8LBWmTN0iaGyhY8XR2TccNGy7m AsKAbR7JQoMb35Hkhx4FoHqOxnmarv+a1rXzMTicQrUk5LO7SXd/gmA7+G3iH5dfYVf4 afGuyzZvVmDwKk+c1irjLtRf3sqXya/5aFyn7iL3AFsJUaZUT/kzSoYJ/azyQusYG53F Fzww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=t169YBhOfT2HNjE5dz69JfKCZjJaB1KFi13Ay37J1mQ=; b=sbtzEfM9a3wijFkiN/gl+IsDEOr0E7nw72QBBXknIQguVetMVb3Q5c13TlQc1qMOWP FfYe8QFDe3Ix7rls4AZIiSTqtkJDmOlHLbO4O8lXmq4weudk7og33in9c7m5TU2qPhsv qAPqyqa46P+URnpPYJZhZ6B3ZSwzOs6WM2KC4Nmmbgwhl7sFt4Xv9g/qrnSsQoDNc3Rh XGPy9GJfHP0jNYK/6MWV8enhXF089whCn/3mkwhhz8xt3w5uxXYFavf5I4RPGh3XuAeJ 8H40oCFb0SSV+ik1HQel/6n6MPMsKk77zxs3k/pg4Q81Dxrpe4IuBvFpeXU3onBFa5/e OXjQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1-v6si3175045plb.348.2018.08.08.05.25.12; Wed, 08 Aug 2018 05:25:27 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726957AbeHHOnm (ORCPT + 99 others); Wed, 8 Aug 2018 10:43:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:59120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbeHHOnm (ORCPT ); Wed, 8 Aug 2018 10:43:42 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 86ABC21992; Wed, 8 Aug 2018 12:24:14 +0000 (UTC) Date: Wed, 8 Aug 2018 08:24:12 -0400 From: Steven Rostedt To: "Liu, Changcheng" Cc: broonie@opensource.wolfsonmicro.com, Ingo Molnar , linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH] ASoC: trace: track dapm type in snd_soc_dapm_widget Message-ID: <20180808082412.20f7bd92@gandalf.local.home> In-Reply-To: <20180808092927.GA144203@sofia> References: <20180808092927.GA144203@sofia> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > ); > > DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_power,