login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2009
»
May
»
22
Re: [PATCH 2/2] perf_counter: optimize context switch between identical inherited contexts
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Ingo Molnar
Subject:
Re: [PATCH 2/2] perf_counter: optimize context switch between identical inherited contexts
Date: Friday, May 22, 2009 - 1:57 am
* Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
quoted text
> On Fri, 2009-05-22 at 14:27 +1000, Paul Mackerras wrote: > > > The equivalence of contexts is detected by keeping a pointer in > > each cloned context pointing to the context it was cloned from. > > To cope with the situation where a context is changed by adding > > or removing counters after it has been cloned, we also keep a > > generation number on each context which is incremented every time > > a context is changed. When a context is cloned we take a copy > > of the parent's generation number, and two cloned contexts are > > equivalent only if they have the same parent and the same > > generation number. In order that the parent context pointer > > remains valid (and is not reused), we increment the parent > > context's reference count for each context cloned from it. > > > + u32 generation; > > Suppose someone writes a malicious proglet that inherits the > counters, puts the child to sleep, does 2^32 mods on the counter > set, and then wakes up the child. > > Would that merely corrupt the results, or make the kernel explode?
i think it should be an u64. Ingo --
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 1/2] perf_counter: dynamically allocate tasks' pe ...
, Paul Mackerras
, (Thu May 21, 9:17 pm)
[PATCH 2/2] perf_counter: optimize context switch between ...
, Paul Mackerras
, (Thu May 21, 9:27 pm)
Re: [PATCH 1/2] perf_counter: dynamically allocate tasks' ...
, Peter Zijlstra
, (Fri May 22, 1:06 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Fri May 22, 1:16 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Fri May 22, 1:32 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Ingo Molnar
, (Fri May 22, 1:57 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Fri May 22, 2:02 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Fri May 22, 2:22 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Paul Mackerras
, (Fri May 22, 2:29 am)
Re: [PATCH 1/2] perf_counter: dynamically allocate tasks' ...
, Paul Mackerras
, (Fri May 22, 2:30 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Fri May 22, 2:42 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Paul Mackerras
, (Fri May 22, 2:56 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Paul Mackerras
, (Fri May 22, 3:05 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Paul Mackerras
, (Fri May 22, 3:07 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Fri May 22, 3:08 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Ingo Molnar
, (Fri May 22, 3:11 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Ingo Molnar
, (Fri May 22, 3:14 am)
[tip:perfcounters/core] perf_counter: Dynamically allocate ...
, tip-bot for Paul Mac ...
, (Fri May 22, 3:27 am)
[tip:perfcounters/core] perf_counter: Optimize context swi ...
, tip-bot for Paul Mac ...
, (Fri May 22, 3:27 am)
[tip:perfcounters/core] perf_counter: fix !PERF_COUNTERS b ...
, tip-bot for Ingo Molnar
, (Fri May 22, 3:36 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Fri May 22, 6:46 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Ingo Molnar
, (Sat May 23, 5:38 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Sat May 23, 6:06 am)
Re: [tip:perfcounters/core] perf_counter: Optimize context ...
, Ingo Molnar
, (Sun May 24, 4:33 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Paul Mackerras
, (Sun May 24, 4:55 pm)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Paul Mackerras
, (Sun May 24, 5:15 pm)
Re: [tip:perfcounters/core] perf_counter: Optimize context ...
, Paul Mackerras
, (Sun May 24, 11:18 pm)
Re: [tip:perfcounters/core] perf_counter: Optimize context ...
, Ingo Molnar
, (Sun May 24, 11:54 pm)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Mon May 25, 3:38 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Mon May 25, 3:50 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Paul Mackerras
, (Mon May 25, 4:06 am)
Re: [PATCH 2/2] perf_counter: optimize context switch betw ...
, Peter Zijlstra
, (Mon May 25, 4:27 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