diff options
author | M Chetan Kumar <m.chetan.kumar@linux.intel.com> | 2021-11-20 21:51:55 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-22 13:23:08 +0000 |
commit | 00ef32565b9bd03c63ed944bc27878fbbc1c4e0a (patch) | |
tree | 8005f0dd0a7164b49ddb8d0c4618ca7f739a8abd /drivers/net/wwan/iosm/iosm_ipc_imem.h | |
parent | c4804670026b93f4ebddda30af89fd737bf93931 (diff) | |
download | linux-00ef32565b9bd03c63ed944bc27878fbbc1c4e0a.tar.gz linux-00ef32565b9bd03c63ed944bc27878fbbc1c4e0a.tar.bz2 linux-00ef32565b9bd03c63ed944bc27878fbbc1c4e0a.zip |
net: wwan: iosm: device trace collection using relayfs
This patch brings in support for device trace collection.
It implements relayfs interface for pushing device trace
from kernel space to user space.
Driver gets the debugfs base directory associated to WWAN
Device and creates trace_control and trace debugfs for
device tracing. Both trace_control & trace debugfs are
created under /sys/kernel/debug/wwan/wwan0/.
In order to collect device trace on trace0 interface, user
need to write 1 to trace_ctl interface.
Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_imem.h')
-rw-r--r-- | drivers/net/wwan/iosm/iosm_ipc_imem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wwan/iosm/iosm_ipc_imem.h b/drivers/net/wwan/iosm/iosm_ipc_imem.h index 6be6708b4eec..cec38009c44a 100644 --- a/drivers/net/wwan/iosm/iosm_ipc_imem.h +++ b/drivers/net/wwan/iosm/iosm_ipc_imem.h @@ -304,6 +304,7 @@ enum ipc_phase { * @sio: IPC SIO data structure pointer * @ipc_port: IPC PORT data structure pointer * @pcie: IPC PCIe + * @trace: IPC trace data structure pointer * @dev: Pointer to device structure * @ipc_requested_state: Expected IPC state on CP. * @channels: Channel list with UL/DL pipe pairs. @@ -349,6 +350,7 @@ struct iosm_imem { struct iosm_mux *mux; struct iosm_cdev *ipc_port[IPC_MEM_MAX_CHANNELS]; struct iosm_pcie *pcie; + struct iosm_trace *trace; struct device *dev; enum ipc_mem_device_ipc_state ipc_requested_state; struct ipc_mem_channel channels[IPC_MEM_MAX_CHANNELS]; |