stm class: Add source type
authorMikhail Lappo <miklelappo@gmail.com>
Mon, 29 Apr 2024 13:01:06 +0000 (16:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 May 2024 16:57:21 +0000 (18:57 +0200)
commit07cf835689d700d46d88b5bbffc32bc210319f5f
tree7b1fe88ce5cf4d1fc5c896dd5f04149947e68efb
parent3df463865ba42b8f88a590326f4c9ea17a1ce459
stm class: Add source type

Currently kernel HW tracing infrastrtucture and specifically its SyS-T
part treats all source data in the same way. Treating and encoding
different trace data sources differently might allow decoding software
to make use of e.g. ftrace event ids by converting them to a SyS-T
message catalog.

The solution is to keep source type stored within stm_source_data
structure to allow different handling by stm output/protocol.
Currently we only differentiate between STM_USER and STM_FTRACE sources.

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-3-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/stm/console.c
drivers/hwtracing/stm/ftrace.c
drivers/hwtracing/stm/heartbeat.c
include/linux/stm.h