aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/asoc.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-21 13:19:14 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-22 12:24:40 -0400
commite56235e099d7290a2331b984a79f75bbe0865fe8 (patch)
tree7fdd1e4603b12a56502242f32e02c1d97fe23231 /include/trace/events/asoc.h
parent7aefb086c15fc44066e705e479d012d46476d8c5 (diff)
ASoC: Add another DAPM stat for neighbour checks
The number of times we look at a potentially connected neighbour is just as important as the number of times we actually recurse into looking at that neighbour so also collect that statistic. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/trace/events/asoc.h')
-rw-r--r--include/trace/events/asoc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/trace/events/asoc.h b/include/trace/events/asoc.h
index 2e1adf62e0a8..ab26f8aa3c78 100644
--- a/include/trace/events/asoc.h
+++ b/include/trace/events/asoc.h
@@ -226,16 +226,19 @@ TRACE_EVENT(snd_soc_dapm_walk_done,
226 __string( name, card->name ) 226 __string( name, card->name )
227 __field( int, power_checks ) 227 __field( int, power_checks )
228 __field( int, path_checks ) 228 __field( int, path_checks )
229 __field( int, neighbour_checks )
229 ), 230 ),
230 231
231 TP_fast_assign( 232 TP_fast_assign(
232 __assign_str(name, card->name); 233 __assign_str(name, card->name);
233 __entry->power_checks = card->dapm_stats.power_checks; 234 __entry->power_checks = card->dapm_stats.power_checks;
234 __entry->path_checks = card->dapm_stats.path_checks; 235 __entry->path_checks = card->dapm_stats.path_checks;
236 __entry->neighbour_checks = card->dapm_stats.neighbour_checks;
235 ), 237 ),
236 238
237 TP_printk("%s: %d power checks, %d path checks", __get_str(name), 239 TP_printk("%s: checks %d power, %d path, %d neighbour",
238 (int)__entry->power_checks, (int)__entry->path_checks) 240 __get_str(name), (int)__entry->power_checks,
241 (int)__entry->path_checks, (int)__entry->neighbour_checks)
239); 242);
240 243
241TRACE_EVENT(snd_soc_jack_irq, 244TRACE_EVENT(snd_soc_jack_irq,