All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vince Weaver <vince@deater.net>
To: Michael Ellerman <michael@ellerman.id.au>
Cc: mingo@kernel.org, hpa@zytor.com, paulus@samba.org,
	linux-kernel@vger.kernel.org, acme@redhat.com,
	runzhen@linux.vnet.ibm.com, runzhew@clemson.edu,
	xiaoguangrong@linux.vnet.ibm.com, sukadev@linux.vnet.ibm.com,
	tglx@linutronix.de, linux-tip-commits@vger.kernel.org,
	torvalds@linux-foundation.org
Subject: Re: [tip:perf/core] perf tools: Make Power7 events available for perf
Date: Fri, 26 Jul 2013 00:25:51 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.02.1307260012270.26524@pianoman.cluster.toy> (raw)
In-Reply-To: <20130725134135.GA14744@concordia>

On Thu, 25 Jul 2013, Michael Ellerman wrote:

> On Tue, Jul 23, 2013 at 05:38:21PM -0400, Vince Weaver wrote:
>
> Well cursing is what witches do, but if you need someone to swear a bit
> I can help you out, I am fuckin Australian after all.

I should point out the cursing is directed at the code in question and the 
overall downhill direction in the perf_event interface, and not directed 
at anyone personally.

I've been fighting a (losing) battle for the past 5 years trying to keep 
event definitions out of the kernel, I just didn't expect defeat to come 
so swiftly and so suddenly from an unexpected corner (the power arch).

> But there are ~50 generic events in Linux, and our PMU supports ~500.
> And our hardware designers use perf, and they need to test all 500
> events. And they're getting sick of using raw event codes.

And writing a small wrapper utility or patching perf is somehow harder 
than sticking the whole mess in the kernel?  I get annoyed having to look 
up the value of ANSI color escape codes now and then, but I don't expect 
to submit a patch for /sys/tty/colors/red to the kernel and have it 
accepted.

> > Abusing sysfs to waste 100k of non-swappable kernel memory on every 
> > running Linux kernel everwhere 
> 
> It's great that you're so concerned about memory wastage on _powerpc_
> systems.

It's a slippery slope.

> > Especially as it's likely this becomes stable ABI, and then you'll 
> > promptly break it as has already happenend in the last kernel release 
> > with the existing in-kernel powerpc events.
> 
> You're becoming the boy who cried "ABI break" Vince. Yes we renamed one
> event, we knew full well that nothing was using it - not even trinity.

Yes, the interface has only been around for one kernel version and you've 
already broken the ABI once.  Not a very good track record.  Event name 
renaming is a lot bigger problem on x86 where certain vendors like to fuss 
with the event names every 3 months or so.

trinity is just an example as the users tend to use -rc kernels and thus 
find the breakages faster.  The main problem is tools like PAPI that deal 
with events in much more critical fashion, but the kernel devs don't 
really seem to care much about HPC use cases.

> > I agree.  So why is this patch in tip?
> 
> Because acme picked it up before that thread got going.

once a patch gets into tip in my experience all public mailing list review 
is done with, and the patch is more or less guaranteed to appear in the 
next major release unless there's some sort of regression in linux-next.

Hence this last attempt to get people to discuss this.  It will likely be 
ignored, but at least I can feel like I tried.

Vince



  reply	other threads:[~2013-07-26  4:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-28  8:14 [PATCH v3 0/2] perf tools: Power7 events name available for perf Runzhen Wang
2013-06-28  8:14 ` Runzhen Wang
2013-06-28  8:14 ` [PATCH v3 1/2] perf tools: fix a typo of a Power7 event name Runzhen Wang
2013-06-28  8:14   ` Runzhen Wang
2013-07-12  8:51   ` [tip:perf/urgent] " tip-bot for Runzhen Wang
2013-06-28  8:14 ` [PATCH v3 2/2] perf tools: Make Power7 events available for perf Runzhen Wang
2013-06-28  8:14   ` Runzhen Wang
2013-07-19  7:44   ` [tip:perf/core] " tip-bot for Runzhen Wang
2013-07-23  5:33     ` Vince Weaver
2013-07-23  5:56       ` Michael Ellerman
2013-07-23 21:38         ` Vince Weaver
2013-07-25 13:41           ` Michael Ellerman
2013-07-26  4:25             ` Vince Weaver [this message]
2013-07-01  1:53 ` [PATCH v3 0/2] perf tools: Power7 events name " Michael Ellerman
2013-07-01  1:53   ` Michael Ellerman

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=alpine.DEB.2.02.1307260012270.26524@pianoman.cluster.toy \
    --to=vince@deater.net \
    --cc=acme@redhat.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=michael@ellerman.id.au \
    --cc=mingo@kernel.org \
    --cc=paulus@samba.org \
    --cc=runzhen@linux.vnet.ibm.com \
    --cc=runzhew@clemson.edu \
    --cc=sukadev@linux.vnet.ibm.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    --cc=xiaoguangrong@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.