From: "Liu, Changcheng" <changcheng.liu@intel.com>
To: broonie@opensource.wolfsonmicro.com, rostedt@goodmis.org,
mingo@redhat.com
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
changcheng.liu@intel.com
Subject: [PATCH v2 2/2] ASoC: trace: track dapm type in snd_soc_dapm_widget
Date: Thu, 9 Aug 2018 10:57:03 +0800 [thread overview]
Message-ID: <20180809025703.GF161967@sofia> (raw)
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 <changcheng.liu@intel.com>
diff --git a/include/trace/events/asoc.h b/include/trace/events/asoc.h
index bf17edc..7c4e8de 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 = (int)w->id;
__entry->val = val;
),
- TP_printk("widget=%s val=%d", __get_str(name),
- __entry->val)
+ TP_printk("widget=%s dapm_id=%d val=%d", __get_str(name),
+ __entry->id, __entry->val)
);
DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_power,
--
2.7.4
reply other threads:[~2018-08-09 2:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180809025703.GF161967@sofia \
--to=changcheng.liu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox