mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 18:12:26 -04:00
ASoC: SOF: Add memory_info file to debugfs
This file content describes memory allocation status at run-time, typically to detect memory leaks. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20201124180017.2232128-5-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
6dd958955d
commit
5b10b62989
@@ -290,6 +290,7 @@ enum sof_debugfs_access_type {
|
||||
/* FS entry for debug files that can expose DSP memories, registers */
|
||||
struct snd_sof_dfsentry {
|
||||
size_t size;
|
||||
size_t buf_data_size; /* length of buffered data for file read operation */
|
||||
enum sof_dfsentry_type type;
|
||||
/*
|
||||
* access_type specifies if the
|
||||
@@ -523,6 +524,7 @@ void snd_sof_get_status(struct snd_sof_dev *sdev, u32 panic_code,
|
||||
void *stack, size_t stack_words);
|
||||
int snd_sof_init_trace_ipc(struct snd_sof_dev *sdev);
|
||||
void snd_sof_handle_fw_exception(struct snd_sof_dev *sdev);
|
||||
int snd_sof_dbg_memory_info_init(struct snd_sof_dev *sdev);
|
||||
|
||||
/*
|
||||
* Platform specific ops.
|
||||
|
||||
Reference in New Issue
Block a user