From: Ingo Molnar <mingo@elte.hu>
To: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH 2/2] perf_counter: powerpc: Implement generalized cache events for POWER processors
Date: Fri, 12 Jun 2009 14:12:06 +0200 [thread overview]
Message-ID: <20090612121206.GB31845@elte.hu> (raw)
In-Reply-To: <18993.58058.194954.997480@drongo.ozlabs.ibm.com>
* Paul Mackerras <paulus@samba.org> wrote:
> > I dont know whether we should do such combo counters in the
> > kernel itself - i'm slightly against that notion. (seems
> > complex)
>
> Yeah.
>
> When thinking about having "composite" events, i.e. a counter
> whose value is computed from two or more hardware counters, I
> couldn't see how to do sampling in the general case. It's easy if
> we're just adding multiple counters, but sampling when subtracting
> counters is hard. For example, if you want to sample every N
> cache hits, and you're computing hits as accesses - misses, I
> couldn't see a decent way to know when to take the sample, not
> without having to take an interrupt on every access in some
> circumstances.
We now have a period field - and that could be negative and be
subtracted by the profiler automatically.
It's still statistical and a given instruction can go 'negative'
sporadically, but in terms of total function averages and for any
high-traffic place it's still pretty expressive IMO.
Ingo
next prev parent reply other threads:[~2009-06-12 12:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-11 4:54 [PATCH 1/2] perf_counters: powerpc: Add support for POWER7 processors Paul Mackerras
2009-06-11 4:55 ` [PATCH 2/2] perf_counter: powerpc: Implement generalized cache events for POWER processors Paul Mackerras
2009-06-11 10:07 ` Ingo Molnar
2009-06-12 5:08 ` Paul Mackerras
2009-06-12 12:12 ` Ingo Molnar [this message]
2009-06-12 18:00 ` Corey Ashford
2009-06-11 10:09 ` [tip:branch?] " tip-bot for Paul Mackerras
2009-06-11 10:09 ` [tip:branch?] perf_counters: powerpc: Add support for POWER7 processors tip-bot for Paul Mackerras
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=20090612121206.GB31845@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®