summaryrefslogtreecommitdiffstats
path: root/include/trace/events/asoc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/events/asoc.h')
-rw-r--r--include/trace/events/asoc.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/trace/events/asoc.h b/include/trace/events/asoc.h
index 603f5a0f036..2e1adf62e0a 100644
--- a/include/trace/events/asoc.h
+++ b/include/trace/events/asoc.h
@@ -216,6 +216,28 @@ DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_event_done,
);
+TRACE_EVENT(snd_soc_dapm_walk_done,
+
+ TP_PROTO(struct snd_soc_card *card),
+
+ TP_ARGS(card),
+
+ TP_STRUCT__entry(
+ __string( name, card->name )
+ __field( int, power_checks )
+ __field( int, path_checks )
+ ),
+
+ TP_fast_assign(
+ __assign_str(name, card->name);
+ __entry->power_checks = card->dapm_stats.power_checks;
+ __entry->path_checks = card->dapm_stats.path_checks;
+ ),
+
+ TP_printk("%s: %d power checks, %d path checks", __get_str(name),
+ (int)__entry->power_checks, (int)__entry->path_checks)
+);
+
TRACE_EVENT(snd_soc_jack_irq,
TP_PROTO(const char *name),