summaryrefslogtreecommitdiff
path: root/drivers/hwtracing/stm/stm.h
diff options
context:
space:
mode:
authorMikhail Lappo <miklelappo@gmail.com>2024-04-29 16:01:07 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-04 18:57:21 +0200
commitee27f44e1592d849cb90b1f1c38cae0c7e32defa (patch)
tree325f48694079618d7344856c87a08d5db67d7526 /drivers/hwtracing/stm/stm.h
parent07cf835689d700d46d88b5bbffc32bc210319f5f (diff)
downloadlinux-ee27f44e1592d849cb90b1f1c38cae0c7e32defa.tar.gz
linux-ee27f44e1592d849cb90b1f1c38cae0c7e32defa.tar.bz2
linux-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 <miklelappo@gmail.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20240429130119.1518073-4-alexander.shishkin@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing/stm/stm.h')
-rw-r--r--drivers/hwtracing/stm/stm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/stm/stm.h b/drivers/hwtracing/stm/stm.h
index a9be49fc7a6b..85dda6e0d10c 100644
--- a/drivers/hwtracing/stm/stm.h
+++ b/drivers/hwtracing/stm/stm.h
@@ -96,7 +96,7 @@ struct stm_protocol_driver {
const char *name;
ssize_t (*write)(struct stm_data *data,
struct stm_output *output, unsigned int chan,
- const char *buf, size_t count);
+ const char *buf, size_t count, struct stm_source_data *source);
void (*policy_node_init)(void *arg);
int (*output_open)(void *priv, struct stm_output *output);
void (*output_close)(struct stm_output *output);