From: Ross Lagerwall Subject: [PATCH 1/4] x86/mwait_idle: Fix trace output Date: Wed, 18 Jun 2014 16:04:12 +0100 Message-ID: <1403103855-23080-2-git-send-email-ross.lagerwall@citrix.com> References: <1403103855-23080-1-git-send-email-ross.lagerwall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1403103855-23080-1-git-send-email-ross.lagerwall@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , Liu Jinsong , Ian Jackson , Jan Beulich List-Id: xen-devel@lists.xenproject.org Use the C-state's type when tracing, not its index since the index is not set by the mwait_idle driver. Signed-off-by: Ross Lagerwall --- xen/arch/x86/cpu/mwait-idle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/cpu/mwait-idle.c b/xen/arch/x86/cpu/mwait-idle.c index 72a7abf..38172e5 100644 --- a/xen/arch/x86/cpu/mwait-idle.c +++ b/xen/arch/x86/cpu/mwait-idle.c @@ -376,7 +376,7 @@ static void mwait_idle(void) lapic_timer_off(); before = cpuidle_get_tick(); - TRACE_4D(TRC_PM_IDLE_ENTRY, cx->idx, before, exp, pred); + TRACE_4D(TRC_PM_IDLE_ENTRY, cx->type, before, exp, pred); if (cpu_is_haltable(cpu)) mwait_idle_with_hints(eax, MWAIT_ECX_INTERRUPT_BREAK); @@ -385,7 +385,7 @@ static void mwait_idle(void) cstate_restore_tsc(); trace_exit_reason(irq_traced); - TRACE_6D(TRC_PM_IDLE_EXIT, cx->idx, after, + TRACE_6D(TRC_PM_IDLE_EXIT, cx->type, after, irq_traced[0], irq_traced[1], irq_traced[2], irq_traced[3]); update_idle_stats(power, cx, before, after); -- 1.9.3