[lttng-dev] [PATCH lttng-modules 1/6] Fix: ASoC level IO tracing removed upstream

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Mon Jun 18 15:29:42 EDT 2018


Patches 1-6 merged into master,
Patches 1-4, 6 merged into stable-2.10,

Thanks!

Mathieu

----- On Jun 18, 2018, at 2:53 PM, Michael Jeanson mjeanson at efficios.com wrote:

> Removed in v3.16.
> 
> See upstream commits:
> 
>  Author: Lars-Peter Clausen <lars at metafoo.de>
>  Date:   Tue Apr 22 13:23:17 2014 +0200
> 
>    ASoC: Remove ASoC level IO tracing
> 
>    The ASoC framework is in the process of migrating all IO operations to regmap.
>    regmap has its own more sophisticated tracing infrastructure for IO operations,
>    which means that the ASoC level IO tracing becomes redundant, hence this patch
>    removes them. There are still a handful of ASoC drivers left that do not use
>    regmap yet, but hopefully the removal of the ASoC IO tracing will be an
>    additional incentive to switch to regmap.
> 
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> instrumentation/events/lttng-module/asoc.h | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/instrumentation/events/lttng-module/asoc.h
> b/instrumentation/events/lttng-module/asoc.h
> index 25136ec..7eee035 100644
> --- a/instrumentation/events/lttng-module/asoc.h
> +++ b/instrumentation/events/lttng-module/asoc.h
> @@ -14,7 +14,8 @@
> #define _TRACE_ASOC_DEF
> struct snd_soc_jack;
> struct snd_soc_codec;
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0) && \
> +	LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0))
> struct snd_soc_platform;
> #endif
> struct snd_soc_card;
> @@ -30,6 +31,7 @@ struct snd_soc_dapm_widget;
> #define CODEC_ID_FIELD id
> #endif
> 
> +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0))
> /*
>  * Log register events
>  */
> @@ -69,8 +71,10 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_reg,
> snd_soc_reg_read,
> 	TP_ARGS(codec, reg, val)
> 
> )
> +#endif
> 
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0) && \
> +	LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0))
> LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_preg,
> 
> 	TP_PROTO(struct snd_soc_platform *platform, unsigned int reg,
> --
> 2.17.1

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list