[PATCH v2] PM: runtime: add tracepoint for runtime_status changes

2024-02-21 Thread Vilas Bhat
changes providing granular tracking of runtime power state transitions regardless of synchronous or asynchronous `rpm_suspend` / `rpm_resume` usage. Signed-off-by: Vilas Bhat --- V1 -> V2: Modified enum value definition as per reviewer comments. --- drivers/base/power/runtime.c | 1 + include/tr

Re: [PATCH v1] PM: runtime: add tracepoint for runtime_status changes

2024-02-21 Thread Vilas Bhat
On Wed, Feb 21, 2024 at 10:33 AM Steven Rostedt wrote: > > On Wed, 21 Feb 2024 09:57:03 -0800 > Vilas Bhat wrote: > > > > You could do what everyone else does: > > > > > > #define RPM_STATUS_STRINGS \ > > > EM( RPM_IN

Re: [PATCH v1] PM: runtime: add tracepoint for runtime_status changes

2024-02-21 Thread Vilas Bhat
On Wed, Feb 21, 2024 at 9:12 AM Steven Rostedt wrote: > > On Wed, 21 Feb 2024 16:41:10 +0000 > Vilas Bhat wrote: > > > > diff --git a/include/trace/events/rpm.h b/include/trace/events/rpm.h > > index 3c716214dab1..f1dc4e95dbce 100644 > > --- a/include/trace/eve

[PATCH v1] PM: runtime: add tracepoint for runtime_status changes

2024-02-21 Thread Vilas Bhat
changes providing granular tracking of runtime power state transitions regardless of synchronous or asynchronous `rpm_suspend` / `rpm_resume` usage. Signed-off-by: Vilas Bhat --- drivers/base/power/runtime.c | 1 + include/trace/events/rpm.h | 36 2 files