From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp01.au.ibm.com (e23smtp01.au.ibm.com [202.81.31.143]) (using TLSv1.2 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3qrB6x11r5zDqcm for ; Thu, 21 Apr 2016 18:02:16 +1000 (AEST) Received: from localhost by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 21 Apr 2016 17:32:04 +1000 Received: from d23relay09.au.ibm.com (d23relay09.au.ibm.com [9.185.63.181]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id B92153578052 for ; Thu, 21 Apr 2016 17:31:46 +1000 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay09.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u3L7VX4h44826820 for ; Thu, 21 Apr 2016 17:31:46 +1000 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u3L7V72D025980 for ; Thu, 21 Apr 2016 17:31:08 +1000 Subject: Re: [PATCH]powerpc/perf: Replace raw event hex values with #def To: Michael Ellerman References: <1461211214-4705-1-git-send-email-maddy@linux.vnet.ibm.com> <1461220684.3245.4.camel@ellerman.id.au> Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org From: Madhavan Srinivasan Message-ID: <571881A1.5060309@linux.vnet.ibm.com> Date: Thu, 21 Apr 2016 13:00:41 +0530 MIME-Version: 1.0 In-Reply-To: <1461220684.3245.4.camel@ellerman.id.au> Content-Type: text/plain; charset=utf-8 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thursday 21 April 2016 12:08 PM, Michael Ellerman wrote: > On Thu, 2016-04-21 at 09:30 +0530, Madhavan Srinivasan wrote: >> @@ -488,17 +489,17 @@ static int power8_compute_mmcr(u64 event[], int n_ev, >> >> /* Table of alternatives, sorted by column 0 */ >> static const unsigned int event_alternatives[][MAX_ALT] = { >> - { 0x10134, 0x301e2 }, /* PM_MRK_ST_CMPL */ >> - { 0x10138, 0x40138 }, /* PM_BR_MRK_2PATH */ >> - { 0x18082, 0x3e05e }, /* PM_L3_CO_MEPF */ >> - { 0x1d14e, 0x401e8 }, /* PM_MRK_DATA_FROM_L2MISS */ >> - { 0x1e054, 0x4000a }, /* PM_CMPLU_STALL */ >> - { 0x20036, 0x40036 }, /* PM_BR_2PATH */ >> - { 0x200f2, 0x300f2 }, /* PM_INST_DISP */ >> - { 0x200f4, 0x600f4 }, /* PM_RUN_CYC */ >> - { 0x2013c, 0x3012e }, /* PM_MRK_FILT_MATCH */ >> - { 0x3e054, 0x400f0 }, /* PM_LD_MISS_L1 */ >> - { 0x400fa, 0x500fa }, /* PM_RUN_INST_CMPL */ >> + { PM_MRK_ST_CMPL, _PM_MRK_ST_CMPL }, >> + { PM_BR_MRK_2PATH, _PM_BR_MRK_2PATH }, >> + { PM_L3_CO_MEPF, _PM_L3_CO_MEPF }, >> + { PM_MRK_DATA_FROM_L2MISS, _PM_MRK_DATA_FROM_L2MISS }, >> + { PM_CMPLU_STALL, _PM_CMPLU_STALL }, >> + { PM_BR_2PATH, _PM_BR_2PATH }, >> + { PM_INST_DISP, _PM_INST_DISP }, >> + { _PM_RUN_CYC, PM_RUN_CYC }, >> + { PM_MRK_FILT_MATCH, _PM_MRK_FILT_MATCH }, >> + { PM_LD_MISS_L1, _PM_LD_MISS_L1 }, >> + { _PM_RUN_INST_CMPL, PM_RUN_INST_CMPL }, > I think I'd prefer it if the alternate events were named more like > PM_MRK_ST_CMPL_ALT, or ALT_PM_MRK_ST_CMPL ? Sure. Will resend with the changes. Thanks for review Maddy > cheers >