]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpuidle: psci: Add trace for PSCI domain idle
authorKeita Morisaki <keyz@google.com>
Mon, 10 Feb 2025 05:58:28 +0000 (13:58 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Feb 2025 13:41:56 +0000 (14:41 +0100)
commit7b7644831e7276f52a233ec685d13c965fff09d9
treeafef7a255aecfdd100e2de63d6bfcfb78e115131
parentc2851be5f1831d9c6b6fd4eff177ffbe9f0e408d
cpuidle: psci: Add trace for PSCI domain idle

The trace event cpu_idle provides insufficient information for debugging
PSCI requests due to lacking access to determined PSCI domain idle
states. The cpu_idle usually only shows -1, 0, or 1 regardless how many
idle states the power domain has.

Add new trace events namely psci_domain_idle_enter and
psci_domain_idle_exit to trace enter and exit events with a determined
idle state.

These new trace events will help developers debug CPUidle issues on ARM
systems using PSCI by providing more detailed information about the
requested idle states.

Signed-off-by: Keita Morisaki <keyz@google.com>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20250210055828.1875372-1-keyz@google.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/cpuidle/cpuidle-psci.c
include/trace/events/power.h