]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: debug: add new debugfs entries for IPC flood test
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 3 Jun 2019 16:18:20 +0000 (11:18 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 3 Jun 2019 17:59:07 +0000 (18:59 +0100)
commit6b8202764934b7fa7f47cf7d48f36ddf38dabbb8
treed5d6cf8bbee3aab79d727fc908b66f288734099d
parent696dd021dd018f38f27efa7855051b8096c0f33b
ASoC: SOF: debug: add new debugfs entries for IPC flood test

Add a couple of new debugfs entries "ipc_flood_count"
and "ipc_flood_duration_ms" that can be used to
execute the IPC flood test. "ipc_flood_count" floods the DSP
with the number of test IPCs specified and ipc_flood_duration_ms
floods the DSP with test IPC's for the duration(in ms) specified.
The test stats such as average, min and max IPC response times
are logged in the dmesg and saved in the debugfs entry cache buffer.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/Kconfig
sound/soc/sof/debug.c
sound/soc/sof/sof-priv.h