[alsa-devel] [PATCH RFC 05/21] ALSA: pcm: enable parameter tracepoints at CONFIG_SND_DEBUG only
Takashi Sakamoto
o-takashi at sakamocchi.jp
Sun May 14 10:57:40 CEST 2017
In a previous commit, tracepoints are added for PCM parameter processing.
As long as I know, this implementation increases size of relocatable
object by 135%. For vendors who are conscious of memory footprint, it
brings apparent disadvantage.
This commit uses CONFIG_SND_DEBUG option to enable/disable the
tracepoints.
Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>
---
sound/core/pcm_native.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 5a2703e..3fd2a63 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -37,7 +37,9 @@
#include <sound/minors.h>
#include <linux/uio.h>
+#ifdef CONFIG_SND_DEBUG
#define CREATE_TRACE_POINTS
+#endif
#include "pcm_params_trace.h"
/*
--
2.9.3
More information about the Alsa-devel
mailing list