login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
30
Re: [RFC][PATCH 3/5] perf: Add hrtimer code for PMI-less hardware counters
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Matt Fleming
Subject:
Re: [RFC][PATCH 3/5] perf: Add hrtimer code for PMI-less hardware counters
Date: Monday, August 30, 2010 - 6:27 am
On Mon, Aug 30, 2010 at 02:55:02PM +0200, Peter Zijlstra wrote:
quoted text
> On Mon, 2010-08-30 at 13:13 +0100, Matt Fleming wrote: > > Currently, it's impossible to periodically sample hardware counters that > > lack performance monitoring interrupt (PMI) support. In order to sample > > these counters we can create an event group which is backed by a > > hrtimer, thereby simulating a PMI. > > > > When the hrtimer goes off we sample the values in the hardware > > counters. Because we obviously can't rely on the hrtimer going off at > > exactly the sample period (say, every 1000 cache misses) the values need > > to be weighted by the variable period since the last hrtimer went > > off. This is so that we can compensate for the variability in hrtimer > > period. > > > > If perf record tries to create a sampling counter and the hardware > > doesn't support it then we'll fall back to creating an event group with > > a hrtimer. > > > Why is this changing kernel code? > > You can create those groups in userspace..
I'm lost. Is it possible to do this patch entirely in userspace? How do we periodically sample the counters if it's not being done in the kernel? --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC][PATCH 0/5] hrtimer group events
, Matt Fleming
, (Mon Aug 30, 5:13 am)
[RFC][PATCH 1/5] perf: Check if we should exclude idle thr ...
, Matt Fleming
, (Mon Aug 30, 5:13 am)
[RFC][PATCH 2/5] perf: Turn the group counter values into ...
, Matt Fleming
, (Mon Aug 30, 5:13 am)
[RFC][PATCH 3/5] perf: Add hrtimer code for PMI-less hardw ...
, Matt Fleming
, (Mon Aug 30, 5:13 am)
[RFC][PATCH 4/5] sh: Add support for sampling counters
, Matt Fleming
, (Mon Aug 30, 5:13 am)
[RFC][PATCH 5/5] perf: Add support for PERF_SAMPLE_READ sa ...
, Matt Fleming
, (Mon Aug 30, 5:13 am)
Re: [RFC][PATCH 2/5] perf: Turn the group counter values i ...
, Peter Zijlstra
, (Mon Aug 30, 5:54 am)
Re: [RFC][PATCH 3/5] perf: Add hrtimer code for PMI-less h ...
, Peter Zijlstra
, (Mon Aug 30, 5:55 am)
Re: [RFC][PATCH 2/5] perf: Turn the group counter values i ...
, Matt Fleming
, (Mon Aug 30, 6:21 am)
Re: [RFC][PATCH 3/5] perf: Add hrtimer code for PMI-less h ...
, Matt Fleming
, (Mon Aug 30, 6:27 am)
Re: [RFC][PATCH 3/5] perf: Add hrtimer code for PMI-less h ...
, Peter Zijlstra
, (Mon Aug 30, 7:12 am)
Re: [RFC][PATCH 3/5] perf: Add hrtimer code for PMI-less h ...
, Matt Fleming
, (Mon Aug 30, 12:35 pm)
Re: [RFC][PATCH 1/5] perf: Check if we should exclude idle ...
, Frederic Weisbecker
, (Tue Aug 31, 7:54 am)
Re: [RFC][PATCH 1/5] perf: Check if we should exclude idle ...
, Matt Fleming
, (Tue Aug 31, 8:20 am)
Re: [RFC][PATCH 1/5] perf: Check if we should exclude idle ...
, Frederic Weisbecker
, (Tue Aug 31, 8:21 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Colin Cross
[PATCH 12/21] ARM: tegra: Add suspend and hotplug support
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Colocation donated by:
Syndicate