bus: mhi: host: Add tracing support
authorKrishna chaitanya chundru <quic_krichai@quicinc.com>
Tue, 6 Feb 2024 04:32:05 +0000 (10:02 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 6 Feb 2024 06:24:44 +0000 (11:54 +0530)
commitceeb64f41fe6a1eb9fc56d583983a81f8f3dd058
tree2996ffc3dd13b855d160c98229c25060a521aa25
parentae1d892d518af5c092f2b1f8e6921996c6a95cb3
bus: mhi: host: Add tracing support

This change adds ftrace support for following functions which
helps in debugging the issues when there is Channel state & MHI
state change and also when we receive data and control events:
1. mhi_intvec_mhi_states
2. mhi_process_data_event_ring
3. mhi_process_ctrl_ev_ring
4. mhi_gen_tre
5. mhi_update_channel_state
6. mhi_tryset_pm_state
7. mhi_pm_st_worker

Change the implementation of the arrays which has enum to strings mapping
to make it consistent in both trace header file and other files.

Where ever the trace events are added, debug messages are removed.

Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20240206-ftrace_support-v11-1-3f71dc187544@quicinc.com
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/common.h
drivers/bus/mhi/host/init.c
drivers/bus/mhi/host/internal.h
drivers/bus/mhi/host/main.c
drivers/bus/mhi/host/pm.c
drivers/bus/mhi/host/trace.h [new file with mode: 0644]