public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH]powerpc/perf: Replace raw event hex values with #def
Date: Thu, 21 Apr 2016 16:38:04 +1000	[thread overview]
Message-ID: <1461220684.3245.4.camel@ellerman.id.au> (raw)
In-Reply-To: <1461211214-4705-1-git-send-email-maddy@linux.vnet.ibm.com>

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 ?

cheers

  reply	other threads:[~2016-04-21  6:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-21  4:00 [PATCH]powerpc/perf: Replace raw event hex values with #def Madhavan Srinivasan
2016-04-21  6:38 ` Michael Ellerman [this message]
2016-04-21  7:30   ` Madhavan Srinivasan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461220684.3245.4.camel@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox