From patchwork Wed Dec 5 22:32:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Freehill X-Patchwork-Id: 204030 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 326492C01D3 for ; Thu, 6 Dec 2012 10:02:48 +1100 (EST) Received: from co9outboundpool.messaging.microsoft.com (co9ehsobe003.messaging.microsoft.com [207.46.163.26]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "Microsoft Secure Server Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id D66E42C00BF for ; Thu, 6 Dec 2012 09:33:15 +1100 (EST) Received: from mail45-co9-R.bigfish.com (10.236.132.247) by CO9EHSOBE026.bigfish.com (10.236.130.89) with Microsoft SMTP Server id 14.1.225.23; Wed, 5 Dec 2012 22:33:10 +0000 Received: from mail45-co9 (localhost [127.0.0.1]) by mail45-co9-R.bigfish.com (Postfix) with ESMTP id 3837460013A; Wed, 5 Dec 2012 22:33:10 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1de0h1202h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1155h) Received: from mail45-co9 (localhost.localdomain [127.0.0.1]) by mail45-co9 (MessageSwitch) id 1354746788901332_28611; Wed, 5 Dec 2012 22:33:08 +0000 (UTC) Received: from CO9EHSMHS002.bigfish.com (unknown [10.236.132.232]) by mail45-co9.bigfish.com (Postfix) with ESMTP id D97952C004C; Wed, 5 Dec 2012 22:33:08 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS002.bigfish.com (10.236.130.12) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 5 Dec 2012 22:33:07 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server (TLS) id 14.2.318.3; Wed, 5 Dec 2012 22:33:05 +0000 Received: from chrisfUbuntu1.am.freescale.net (chrisfUbuntu1.am.freescale.net [10.82.136.238]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id qB5MX37t017041; Wed, 5 Dec 2012 15:33:04 -0700 From: Chris Freehill To: Subject: [PATCH] powerpc/perf: Add stalled-cycles events Date: Wed, 5 Dec 2012 16:32:46 -0600 Message-ID: <1354746766-29662-1-git-send-email-chrisf@freescale.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-Mailman-Approved-At: Thu, 06 Dec 2012 10:02:21 +1100 Cc: scottwood@freescale.com, linuxppc-dev@lists.ozlabs.org, paulus@au.ibm.com, chrisf@freescale.com X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Support for stalled-cycles-frontend and stalled-cycles-backend is added for e500-based processors. The following mappings are used: stalled-cycles-frontend or idle-cycles-frontend: Com:18 Cycles decode stalled stalled-cycles-backend or idle-cycles-backend Com:19 cycles issue stalled Signed-off-by: Chris Freehill --- arch/powerpc/perf/e500-pmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/perf/e500-pmu.c b/arch/powerpc/perf/e500-pmu.c index cb2e294..fb66492 100644 --- a/arch/powerpc/perf/e500-pmu.c +++ b/arch/powerpc/perf/e500-pmu.c @@ -24,6 +24,8 @@ static int e500_generic_events[] = { [PERF_COUNT_HW_CACHE_MISSES] = 41, /* Data L1 cache reloads */ [PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = 12, [PERF_COUNT_HW_BRANCH_MISSES] = 15, + [PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = 18, + [PERF_COUNT_HW_STALLED_CYCLES_BACKEND] = 19, }; #define C(x) PERF_COUNT_HW_CACHE_##x