X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Finstrumentation%2Fevents%2Fasoc.h;fp=include%2Finstrumentation%2Fevents%2Fasoc.h;h=f6b2c76ea40a4c3d116cd87da202644f817ff983;hb=303434ab80e94caead73bc2102b7e68cb1ff4d27;hp=a6b3d566dffb8477de1dcec193507d2b087a8479;hpb=88c4e0fe2a361640bf9e90d30faf249322737cd3;p=lttng-modules.git diff --git a/include/instrumentation/events/asoc.h b/include/instrumentation/events/asoc.h index a6b3d566..f6b2c76e 100644 --- a/include/instrumentation/events/asoc.h +++ b/include/instrumentation/events/asoc.h @@ -10,6 +10,7 @@ #include #define DAPM_DIRECT "(direct)" +#define DAPM_COMPONENT_NONE "(none)" #ifndef _TRACE_ASOC_DEF #define _TRACE_ASOC_DEF @@ -119,6 +120,40 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_preg, snd_soc_preg_read, ) #endif +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,9,0)) +LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_dapm_context, + + TP_PROTO(struct snd_soc_dapm_context *dapm, int val), + + TP_ARGS(dapm, val), + + TP_FIELDS( + ctf_string(name, dapm->card->name) + ctf_string(component, dapm->component ? dapm->component->name : DAPM_COMPONENT_NONE) + ctf_integer(int, val, val) + ) +) + +LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_dapm_context, snd_soc_bias_level_start, + + asoc_snd_soc_bias_level_start, + + TP_PROTO(struct snd_soc_dapm_context *dapm, int val), + + TP_ARGS(dapm, val) + +) + +LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_dapm_context, snd_soc_bias_level_done, + + asoc_snd_soc_bias_level_done, + + TP_PROTO(struct snd_soc_dapm_context *dapm, int val), + + TP_ARGS(dapm, val) + +) +#else LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_card, TP_PROTO(struct snd_soc_card *card, int val), @@ -150,6 +185,7 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_card, snd_soc_bias_level_done, TP_ARGS(card, val) ) +#endif #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,9,0)) LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_dapm_basic,