login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
23
Re: How about limiting refresh ioctl to sampling events ?
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: How about limiting refresh ioctl to sampling events ?
Date: Tuesday, November 23, 2010 - 6:07 am
On Tue, 2010-11-23 at 14:01 +0100, Franck Bui-Huu wrote:
quoted text
> Hello Peter, > > I'm looking at the perf event stuff and wondering if > perf_event_refresh() should be limited to sampling events. > > Does the following make sense ? > > diff --git a/kernel/perf_event.c b/kernel/perf_event.c > index 3b105e0..1a90a6c 100644 > --- a/kernel/perf_event.c > +++ b/kernel/perf_event.c > @@ -1072,7 +1072,7 @@ static int perf_event_refresh(struct perf_event *event, int refresh) > /* > * not supported on inherited events > */ > - if (event->attr.inherit) > + if (event->attr.inherit || !event->attr.sample_period) > return -EINVAL; > > atomic_add(refresh, &event->event_limit);
Yes it does, please submit as a proper patch. --
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:
How about limiting refresh ioctl to sampling events ?
, Franck Bui-Huu
, (Tue Nov 23, 6:01 am)
Re: How about limiting refresh ioctl to sampling events ?
, Peter Zijlstra
, (Tue Nov 23, 6:07 am)
Re: How about limiting refresh ioctl to sampling events ?
, Franck Bui-Huu
, (Tue Nov 23, 6:19 am)
Re: How about limiting refresh ioctl to sampling events ?
, Peter Zijlstra
, (Tue Nov 23, 6:46 am)
Re: How about limiting refresh ioctl to sampling events ?
, Francis Moreau
, (Wed Nov 24, 3:19 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Andi Kleen
Re: - romsignature-checksum-cleanup-2.patch removed from -mm tree
Stefano Stabellini
Re: [PATCH 09/22] xen: Find an unbound irq number in reverse order (high to low).
git
:
Junio C Hamano
Re: Teach "git checkout" to use git-show-ref
Christian Jaeger
Re: Problem with Git.pm bidi_pipe methods
Linus Torvalds
[PATCH 1/7] Make unpack_trees_options bit flags actual bitfields
Jon Smirl
stgit: managing signed-off-by lines
Junio C Hamano
GIT 1.4.3-rc2
git-commits-head
:
Linux Kernel Mailing List
MIPS: Bonito64: Make Loongson independent from Bonito64 code.
Linux Kernel Mailing List
iwlwifi: initialize spinlock before use
Linux Kernel Mailing List
i2c-i801: Add Intel Cougar Point device IDs
Linux Kernel Mailing List
drm/i915: Add information on pinning and fencing to the i915 list debug.
Linux Kernel Mailing List
cirrusfb: GD5434 (aka SD64) support fixed
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Sathya Perla
[PATCH net-next-2.6] be2net: add multiple RX queue support
Changli Gao
Re: [PATCH 3/3] ifb: move tq from ifb_private
freebsd-current
:
Boris Samorodov
Re: twa + dump = sbwait
韓家標 Bill Hacker
Re: ZFS honesty
Bjoern A. Zeeb
Re: Can not boot 7.0-BETA3 with IPSEC
rmgls
man usb2_core(4)
Sam Leffler
Re: Lots of "ath0: bad series0 hwrate 0x1b" in 8.0-BETA2
Colocation donated by:
Syndicate