Re: [PATCH] soc: qcom: rpmh: Include resource name in the trace event
From: Bjorn Andersson
Date: Tue Sep 19 2023 - 15:14:48 EST
On Fri, Jul 07, 2023 at 05:57:13PM +0530, Manivannan Sadhasivam wrote:
> The client drivers of RPMh like rpmhpd and bcm-voter has the name of the
> resource they are dealing with along with the address. So let's include
> the resource name in the RPMh trace event as it avoids doing a post
> processing of the trace event to resolve the resource name its address.
>
Instead of extending the generic client API to pass the strings in (not
all clients are captured in this patch either), can't we do something
like dumping cmd-db into a trace_print_flags array during initialization
and use __print_symbolic() in TP_printk?
Although...for VRMs we probably want sym+<offset> in the output, so
__print_symbolic() isn't a perfect match...
Regards,
Bjorn