login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
21
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu hlist to track events
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu hlist to track events
Date: Friday, May 21, 2010 - 3:34 am
On Fri, 2010-05-21 at 12:21 +0200, Frederic Weisbecker wrote:
quoted text
> On Fri, May 21, 2010 at 12:19:09PM +0200, Peter Zijlstra wrote: > > On Fri, 2010-05-21 at 12:13 +0200, Frederic Weisbecker wrote: > > > > I assumed that after probe unregister a tracepoint callback doesn't > > > > happen, which then guarantees we should never get !head. > > > > > I'm not sure about this. The tracepoints are called under rcu_read_lock(), > > > but there is not synchronize_rcu() after we unregister a tracepoint, which > > > means you can have a pending preempted one somewhere. > > > > > > There is a call_rcu that removes the callbacks, but that only protect > > > the callback themselves. > > > > Ah, ok, so we should do probe_unregister + synchronize_sched(). > > That should ensure __DO_TRACE() doesn't call into it anymore. > > > > /me goes make a patch > > > > > Yep. But that also means we need to rcu_dereference_sched() to access > the per cpu list of events.
Why? The per-cpu vars are allocated and freed in a fully serialized manner, there should be no races what so ever. --
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:
[PATCH 00/10] perf tracepoint and output optimizations
, Peter Zijlstra
, (Fri May 21, 2:02 am)
[PATCH 01/10] perf, trace: Remove IRQ-disable from perf/tr ...
, Peter Zijlstra
, (Fri May 21, 2:02 am)
[PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu hlis ...
, Peter Zijlstra
, (Fri May 21, 2:02 am)
[PATCH 05/10] perf-record: Share per-cpu buffers
, Peter Zijlstra
, (Fri May 21, 2:02 am)
[PATCH 06/10] perf: Fix wakeup storm for RO mmap()s
, Peter Zijlstra
, (Fri May 21, 2:02 am)
[PATCH 08/10] perf: Optimize the !vmalloc backed buffer
, Peter Zijlstra
, (Fri May 21, 2:02 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Frederic Weisbecker
, (Fri May 21, 2:40 am)
Re: [PATCH 05/10] perf-record: Share per-cpu buffers
, Frederic Weisbecker
, (Fri May 21, 2:44 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Peter Zijlstra
, (Fri May 21, 3:02 am)
Re: [PATCH 05/10] perf-record: Share per-cpu buffers
, Peter Zijlstra
, (Fri May 21, 3:03 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Frederic Weisbecker
, (Fri May 21, 3:13 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Peter Zijlstra
, (Fri May 21, 3:15 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Peter Zijlstra
, (Fri May 21, 3:19 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Frederic Weisbecker
, (Fri May 21, 3:19 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Frederic Weisbecker
, (Fri May 21, 3:21 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Peter Zijlstra
, (Fri May 21, 3:34 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Frederic Weisbecker
, (Fri May 21, 3:38 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Ingo Molnar
, (Fri May 21, 3:38 am)
[PATCH 02b/10] perf, trace: Fix probe unregister race
, Peter Zijlstra
, (Fri May 21, 3:41 am)
Re: [PATCH 02b/10] perf, trace: Fix probe unregister race
, Frederic Weisbecker
, (Fri May 21, 3:43 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Ingo Molnar
, (Fri May 21, 3:51 am)
[tip:perf/core] perf, trace: Optimize tracepoints by using ...
, tip-bot for Peter Zi ...
, (Fri May 21, 4:28 am)
[tip:perf/core] perf-record: Share per-cpu buffers
, tip-bot for Peter Zi ...
, (Fri May 21, 4:29 am)
[tip:perf/core] perf: Fix wakeup storm for RO mmap()s
, tip-bot for Peter Zi ...
, (Fri May 21, 4:29 am)
[tip:perf/core] perf: Optimize the !vmalloc backed buffer
, tip-bot for Peter Zi ...
, (Fri May 21, 4:29 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Steven Rostedt
, (Fri May 21, 7:04 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Peter Zijlstra
, (Fri May 21, 7:18 am)
Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu ...
, Peter Zijlstra
, (Fri May 21, 7:25 am)
Re: [PATCH 01/10] perf, trace: Remove IRQ-disable from per ...
, Frank Ch. Eigler
, (Fri May 21, 10:43 am)
Re: [PATCH 01/10] perf, trace: Remove IRQ-disable from per ...
, Steven Rostedt
, (Fri May 21, 10:53 am)
Re: [PATCH 01/10] perf, trace: Remove IRQ-disable from per ...
, Frank Ch. Eigler
, (Fri May 21, 11:07 am)
Re: [PATCH 01/10] perf, trace: Remove IRQ-disable from per ...
, Paul Mackerras
, (Sun May 23, 5:11 am)
Re: [PATCH 01/10] perf, trace: Remove IRQ-disable from per ...
, Peter Zijlstra
, (Sun May 23, 11:16 am)
Re: [PATCH 01/10] perf, trace: Remove IRQ-disable from per ...
, Paul Mackerras
, (Sun May 23, 9:29 pm)
Re: [PATCH 01/10] perf, trace: Remove IRQ-disable from per ...
, Frederic Weisbecker
, (Mon May 24, 4:31 am)
[PATCH 01a/10] perf, trace: Fix !x86 build issue
, Peter Zijlstra
, (Tue May 25, 12:30 am)
[tip:perf/core] perf, trace: Fix IRQ-disable removal from ...
, tip-bot for Peter Zi ...
, (Tue May 25, 1:06 am)
Re: [tip:perf/core] perf, trace: Fix IRQ-disable removal f ...
, Peter Zijlstra
, (Tue May 25, 2:02 am)
[tip:perf/core] perf, trace: Fix !x86 build bug
, tip-bot for Peter Zi ...
, (Tue May 25, 2:30 am)
[tip:perf/urgent] perf_events, trace: Fix probe unregister ...
, tip-bot for Peter Zi ...
, (Mon May 31, 12:19 am)
[tip:perf/urgent] perf_events, trace: Fix perf_trace_destr ...
, tip-bot for Peter Zi ...
, (Mon May 31, 12:20 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michael Trimarchi
Re: [PATCH] VFS: make file->f_pos access atomic on 32bit arch
Miklos Szeredi
[patch 14/15] vfs: more path_permission() conversions
Serge E. Hallyn
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
Bernd Schmidt
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Takashi Iwai
[PATCH 2/2] input: Add LED support to Synaptics device
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Shawn O. Pearce
Re: Switching from CVS to GIT
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Santi Béjar
Re: How to use git-fmt-merge-msg?
linux-netdev
:
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Mark Anthony
invitation / inquiry
Ingo Molnar
Re: [PATCH 08/16] dma-debug: add core checking functions
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Sascha Hauer
[PATCH 03/12] fec: do not typedef struct types
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
MIPS: Yosemite: Convert SMP startup lock to arch spinlock.
Linux Kernel Mailing List
ARM: S5PC100: IRQ and timer
Linux Kernel Mailing List
davinci: edma: clear interrupt status for interrupt enabled channels only
Linux Kernel Mailing List
x86, mm, kprobes: fault.c, simplify notify_page_fault()
openbsd-misc
:
Daniel A. Ramaley
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Matthias Kilian
Re: can't get vesa @ 1280x800 or nv
Tobias Ulmer
Re: Problem after upgrade 4.5 to 4.6: ERR M
Philip Guenther
Re: SIGCHLD and libpthread.so
J.C. Roberts
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Colocation donated by:
Syndicate