aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/stm/p_basic.c
diff options
context:
space:
mode:
authorMikhail Lappo <[email protected]>2024-04-29 13:01:07 +0000
committerGreg Kroah-Hartman <[email protected]>2024-05-04 16:57:21 +0000
commitee27f44e1592d849cb90b1f1c38cae0c7e32defa (patch)
tree325f48694079618d7344856c87a08d5db67d7526 /drivers/hwtracing/stm/p_basic.c
parentstm class: Add source type (diff)
downloadkernel-ee27f44e1592d849cb90b1f1c38cae0c7e32defa.tar.gz
kernel-ee27f44e1592d849cb90b1f1c38cae0c7e32defa.zip
stm class: Propagate source type to protocols
Pass stm source type via stm_write() to allow different handling on protocol level. The measure above should allow protocol level encoder to differentiate and accordingly pack the messages. As an example SyS-T might get use of ftrace message ID's and instead of applying regular header, pack them as SyS-T catalog or SyS-T Structured Binary Data message to allow proper decoding on the other side. Signed-off-by: Mikhail Lappo <[email protected]> Signed-off-by: Alexander Shishkin <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/hwtracing/stm/p_basic.c')
-rw-r--r--drivers/hwtracing/stm/p_basic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwtracing/stm/p_basic.c b/drivers/hwtracing/stm/p_basic.c
index 8980a6a5fd6c..5525c975cc6f 100644
--- a/drivers/hwtracing/stm/p_basic.c
+++ b/drivers/hwtracing/stm/p_basic.c
@@ -10,7 +10,8 @@
#include "stm.h"
static ssize_t basic_write(struct stm_data *data, struct stm_output *output,
- unsigned int chan, const char *buf, size_t count)
+ unsigned int chan, const char *buf, size_t count,
+ struct stm_source_data *source)
{
unsigned int c = output->channel + chan;
unsigned int m = output->master;