]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: trace: Add runtime trace filtering mechanism
authorKarol Trzcinski <karolx.trzcinski@linux.intel.com>
Fri, 4 Dec 2020 16:50:14 +0000 (18:50 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 7 Dec 2020 14:22:05 +0000 (14:22 +0000)
commit643fd7df53ef8928b55e5d0733f36e9aa6a3f78b
treef420e39f73297ab709df7d0a8e8ef27daba7ed34
parentb7f5b083e0a3f96fc2f1676ba734928d0927d2b4
ASoC: SOF: trace: Add runtime trace filtering mechanism

The "filter" debugfs file defines the log levels used by
the firmware and reported by sof-logger.

The file contains the formatted entry list, where each entry
follows the following syntax in plain text:
log_level uuid_id pipe_id comp_id;

This file may be updated by userspace applications such sof-logger,
or directly by the user during debugging process.

An unused (wildcard) pipe_id or comp_id value should be set to -1,
uuid_id is hexadecimal value, so when unused then should be set to 0.

When the file is modified, an IPC command is sent to FW with new
trace levels for selected components in filter elements list.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20201204165014.2697903-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sof/header.h
include/sound/sof/trace.h
sound/soc/sof/trace.c