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