Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932090AbbFKIp1 (ORCPT ); Thu, 11 Jun 2015 04:45:27 -0400 Received: from e28smtp01.in.ibm.com ([122.248.162.1]:36824 "EHLO e28smtp01.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752867AbbFKIpQ (ORCPT ); Thu, 11 Jun 2015 04:45:16 -0400 From: Madhavan Srinivasan To: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, sukadev@linux.vnet.ibm.com, eranian@google.com, khandual@linux.vnet.ibm.com, rusty@rustcorp.com.au, Madhavan Srinivasan , Janani Subject: [PATCH 8/8]powerpc/perf: cleanup in perf_event_print_debug() Date: Thu, 11 Jun 2015 14:13:37 +0530 Message-Id: <1434012217-9776-9-git-send-email-maddy@linux.vnet.ibm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434012217-9776-1-git-send-email-maddy@linux.vnet.ibm.com> References: <1434012217-9776-1-git-send-email-maddy@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15061108-4790-0000-0000-000008A6005C Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1607 Lines: 47 From: Janani Code cleanup/fix in perf_event_print_debug(). Performance Monitoring Unit (PMU) registers in the server side are 64bit long. Signed-off-by: Janani Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/core-book3s.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c index 4b27caf..36dc23b 100644 --- a/arch/powerpc/perf/core-book3s.c +++ b/arch/powerpc/perf/core-book3s.c @@ -758,7 +758,7 @@ static void write_pmc(int idx, unsigned long val) void perf_event_print_debug(void) { unsigned long sdar, sier, flags; - u32 pmcs[MAX_HWEVENTS]; + unsigned long pmcs[MAX_HWEVENTS]; int i; if (!ppmu->n_counter) @@ -775,11 +775,11 @@ void perf_event_print_debug(void) for (; i < MAX_HWEVENTS; i++) pmcs[i] = 0xdeadbeef; - pr_info("PMC1: %08x PMC2: %08x PMC3: %08x PMC4: %08x\n", + pr_info("PMC1: %016lx PMC2: %016lx PMC3: %016lx PMC4: %016lx\n", pmcs[0], pmcs[1], pmcs[2], pmcs[3]); if (ppmu->n_counter > 4) - pr_info("PMC5: %08x PMC6: %08x PMC7: %08x PMC8: %08x\n", + pr_info("PMC5: %016lx PMC6: %016lx PMC7: %016lx PMC8: %016lx\n", pmcs[4], pmcs[5], pmcs[6], pmcs[7]); pr_info("MMCR0: %016lx MMCR1: %016lx MMCRA: %016lx\n", -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/