xref: /openbmc/linux/drivers/hwtracing/stm/Kconfig (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
27bd1d409SAlexander Shishkinconfig STM
37bd1d409SAlexander Shishkin	tristate "System Trace Module devices"
41c090575SAlexander Shishkin	select CONFIGFS_FS
57bd1d409SAlexander Shishkin	help
67bd1d409SAlexander Shishkin	  A System Trace Module (STM) is a device exporting data in System
77bd1d409SAlexander Shishkin	  Trace Protocol (STP) format as defined by MIPI STP standards.
87bd1d409SAlexander Shishkin	  Examples of such devices are Intel(R) Trace Hub and Coresight STM.
97bd1d409SAlexander Shishkin
107bd1d409SAlexander Shishkin	  Say Y here to enable System Trace Module device support.
112c415381SAlexander Shishkin
124a2e2b19SGeert Uytterhoevenif STM
134a2e2b19SGeert Uytterhoeven
14a02509f3SAlexander Shishkinconfig STM_PROTO_BASIC
15a02509f3SAlexander Shishkin	tristate "Basic STM framing protocol driver"
16a02509f3SAlexander Shishkin	default CONFIG_STM
17a02509f3SAlexander Shishkin	help
18a02509f3SAlexander Shishkin	  This is a simple framing protocol for sending data over STM
19a02509f3SAlexander Shishkin	  devices. This was the protocol that the STM framework used
20a02509f3SAlexander Shishkin	  exclusively until the MIPI SyS-T support was added. Use this
21a02509f3SAlexander Shishkin	  driver for compatibility with your existing STM setup.
22a02509f3SAlexander Shishkin
23a02509f3SAlexander Shishkin	  The receiving side only needs to be able to decode the MIPI
24a02509f3SAlexander Shishkin	  STP protocol in order to extract the data.
25a02509f3SAlexander Shishkin
26a02509f3SAlexander Shishkin	  If you want to be able to use the basic protocol or want the
27a02509f3SAlexander Shishkin	  backwards compatibility for your existing setup, say Y.
28a02509f3SAlexander Shishkin
29d69d5e83SAlexander Shishkinconfig STM_PROTO_SYS_T
30d69d5e83SAlexander Shishkin	tristate "MIPI SyS-T STM framing protocol driver"
31d69d5e83SAlexander Shishkin	default CONFIG_STM
32d69d5e83SAlexander Shishkin	help
33d69d5e83SAlexander Shishkin	  This is an implementation of MIPI SyS-T protocol to be used
34d69d5e83SAlexander Shishkin	  over the STP transport. In addition to the data payload, it
35d69d5e83SAlexander Shishkin	  also carries additional metadata for time correlation, better
36d69d5e83SAlexander Shishkin	  means of trace source identification, etc.
37d69d5e83SAlexander Shishkin
38d69d5e83SAlexander Shishkin	  The receiving side must be able to decode this protocol in
39d69d5e83SAlexander Shishkin	  addition to the MIPI STP, in order to extract the data.
40d69d5e83SAlexander Shishkin
41d69d5e83SAlexander Shishkin	  If you don't know what this is, say N.
42d69d5e83SAlexander Shishkin
432c415381SAlexander Shishkinconfig STM_DUMMY
442c415381SAlexander Shishkin	tristate "Dummy STM driver"
452c415381SAlexander Shishkin	help
462c415381SAlexander Shishkin	  This is a simple dummy device that pretends to be an stm device
472c415381SAlexander Shishkin	  and discards your data. Use for stm class testing.
482c415381SAlexander Shishkin
492c415381SAlexander Shishkin	  If you don't know what this is, say N.
50e3e5a3d3SAlexander Shishkin
51e3e5a3d3SAlexander Shishkinconfig STM_SOURCE_CONSOLE
52e3e5a3d3SAlexander Shishkin	tristate "Kernel console over STM devices"
53e3e5a3d3SAlexander Shishkin	help
54e3e5a3d3SAlexander Shishkin	  This is a kernel space trace source that sends kernel log
55e3e5a3d3SAlexander Shishkin	  messages to trace hosts over STM devices.
56e3e5a3d3SAlexander Shishkin
57e3e5a3d3SAlexander Shishkin	  If you want to send kernel console messages over STM devices,
58e3e5a3d3SAlexander Shishkin	  say Y.
594a2e2b19SGeert Uytterhoeven
6011929185SAlexander Shishkinconfig STM_SOURCE_HEARTBEAT
6111929185SAlexander Shishkin	tristate "Heartbeat over STM devices"
6211929185SAlexander Shishkin	help
6311929185SAlexander Shishkin	  This is a kernel space trace source that sends periodic
6411929185SAlexander Shishkin	  heartbeat messages to trace hosts over STM devices. It is
6511929185SAlexander Shishkin	  also useful for testing stm class drivers and the stm class
6611929185SAlexander Shishkin	  framework itself.
6711929185SAlexander Shishkin
6811929185SAlexander Shishkin	  If you want to send heartbeat messages over STM devices,
6911929185SAlexander Shishkin	  say Y.
7011929185SAlexander Shishkin
71262e1f6eSChunyan Zhangconfig STM_SOURCE_FTRACE
72262e1f6eSChunyan Zhang	tristate "Copy the output from kernel Ftrace to STM engine"
73*7b9749bdSTingwei Zhang	depends on TRACING
74262e1f6eSChunyan Zhang	help
75262e1f6eSChunyan Zhang	  This option can be used to copy the output from kernel Ftrace
76262e1f6eSChunyan Zhang	  to STM engine. Enabling this option will introduce a slight
77262e1f6eSChunyan Zhang	  timing effect.
78262e1f6eSChunyan Zhang
79262e1f6eSChunyan Zhang	  If you want to send kernel Ftrace messages over STM devices,
80262e1f6eSChunyan Zhang	  say Y.
81262e1f6eSChunyan Zhang
824a2e2b19SGeert Uytterhoevenendif
83