xref: /OK3568_Linux_fs/kernel/drivers/hwtracing/stm/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunconfig STM
3*4882a593Smuzhiyun	tristate "System Trace Module devices"
4*4882a593Smuzhiyun	select CONFIGFS_FS
5*4882a593Smuzhiyun	select SRCU
6*4882a593Smuzhiyun	help
7*4882a593Smuzhiyun	  A System Trace Module (STM) is a device exporting data in System
8*4882a593Smuzhiyun	  Trace Protocol (STP) format as defined by MIPI STP standards.
9*4882a593Smuzhiyun	  Examples of such devices are Intel(R) Trace Hub and Coresight STM.
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun	  Say Y here to enable System Trace Module device support.
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunif STM
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunconfig STM_PROTO_BASIC
16*4882a593Smuzhiyun	tristate "Basic STM framing protocol driver"
17*4882a593Smuzhiyun	default CONFIG_STM
18*4882a593Smuzhiyun	help
19*4882a593Smuzhiyun	  This is a simple framing protocol for sending data over STM
20*4882a593Smuzhiyun	  devices. This was the protocol that the STM framework used
21*4882a593Smuzhiyun	  exclusively until the MIPI SyS-T support was added. Use this
22*4882a593Smuzhiyun	  driver for compatibility with your existing STM setup.
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun	  The receiving side only needs to be able to decode the MIPI
25*4882a593Smuzhiyun	  STP protocol in order to extract the data.
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun	  If you want to be able to use the basic protocol or want the
28*4882a593Smuzhiyun	  backwards compatibility for your existing setup, say Y.
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunconfig STM_PROTO_SYS_T
31*4882a593Smuzhiyun	tristate "MIPI SyS-T STM framing protocol driver"
32*4882a593Smuzhiyun	default CONFIG_STM
33*4882a593Smuzhiyun	help
34*4882a593Smuzhiyun	  This is an implementation of MIPI SyS-T protocol to be used
35*4882a593Smuzhiyun	  over the STP transport. In addition to the data payload, it
36*4882a593Smuzhiyun	  also carries additional metadata for time correlation, better
37*4882a593Smuzhiyun	  means of trace source identification, etc.
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun	  The receiving side must be able to decode this protocol in
40*4882a593Smuzhiyun	  addition to the MIPI STP, in order to extract the data.
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun	  If you don't know what this is, say N.
43*4882a593Smuzhiyun
44*4882a593Smuzhiyunconfig STM_DUMMY
45*4882a593Smuzhiyun	tristate "Dummy STM driver"
46*4882a593Smuzhiyun	help
47*4882a593Smuzhiyun	  This is a simple dummy device that pretends to be an stm device
48*4882a593Smuzhiyun	  and discards your data. Use for stm class testing.
49*4882a593Smuzhiyun
50*4882a593Smuzhiyun	  If you don't know what this is, say N.
51*4882a593Smuzhiyun
52*4882a593Smuzhiyunconfig STM_SOURCE_CONSOLE
53*4882a593Smuzhiyun	tristate "Kernel console over STM devices"
54*4882a593Smuzhiyun	help
55*4882a593Smuzhiyun	  This is a kernel space trace source that sends kernel log
56*4882a593Smuzhiyun	  messages to trace hosts over STM devices.
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun	  If you want to send kernel console messages over STM devices,
59*4882a593Smuzhiyun	  say Y.
60*4882a593Smuzhiyun
61*4882a593Smuzhiyunconfig STM_SOURCE_HEARTBEAT
62*4882a593Smuzhiyun	tristate "Heartbeat over STM devices"
63*4882a593Smuzhiyun	help
64*4882a593Smuzhiyun	  This is a kernel space trace source that sends periodic
65*4882a593Smuzhiyun	  heartbeat messages to trace hosts over STM devices. It is
66*4882a593Smuzhiyun	  also useful for testing stm class drivers and the stm class
67*4882a593Smuzhiyun	  framework itself.
68*4882a593Smuzhiyun
69*4882a593Smuzhiyun	  If you want to send heartbeat messages over STM devices,
70*4882a593Smuzhiyun	  say Y.
71*4882a593Smuzhiyun
72*4882a593Smuzhiyunconfig STM_SOURCE_FTRACE
73*4882a593Smuzhiyun	tristate "Copy the output from kernel Ftrace to STM engine"
74*4882a593Smuzhiyun	depends on TRACING
75*4882a593Smuzhiyun	help
76*4882a593Smuzhiyun	  This option can be used to copy the output from kernel Ftrace
77*4882a593Smuzhiyun	  to STM engine. Enabling this option will introduce a slight
78*4882a593Smuzhiyun	  timing effect.
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun	  If you want to send kernel Ftrace messages over STM devices,
81*4882a593Smuzhiyun	  say Y.
82*4882a593Smuzhiyun
83*4882a593Smuzhiyunendif
84