diff options
author | Bard Liao <yung-chuan.liao@linux.intel.com> | 2022-09-19 15:21:02 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-19 17:44:03 +0300 |
commit | fa6e73d69193d0ba3b794f7c303beae498732f40 (patch) | |
tree | f004763a364812c7184ee39741fc525ebdf52363 /sound/soc/sof/core.c | |
parent | 12e51866c79fe37faed276442f4b0dfd9f2dc174 (diff) | |
download | linux-fa6e73d69193d0ba3b794f7c303beae498732f40.tar.xz |
ASoC: SOF: add widget setup/free tracing
Enables tracking of use_count during widget setup and free routines.
Useful for debugging unbalanced use_counts during suspend/resume.
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Noah Klayman <noah.klayman@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220919122108.43764-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/core.c')
-rw-r--r-- | sound/soc/sof/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sof/core.c b/sound/soc/sof/core.c index c99b5e6c026c..3e6141d03770 100644 --- a/sound/soc/sof/core.c +++ b/sound/soc/sof/core.c @@ -15,6 +15,9 @@ #include "sof-priv.h" #include "ops.h" +#define CREATE_TRACE_POINTS +#include <trace/events/sof.h> + /* see SOF_DBG_ flags */ static int sof_core_debug = IS_ENABLED(CONFIG_SND_SOC_SOF_DEBUG_ENABLE_FIRMWARE_TRACE); module_param_named(sof_debug, sof_core_debug, int, 0444); |