^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #undef TRACE_SYSTEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define TRACE_SYSTEM asoc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #if !defined(_TRACE_ASOC_H) || defined(TRACE_HEADER_MULTI_READ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #define _TRACE_ASOC_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #include <linux/ktime.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <linux/tracepoint.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define DAPM_DIRECT "(direct)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define DAPM_ARROW(dir) (((dir) == SND_SOC_DAPM_DIR_OUT) ? "->" : "<-")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct snd_soc_jack;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct snd_soc_card;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) struct snd_soc_dapm_widget;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct snd_soc_dapm_path;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) DECLARE_EVENT_CLASS(snd_soc_card,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) TP_PROTO(struct snd_soc_card *card, int val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) TP_ARGS(card, val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) __string( name, card->name )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) __field( int, val )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) __assign_str(name, card->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) __entry->val = val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) TP_printk("card=%s val=%d", __get_str(name), (int)__entry->val)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) DEFINE_EVENT(snd_soc_card, snd_soc_bias_level_start,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) TP_PROTO(struct snd_soc_card *card, int val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) TP_ARGS(card, val)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) DEFINE_EVENT(snd_soc_card, snd_soc_bias_level_done,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) TP_PROTO(struct snd_soc_card *card, int val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) TP_ARGS(card, val)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) DECLARE_EVENT_CLASS(snd_soc_dapm_basic,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) TP_PROTO(struct snd_soc_card *card),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) TP_ARGS(card),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) __string( name, card->name )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) __assign_str(name, card->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) TP_printk("card=%s", __get_str(name))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) DEFINE_EVENT(snd_soc_dapm_basic, snd_soc_dapm_start,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) TP_PROTO(struct snd_soc_card *card),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) TP_ARGS(card)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) DEFINE_EVENT(snd_soc_dapm_basic, snd_soc_dapm_done,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) TP_PROTO(struct snd_soc_card *card),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) TP_ARGS(card)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) DECLARE_EVENT_CLASS(snd_soc_dapm_widget,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) TP_PROTO(struct snd_soc_dapm_widget *w, int val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) TP_ARGS(w, val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) __string( name, w->name )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) __field( int, val )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) __assign_str(name, w->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) __entry->val = val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) TP_printk("widget=%s val=%d", __get_str(name),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) (int)__entry->val)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_power,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) TP_PROTO(struct snd_soc_dapm_widget *w, int val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) TP_ARGS(w, val)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_event_start,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) TP_PROTO(struct snd_soc_dapm_widget *w, int val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) TP_ARGS(w, val)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_event_done,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) TP_PROTO(struct snd_soc_dapm_widget *w, int val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) TP_ARGS(w, val)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) TRACE_EVENT(snd_soc_dapm_walk_done,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) TP_PROTO(struct snd_soc_card *card),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) TP_ARGS(card),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) __string( name, card->name )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) __field( int, power_checks )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) __field( int, path_checks )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) __field( int, neighbour_checks )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) __assign_str(name, card->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) __entry->power_checks = card->dapm_stats.power_checks;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) __entry->path_checks = card->dapm_stats.path_checks;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) __entry->neighbour_checks = card->dapm_stats.neighbour_checks;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) TP_printk("%s: checks %d power, %d path, %d neighbour",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) __get_str(name), (int)__entry->power_checks,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) (int)__entry->path_checks, (int)__entry->neighbour_checks)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) TRACE_EVENT(snd_soc_dapm_path,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) TP_PROTO(struct snd_soc_dapm_widget *widget,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) enum snd_soc_dapm_direction dir,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) struct snd_soc_dapm_path *path),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) TP_ARGS(widget, dir, path),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) __string( wname, widget->name )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) __string( pname, path->name ? path->name : DAPM_DIRECT)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) __string( pnname, path->node[dir]->name )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) __field( int, path_node )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) __field( int, path_connect )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) __field( int, path_dir )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) __assign_str(wname, widget->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) __assign_str(pname, path->name ? path->name : DAPM_DIRECT);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) __assign_str(pnname, path->node[dir]->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) __entry->path_connect = path->connect;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) __entry->path_node = (long)path->node[dir];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) __entry->path_dir = dir;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) TP_printk("%c%s %s %s %s %s",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) (int) __entry->path_node &&
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) (int) __entry->path_connect ? '*' : ' ',
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) __get_str(wname), DAPM_ARROW(__entry->path_dir),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) __get_str(pname), DAPM_ARROW(__entry->path_dir),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) __get_str(pnname))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) TRACE_EVENT(snd_soc_dapm_connected,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) TP_PROTO(int paths, int stream),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) TP_ARGS(paths, stream),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) __field( int, paths )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) __field( int, stream )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) __entry->paths = paths;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) __entry->stream = stream;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) TP_printk("%s: found %d paths",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) __entry->stream ? "capture" : "playback", __entry->paths)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) TRACE_EVENT(snd_soc_jack_irq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) TP_PROTO(const char *name),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) TP_ARGS(name),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) __string( name, name )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) __assign_str(name, name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) TP_printk("%s", __get_str(name))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) TRACE_EVENT(snd_soc_jack_report,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) TP_PROTO(struct snd_soc_jack *jack, int mask, int val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) TP_ARGS(jack, mask, val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) __string( name, jack->jack->id )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) __field( int, mask )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) __field( int, val )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) __assign_str(name, jack->jack->id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) __entry->mask = mask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) __entry->val = val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) TP_printk("jack=%s %x/%x", __get_str(name), (int)__entry->val,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) (int)__entry->mask)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) TRACE_EVENT(snd_soc_jack_notify,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) TP_PROTO(struct snd_soc_jack *jack, int val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) TP_ARGS(jack, val),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) __string( name, jack->jack->id )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) __field( int, val )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) __assign_str(name, jack->jack->id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) __entry->val = val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) ),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) TP_printk("jack=%s %x", __get_str(name), (int)__entry->val)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) #endif /* _TRACE_ASOC_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) /* This part must be outside protection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) #include <trace/define_trace.h>