Re: [PATCH v9] bus: mhi: host: Add tracing support

From: Krishna Chaitanya Chundru
Date: Tue Jan 30 2024 - 20:53:15 EST




On 1/30/2024 11:56 PM, Manivannan Sadhasivam wrote:
On Tue, Jan 30, 2024 at 09:22:52AM -0500, Steven Rostedt wrote:
On Tue, 30 Jan 2024 13:41:52 +0530
Manivannan Sadhasivam <mani@xxxxxxxxxx> wrote:

So same trace will get printed for both mhi_channel_command_start() and
mhi_channel_command_end()?

The trace output will also include the tracepoint name. That is, it will
have the same content but will be preceded with:

mhi_channel_command_start: ...
mhi_channel_command_end: ...


Yes, but the message will be the same:

mhi_channel_command_start: chan%d: Updating state to:
mhi_channel_command_end: chan%d: Updating state to:

Either only one of the trace should be present or the second one should print,
"mhi_channel_command_end: chan%d: Updated state to:"

- Mani

I will try to pass a string to updated for mhi_channel_command_end &
updating for mhi_channel_command_start in my next patch.

- Krishna Chaitanya.