[PATCH 05/10] m32r: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the m32r's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: Hirokazu Takata Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/m32r/kernel/process.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --

[PATCH 03/10] frv: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the Frv's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: David Howells Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/frv/kernel/process.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git

[PATCH 02/10] cris: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the Cris's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: Mikael Starvik Cc: Jesper Nilsson Cc: Cris Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/cris/kernel/process.c |3 +++ 1 files changed, 3 insert

Re: [PATCH 01/10] alpha: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
On Wed, Aug 22, 2012 at 10:19:30AM -0700, Paul E. McKenney wrote: > On Wed, Aug 22, 2012 at 06:23:39PM +0200, Frederic Weisbecker wrote: > > In the old times, the whole idle task was considered > > as an RCU quiescent state. But as RCU became more and > > more successful ov

Re: [PATCH 01/10] alpha: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
On Wed, Aug 22, 2012 at 12:01:09PM -0700, Paul E. McKenney wrote: > > The current code is preemptable, at least it appears so because it calls > > schedule() directly. And if I call rcu_idle_enter() in a preemptable > > section, > > I'm in trouble because I'll schedule while in extended QS. > > >

Re: linux-next: manual merge of the tip tree with the rr tree

2012-08-23 Thread Frederic Weisbecker
On Thu, Aug 23, 2012 at 12:43:48PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the tip tree got a conflict in arch/Kconfig > between commit bd029f48459a ("Make most arch asm/module.h files use > asm-generic/module.h") from the rr tree and commit b952741c8079 > ("cputim

Re: [PATCH 01/10] alpha: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
On Thu, Aug 23, 2012 at 09:32:18PM +1200, Michael Cree wrote: > On 23/08/12 04:23, Frederic Weisbecker wrote: > > In the old times, the whole idle task was considered > > as an RCU quiescent state. But as RCU became more and > > more successful overtime, some RCU read side

Re: [PATCH 00/10] rcu: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
On Wed, Aug 22, 2012 at 07:18:04PM +0200, Geert Uytterhoeven wrote: > On Wed, Aug 22, 2012 at 6:23 PM, Frederic Weisbecker > wrote: > > So this fixes some potential RCU stalls in a bunch of architectures. > > When rcu_idle_enter()/rcu_idle_exit() became a requirement, we forgot

[PATCH 00/11] rcu: Add missing RCU idle APIs on idle loop v2

2012-08-23 Thread Frederic Weisbecker
/crosstool/files/bin/x86_64/4.6.3/) For testing, you can pull from: git://github.com/fweisbec/linux-dynticks.git rcu/idle-fix-v2 Thanks. Frederic Weisbecker (11): alpha: Fix preemption handling in idle loop alpha: Add missing RCU idle APIs on idle loop cris: Add missing RCU idle

[PATCH 03/11] cris: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the Cris's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: Mikael Starvik Cc: Jesper Nilsson Cc: Cris Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/cris/kernel/process.c |3 +++ 1 files changed, 3 insert

[PATCH 02/11] alpha: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the Alpha's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: alpha Cc: Paul E. McKenney Cc: Michael Cree Cc: 3.2.x.. --- arch/alpha/kernel/proces

[PATCH 06/11] m32r: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the m32r's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: Hirokazu Takata Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/m32r/kernel/process.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --

[PATCH 08/11] mn10300: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the mn10300's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: David Howells Cc: Koichi Yasutake Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/mn10300/kernel/process.c |3 +++ 1 files changed, 3 insert

[PATCH 11/11] xtensa: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the xtensa's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: Chris Zankel Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/xtensa/kernel/process.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --

[PATCH 10/11] score: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the scores's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: Chen Liqin Cc: Lennox Wu Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/score/kernel/process.c |4 +++- 1 files changed, 3 insertions(+), 1 deletion

[PATCH 09/11] parisc: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the parisc's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: James E.J. Bottomley Cc: Helge Deller Cc: Parisc Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/parisc/kernel/process.c |3 +++ 1 files changed, 3

[PATCH 07/11] m68k: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the m68k's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Acked-by: Geert Uytterhoeven Cc: m68k Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/m68k/kernel/process.c |3 +++ 1 files changed, 3 insertions(+), 0

[PATCH 04/11] frv: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the Frv's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: David Howells Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/frv/kernel/process.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git

[PATCH 05/11] h8300: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
grace periods. Add this missing pair of calls in the h8300's idle loop. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: Yoshinori Sato Cc: 3.2.x.. Cc: Paul E. McKenney --- arch/h8300/kernel/process.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --

[PATCH 01/11] alpha: Fix preemption handling in idle loop

2012-08-23 Thread Frederic Weisbecker
ndary CPU entry code to stay consistent with this state. Signed-off-by: Frederic Weisbecker Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: alpha Cc: Paul E. McKenney Cc: Michael Cree --- arch/alpha/kernel/process.c |3 ++- arch/alpha/kernel/smp.c |1 + 2 files chang

Re: [PATCH v2] fork: fix oops after fork failure

2012-08-23 Thread Frederic Weisbecker
> particular problem I ran accross was that in x86, we will arrive at > fpu_free() without having ever allocated it. > > Signed-off-by: Glauber Costa > Reported-by: Frederic Weisbecker Tested-by: Frederic Weisbecker -- To unsubscribe from this list: send the line "unsubscribe l

Re: mmotm 2012-08-13-16-55 uploaded

2012-08-23 Thread Frederic Weisbecker
On Tue, Aug 14, 2012 at 04:26:56PM +0400, Glauber Costa wrote: > On 08/14/2012 02:53 PM, Michal Hocko wrote: > > On Mon 13-08-12 16:56:50, Andrew Morton wrote: > >> > The mm-of-the-moment snapshot 2012-08-13-16-55 has been uploaded to > >> > > >> >http://www.ozlabs.org/~akpm/mmotm/ > > -mm git

Re: [PATCH 00/10] rcu: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Frederic Weisbecker
On Thu, Aug 23, 2012 at 10:23:22PM +0200, Geert Uytterhoeven wrote: > Hi Frederic, > > On Thu, Aug 23, 2012 at 1:02 PM, Frederic Weisbecker > wrote: > > On Wed, Aug 22, 2012 at 07:18:04PM +0200, Geert Uytterhoeven wrote: > >> On Wed, Aug 22, 2012 at 6:23 PM, Frede

Re: [PATCH 3/4] perf: teach perf inject to merge sched_stat_* and sched_switch events (v2)

2012-08-25 Thread Frederic Weisbecker
On Tue, Aug 07, 2012 at 04:56:04PM +0400, Andrew Vagin wrote: > +struct event_entry { > + struct list_head node; > + u32 pid; > + union perf_event event[0]; > +}; > + > +static LIST_HEAD(samples); > + > +static int perf_event__sched_stat(struct perf_tool *tool, > +

Re: [PATCH 00/11] rcu: Add missing RCU idle APIs on idle loop v2

2012-08-25 Thread Frederic Weisbecker
On Fri, Aug 24, 2012 at 08:50:47PM -0700, Paul E. McKenney wrote: > On Sat, Aug 25, 2012 at 02:19:14AM +0100, Ben Hutchings wrote: > > On Fri, 2012-08-24 at 14:26 -0700, Paul E. McKenney wrote: > > > On Thu, Aug 23, 2012 at 04:58:24PM +0200, Frederic Weisbecker

Re: Where to put test code?

2012-09-19 Thread Frederic Weisbecker
2012/9/19 Daniel Santos : > I'm putting the finishing touches on the generic red-black tree test > code, but I'm uncertain about where to place it exactly. > > I haven't finished the test module just yet, but the idea is that the > tests can be run in userspace as well as kernelspace to make it eas

Re: Where to put test code?

2012-09-20 Thread Frederic Weisbecker
2012/9/20 Daniel Santos : > Thanks for the response! > > On 09/19/2012 05:18 PM, Frederic Weisbecker wrote: >> 2012/9/19 Daniel Santos : >>> I'm putting the finishing touches on the generic red-black tree test >>> code, but I'm uncertain about where to p

[PATCH 0/2] perf tools: Basic bash completion support

2012-08-07 Thread Frederic Weisbecker
to add a double quote in the beginning of the expression. I'm quite a newbie in bash completion though, so I might find a subtelty later to solve this. Frederic Weisbecker (2): perf tools: Initial bash completion support perf tools: Support for events bash completion tools/perf/Makefi

[PATCH 2/2] perf tools: Support for events bash completion

2012-08-07 Thread Frederic Weisbecker
Add basic bash completion for the -e option in record, top and stat subcommands. Only hardware, software and tracepoint events are supported. Breakpoints, raw events and events grouping completion need more thinking. Signed-off-by: Frederic Weisbecker Cc: David Ahern Cc: Ingo Molnar Cc: Jiri

[PATCH 1/2] perf tools: Initial bash completion support

2012-08-07 Thread Frederic Weisbecker
This implements bash completion for perf subcommands such as record, report, script, probe, etc... Signed-off-by: Frederic Weisbecker Cc: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian --- tools/perf/Makefile|1 + tools/perf

Re: [PATCH 0/2] perf tools: Basic bash completion support

2012-08-07 Thread Frederic Weisbecker
On Tue, Aug 07, 2012 at 03:19:44PM +0200, Frederic Weisbecker wrote: > Hey, > > Basic bash completion support. Only support perf subcommands and most -e basic > event descriptor (no grouping). > > I just have a small issue with tracepoints because of their ":" in the

Re: [PATCH 0/2] perf tools: Basic bash completion support

2012-08-07 Thread Frederic Weisbecker
On Tue, Aug 07, 2012 at 08:18:12AM -0600, David Ahern wrote: > On 8/7/12 7:22 AM, Frederic Weisbecker wrote: > >On Tue, Aug 07, 2012 at 03:19:44PM +0200, Frederic Weisbecker wrote: > >>Hey, > >> > >>Basic bash completion support. Only support perf subcomma

Re: [PATCH 2/2] perf tools: Support for events bash completion

2012-08-07 Thread Frederic Weisbecker
On Tue, Aug 07, 2012 at 08:48:04AM -0600, David Ahern wrote: > On 8/7/12 7:19 AM, Frederic Weisbecker wrote: > >Add basic bash completion for the -e option in record, top > >and stat subcommands. Only hardware, software and tracepoint > >events are supported. > > >

Re: [PATCH 1/2] perf tools: Initial bash completion support

2012-08-07 Thread Frederic Weisbecker
On Tue, Aug 07, 2012 at 08:11:46AM -0600, David Ahern wrote: > On 8/7/12 7:19 AM, Frederic Weisbecker wrote: > >This implements bash completion for perf subcommands such > >as record, report, script, probe, etc... > > Love it! > > > > >Signed-off-by: Fre

Re: [PATCH 2/2] perf tools: Support for events bash completion

2012-08-07 Thread Frederic Weisbecker
On Tue, Aug 07, 2012 at 05:05:04PM +0100, Alan Cox wrote: > > > COMPREPLY=( $( compgen -W '$cmds' -- "$cur" ) ) > > > + # List possible events for -e option > > > + elif [[ $prev == "-e" && "${COMP_WORDS[1]}" == @(record|stat|top) ]]; > > > then > > > + cmds=$(perf list -

[PATCH 0/2] perf tools: Basic bash completion support v2

2012-08-07 Thread Frederic Weisbecker
uggested by Alan Cox) Frederic Weisbecker (2): perf tools: Initial bash completion support perf tools: Support for events bash completion tools/perf/Makefile|1 + tools/perf/bash_completion | 26 +++ tools/perf/builtin-list.c | 14 --- tools/perf/perf.c

[PATCH 1/2] perf tools: Initial bash completion support

2012-08-07 Thread Frederic Weisbecker
This implements bash completion for perf subcommands such as record, report, script, probe, etc... Signed-off-by: Frederic Weisbecker Cc: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian --- tools/perf/Makefile|1 + tools/perf

[PATCH 2/2] perf tools: Support for events bash completion

2012-08-07 Thread Frederic Weisbecker
Add basic bash completion for the -e option in record, top and stat subcommands. Only hardware, software and tracepoint events are supported. Breakpoints, raw events and events grouping completion need more thinking. Signed-off-by: Frederic Weisbecker Cc: David Ahern Cc: Ingo Molnar Cc: Jiri

Re: [PATCH 1/2] perf tools: Initial bash completion support

2012-08-07 Thread Frederic Weisbecker
On Wed, Aug 08, 2012 at 10:10:02AM +0900, Namhyung Kim wrote: > On Tue, 07 Aug 2012 16:10:54 -0600, David Ahern wrote: > > On 8/7/12 11:00 AM, Frederic Weisbecker wrote: > >> diff --git a/tools/perf/Makefile b/tools/perf/Makefile > >> index 35655c3..ddfb7e5 100644 >

[PATCH 1/3] perf tools: Initial bash completion support

2012-08-09 Thread Frederic Weisbecker
This implements bash completion for perf subcommands such as record, report, script, probe, etc... Signed-off-by: Frederic Weisbecker Cc: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian --- tools/perf/Makefile|1 + tools/perf

[PATCH 0/3] perf tools: Basic bash completion support v3

2012-08-09 Thread Frederic Weisbecker
Changes since v2: - Fix /etc config installation from Namhyung. Frederic Weisbecker (2): perf tools: Initial bash completion support perf tools: Support for events bash completion Namhyung Kim (1): perf tools: Fix /etc config related installation tools/perf/Makefile|3

[PATCH 3/3] perf tools: Fix /etc config related installation

2012-08-09 Thread Frederic Weisbecker
Signed-off-by: Frederic Weisbecker --- tools/perf/Makefile |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 84b4227..a9458b9 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@ -700,6 +700,7 @@ perfexecd

[PATCH 2/3] perf tools: Support for events bash completion

2012-08-09 Thread Frederic Weisbecker
Add basic bash completion for the -e option in record, top and stat subcommands. Only hardware, software and tracepoint events are supported. Breakpoints, raw events and events grouping completion need more thinking. Signed-off-by: Frederic Weisbecker Cc: David Ahern Cc: Ingo Molnar Cc: Jiri

Re: [PATCH 1/3] perf tools: Initial bash completion support

2012-08-09 Thread Frederic Weisbecker
On Thu, Aug 09, 2012 at 01:35:15PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Aug 09, 2012 at 04:31:51PM +0200, Frederic Weisbecker escreveu: > > This implements bash completion for perf subcommands such > > as record, report, script, probe, etc... > > Humm, I get thi

Re: [PATCH 1/3] perf tools: Initial bash completion support

2012-08-09 Thread Frederic Weisbecker
On Thu, Aug 09, 2012 at 02:11:22PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Aug 09, 2012 at 07:00:10PM +0200, Frederic Weisbecker escreveu: > > On Thu, Aug 09, 2012 at 01:35:15PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Thu, Aug 09, 2012 at 04:31:51PM +0200, F

Re: [PATCH 1/3] perf tools: Initial bash completion support

2012-08-09 Thread Frederic Weisbecker
On Thu, Aug 09, 2012 at 02:14:19PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Aug 09, 2012 at 10:40:19AM -0600, David Ahern escreveu: > > On 8/9/12 10:35 AM, Arnaldo Carvalho de Melo wrote: > > >Em Thu, Aug 09, 2012 at 04:31:51PM +0200, Frederic Weisbecker escreveu: >

Re: [PATCH 1/3] perf tools: Initial bash completion support

2012-08-10 Thread Frederic Weisbecker
On Thu, Aug 09, 2012 at 04:08:19PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Aug 09, 2012 at 07:27:06PM +0100, Alan Cox escreveu: > > > > 3rd patch should fix this. > > > > > > Huh? The problem is not /etc/bash_completion.d/ not existing, it exists, > > > its just that I'm not using sudo no

[PATCH 0/4] cputime: Virtual cputime accounting small cleanups and consolidation v2

2012-08-14 Thread Frederic Weisbecker
Hi, No fundamental change in this release but a rebase to solve conflicts against latest tip:/sched/core commits. Thanks. Frederic Weisbecker (4): cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING sched: Move cputime code to its own file cputime: Consolidate vtime handling on context switch

[PATCH 1/4] cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING

2012-08-14 Thread Frederic Weisbecker
S390, ia64 and powerpc all define their own version of CONFIG_VIRT_CPU_ACCOUNTING. Generalize the config and its description to a single place to avoid duplication. Signed-off-by: Frederic Weisbecker Cc: Tony Luck Cc: Fenghua Yu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Martin

[PATCH 3/4] cputime: Consolidate vtime handling on context switch

2012-08-14 Thread Frederic Weisbecker
themselves. Consolidate this by creating a new account_switch_vtime() callback called in generic code right after a context switch and that these archs must implement to flush the prev task cputime and initialize the next task cputime related state. Signed-off-by: Frederic Weisbecker Cc: Tony Luck

[PATCH 2/4] sched: Move cputime code to its own file

2012-08-14 Thread Frederic Weisbecker
Extract cputime code from the giant sched/core.c and put it in its own file. This make it easier to deal with this particular area and de-bloat a bit more core.c Signed-off-by: Frederic Weisbecker Cc: Tony Luck Cc: Fenghua Yu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Martin

[PATCH 4/4] s390: Remove leftover account_tick_vtime() header

2012-08-14 Thread Frederic Weisbecker
The function doesn't seem to exist anymore. Signed-off-by: Frederic Weisbecker Cc: Tony Luck Cc: Fenghua Yu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Peter Zijlstra --- arch/s390/includ

Re: [PATCH 0/4] cputime: Virtual cputime accounting small cleanups and consolidation v2

2012-08-14 Thread Frederic Weisbecker
On Tue, Aug 14, 2012 at 04:16:46PM +0200, Frederic Weisbecker wrote: > Hi, > > No fundamental change in this release but a rebase to solve conflicts > against latest tip:/sched/core commits. > > Thanks. This can be pulled from: git://github.com/fweisbec/linux-dynticks.git

Re: [PATCH v3] Hardware breakpoints: Invoke __perf_event_disable() if interrupts are already disabled

2012-08-15 Thread Frederic Weisbecker
On Wed, Aug 15, 2012 at 11:07:01PM +0530, Naveen N. Rao wrote: > Hi Frederick, > Did you get a chance to take a look at this? > > Regards, > Naveen Yeah, I'm ok with the patch. Peter, are you ok with it? Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

Re: [PATCH 1/4] cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING

2012-08-15 Thread Frederic Weisbecker
On Wed, Aug 15, 2012 at 05:03:47PM +0200, Martin Schwidefsky wrote: > On Tue, 14 Aug 2012 16:16:47 +0200 > Frederic Weisbecker wrote: > > > S390, ia64 and powerpc all define their own version > > of CONFIG_VIRT_CPU_ACCOUNTING. Generalize the config > > and its descr

Re: [PATCH 3/4] cputime: Consolidate vtime handling on context switch

2012-08-15 Thread Frederic Weisbecker
On Wed, Aug 15, 2012 at 05:22:19PM +0200, Martin Schwidefsky wrote: > On Tue, 14 Aug 2012 16:16:49 +0200 > Frederic Weisbecker wrote: > > > The archs that implement virtual cputime accounting all > > flush the cputime of a task when it gets descheduled > > and s

Re: [PATCH 3/4] cputime: Consolidate vtime handling on context switch

2012-08-16 Thread Frederic Weisbecker
On Thu, Aug 16, 2012 at 09:50:32AM +0200, Martin Schwidefsky wrote: > On Wed, 15 Aug 2012 21:28:17 +0200 > Frederic Weisbecker wrote: > > > On Wed, Aug 15, 2012 at 05:22:19PM +0200, Martin Schwidefsky wrote: > > > On Tue, 14 Aug 2012 16:16:49 +0200 > >

Re: [PATCH 1/4] cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING

2012-08-16 Thread Frederic Weisbecker
On Thu, Aug 16, 2012 at 07:38:17PM +1000, Benjamin Herrenschmidt wrote: > On Thu, 2012-08-16 at 09:53 +0200, Martin Schwidefsky wrote: > > Hmm, ok. But then the description should be reworded not to be specific to > > the power architecture (the part of the message about "This also enables > > acco

Re: [PATCH 1/4] cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING

2012-08-16 Thread Frederic Weisbecker
On Thu, Aug 16, 2012 at 04:00:44PM +0200, Martin Schwidefsky wrote: > On Thu, 16 Aug 2012 14:55:59 +0200 > Frederic Weisbecker wrote: > > > On Thu, Aug 16, 2012 at 07:38:17PM +1000, Benjamin Herrenschmidt wrote: > > > On Thu, 2012-08-16 at 09:53 +0200, Martin Schwidefsk

Re: [PATCH 03/17] perf, x86: Add copy_from_user_nmi_nochk for best effort copy

2012-07-25 Thread Frederic Weisbecker
On Sun, Jul 22, 2012 at 02:14:26PM +0200, Jiri Olsa wrote: > Adding copy_from_user_nmi_nochk that provides the best effort > copy regardless the requesting size crossing the task boundary. > > This is going to be useful for stack dump we need in post > DWARF CFI based unwind, where we have predefi

Re: [PATCH 01/17] perf: Unified API to record selective sets of arch registers

2012-07-25 Thread Frederic Weisbecker
can > provide register dump for compat task if needed in the future. > > Signed-off-by: Jiri Olsa > Original-patch-by: Frederic Weisbecker Acked-by: Frederic Weisbecker -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messa

Re: [PATCH 02/17] perf: Add ability to attach user level registers dump to sample

2012-07-25 Thread Frederic Weisbecker
archs that support register dump. > > This is going to be useful to bring Dwarf CFI based stack > unwinding on top of samples. > > Signed-off-by: Jiri Olsa > Original-patch-by: Frederic Weisbecker Acked-by: Frederic Weisbecker -- To unsubscribe from this list: send the line

Re: [PATCH 06/17] perf: Add ability to attach user stack dump to sample

2012-07-25 Thread Frederic Weisbecker
, starting from the > stack pointer, will be useful to make a post mortem dwarf CFI > based stack unwinding. > > Signed-off-by: Jiri Olsa > Signed-off-by: Frederic Weisbecker If you keep the SOB of the author then you need to preserve its authorship (git am --author= / git commit

Re: [PATCH 14/17] perf, tool: Support for dwarf cfi unwinding on post processing

2012-07-25 Thread Frederic Weisbecker
nterface provides following function: > unwind__get_entries > > And callback (specified in above function) to retrieve > the backtrace entries: > typedef int (*unwind_entry_cb_t)(struct unwind_entry *entry, >void *arg); > > Signed-off-by: Jiri Ols

Re: [PATCH 16/17] perf, tool: Add dso data caching

2012-07-25 Thread Frederic Weisbecker
On Sun, Jul 22, 2012 at 02:14:39PM +0200, Jiri Olsa wrote: > Adding dso data caching so we don't need to open/read/close, > each time we want dso data. > > The DSO data caching affects following functions: > dso__data_read_offset > dso__data_read_addr > > Each DSO read tries to find the data

Re: [PATCHv7 00/17] perf: Add backtrace post dwarf unwind

2012-07-25 Thread Frederic Weisbecker
On Sun, Jul 22, 2012 at 02:14:23PM +0200, Jiri Olsa wrote: > hi, > > patches available also as tarball in here: > http://people.redhat.com/~jolsa/perf_post_unwind_v7.tar.bz2 > > v7 changes: >- omitted v6 patches 9 and 15 > They need more work and will be sent separately. I dont want to h

Re: [PATCH 14/17] perf, tool: Support for dwarf cfi unwinding on post processing

2012-07-25 Thread Frederic Weisbecker
On Wed, Jul 25, 2012 at 02:16:55PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Jul 25, 2012 at 07:05:33PM +0200, Frederic Weisbecker escreveu: > > > +#ifdef ARCH_X86_64 > > > +int unwind__arch_reg_id(int regnum) > > > > Please try to avoid __ in functi

Re: [PATCH 03/17] perf, x86: Add copy_from_user_nmi_nochk for best effort copy

2012-07-25 Thread Frederic Weisbecker
On Wed, Jul 25, 2012 at 07:16:43PM +0200, Jiri Olsa wrote: > On Wed, Jul 25, 2012 at 06:11:53PM +0200, Frederic Weisbecker wrote: > > On Sun, Jul 22, 2012 at 02:14:26PM +0200, Jiri Olsa wrote: > > > Adding copy_from_user_nmi_nochk that provides the best effort > > > cop

Re: [PATCH 03/17] perf, x86: Add copy_from_user_nmi_nochk for best effort copy

2012-07-25 Thread Frederic Weisbecker
On Wed, Jul 25, 2012 at 07:30:31PM +0200, Jiri Olsa wrote: > On Wed, Jul 25, 2012 at 07:16:43PM +0200, Jiri Olsa wrote: > > On Wed, Jul 25, 2012 at 06:11:53PM +0200, Frederic Weisbecker wrote: > > > On Sun, Jul 22, 2012 at 02:14:26PM +0200, Jiri Olsa wrote: > > > > A

[PATCH 1/4] cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING

2012-08-17 Thread Frederic Weisbecker
S390, ia64 and powerpc all define their own version of CONFIG_VIRT_CPU_ACCOUNTING. Generalize the config and its description to a single place to avoid duplication. Signed-off-by: Frederic Weisbecker Cc: Tony Luck Cc: Fenghua Yu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Martin

[PATCH 0/4] cputime: Virtual cputime accounting small cleanups and consolidation v3

2012-08-17 Thread Frederic Weisbecker
Hi, In this v3: - Rebase against latest tip:sched/core - Added acks from Martin - Refined help text for the consolidated CONFIG_VIRT_CPU_ACCOUNTING option in the 1st patch. You can pull from: git://github.com/fweisbec/linux-dynticks.git virt-cputime-v3 Thanks. Frederic Weisbecker (4

[PATCH 4/4] s390: Remove leftover account_tick_vtime() header

2012-08-17 Thread Frederic Weisbecker
The function doesn't seem to exist anymore. Signed-off-by: Frederic Weisbecker Acked-by: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Heiko Carstens Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Peter Zijlstra --- arch/s390/includ

[PATCH 2/4] sched: Move cputime code to its own file

2012-08-17 Thread Frederic Weisbecker
Extract cputime code from the giant sched/core.c and put it in its own file. This make it easier to deal with this particular area and de-bloat a bit more core.c Signed-off-by: Frederic Weisbecker Acked-by: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu Cc: Benjamin Herrenschmidt Cc: Paul

[PATCH 3/4] cputime: Consolidate vtime handling on context switch

2012-08-17 Thread Frederic Weisbecker
themselves. Consolidate this by creating a new account_switch_vtime() callback called in generic code right after a context switch and that these archs must implement to flush the prev task cputime and initialize the next task cputime related state. Signed-off-by: Frederic Weisbecker Acked-by: Martin

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-17 Thread Frederic Weisbecker
On Thu, Aug 16, 2012 at 02:23:54PM +1000, Michael Neuling wrote: > Hi, > > I've been trying to get hardware breakpoints with perf to work on POWER7 > but I'm getting the following: > > % perf record -e mem:0x1000 true > > Error: sys_perf_event_open() syscall returned with 28 (No space

Status of adaptive tickless patchset as of august 2012

2012-08-18 Thread Frederic Weisbecker
Hi, I started working on the adaptive nohz patchset by the end of 2010. Since then, I iterated through one big branch: - Nohz tasks (https://lwn.net/Articles/420490/) - Nohz cpusets (https://lwn.net/Articles/455044/) - Nohz cpusets v2 (https://lwn.net/Articles/487599/) - Nohz cpusets v3 (https:/

Re: [PATCH 0/4] cputime: Virtual cputime accounting small cleanups and consolidation v3

2012-08-20 Thread Frederic Weisbecker
On Mon, Aug 20, 2012 at 10:40:12AM +0200, Ingo Molnar wrote: > > * Frederic Weisbecker wrote: > > > Hi, > > > > In this v3: > > > > - Rebase against latest tip:sched/core > > - Added acks from Martin > > - Refined help text for the consolidat

Re: [PATCH 2/6] rcu: Allow rcu_user_enter()/exit() to nest

2012-07-09 Thread Frederic Weisbecker
On Fri, Jul 06, 2012 at 09:27:09AM -0700, Paul E. McKenney wrote: > On Fri, Jul 06, 2012 at 02:00:14PM +0200, Frederic Weisbecker wrote: > > Allow calls to rcu_user_enter() even if we are already > > in userspace (as seen by RCU) and allow calls to rcu_user_exit() > > even if

Re: [PATCH 1/6] rcu: Settle config for userspace extended quiescent state

2012-07-09 Thread Frederic Weisbecker
On Fri, Jul 06, 2012 at 09:31:29AM -0700, Paul E. McKenney wrote: > On Fri, Jul 06, 2012 at 02:00:13PM +0200, Frederic Weisbecker wrote: > > Create a new config option under the RCU menu that put > > CPUs under RCU extended quiescent state (as in dynticks > > idle mode) when

Re: [PATCH 6/6] x86: Exit RCU extended QS on notify resume

2012-07-09 Thread Frederic Weisbecker
On Fri, Jul 06, 2012 at 09:33:38AM -0700, Paul E. McKenney wrote: > On Fri, Jul 06, 2012 at 02:00:18PM +0200, Frederic Weisbecker wrote: > > do_notify_resume() may be called on irq exit but it won't > > be protected between rcu_irq_enter() and rcu_irq_exit() > > and w

Re: [PATCH 2/6] rcu: Allow rcu_user_enter()/exit() to nest

2012-07-09 Thread Frederic Weisbecker
On Sun, Jul 08, 2012 at 06:54:18PM +0300, Avi Kivity wrote: > On 07/06/2012 03:00 PM, Frederic Weisbecker wrote: > > Allow calls to rcu_user_enter() even if we are already > > in userspace (as seen by RCU) and allow calls to rcu_user_exit() > > even if we are already in the

Re: [PATCH 0/4] cputime: Virtual cputime accounting small cleanups and consolidation

2012-07-09 Thread Frederic Weisbecker
On Tue, Jun 19, 2012 at 03:43:07PM +0200, Frederic Weisbecker wrote: > Not sure to which tree this should go. The scheduler one may be. > Anyway if you're fine with it, it is pullable at: > > git://github.com/fweisbec/linux-dynticks.git > virt-cputime Ping. Are yo

Re: [PATCH 6/6] x86: Exit RCU extended QS on notify resume

2012-07-10 Thread Frederic Weisbecker
On Sun, Jul 08, 2012 at 02:17:07PM -0700, Paul E. McKenney wrote: > On Fri, Jul 06, 2012 at 01:43:29PM -0700, Josh Triplett wrote: > > On Fri, Jul 06, 2012 at 09:33:38AM -0700, Paul E. McKenney wrote: > > > On Fri, Jul 06, 2012 at 02:00:18PM +0200, Frederic Weisbecker wrote: >

Re: [PATCH] trace: add ability to set a target task for events (v2)

2012-07-11 Thread Frederic Weisbecker
On Wed, Jul 11, 2012 at 06:14:58PM +0400, Andrew Vagin wrote: > A few events are interesting not only for a current task. > For example, sched_stat_* are interesting for a task, which > wake up. For this reason, it will be good, if such events will > be delivered to a target task too. > > Now a ta

Re: [PATCH] trace: add ability to set a target task for events (v2)

2012-07-11 Thread Frederic Weisbecker
On Wed, Jul 11, 2012 at 04:33:41PM +0200, Peter Zijlstra wrote: > On Wed, 2012-07-11 at 16:31 +0200, Frederic Weisbecker wrote: > > On Wed, Jul 11, 2012 at 06:14:58PM +0400, Andrew Vagin wrote: > > > A few events are interesting not only for a current task. > > > Fo

Re: [PATCH] trace: add ability to set a target task for events (v2)

2012-07-11 Thread Frederic Weisbecker
On Wed, Jul 11, 2012 at 04:38:19PM +0200, Peter Zijlstra wrote: > On Wed, 2012-07-11 at 16:36 +0200, Frederic Weisbecker wrote: > > > > In this case he can just record sched wakeup as well. With sched_switch > > + sched_wakeup, he'll unlikely lose events. > > &

Re: [PATCH] trace: add ability to set a target task for events (v2)

2012-07-11 Thread Frederic Weisbecker
On Wed, Jul 11, 2012 at 04:55:08PM +0200, Peter Zijlstra wrote: > On Wed, 2012-07-11 at 16:48 +0200, Frederic Weisbecker wrote: > > On Wed, Jul 11, 2012 at 04:38:19PM +0200, Peter Zijlstra wrote: > > > On Wed, 2012-07-11 at 16:36 +0200, Frederic Weisbecker wrote: > > >

Re: [PATCH] trace: add ability to set a target task for events (v2)

2012-07-11 Thread Frederic Weisbecker
On Wed, Jul 11, 2012 at 05:12:04PM +0200, Peter Zijlstra wrote: > On Wed, 2012-07-11 at 16:55 +0200, Peter Zijlstra wrote: > > Right.. back when I did that the plan was to make PERF_SAMPLE_PERIOD fix > > that, of course that never seemed to have happened. > > > > With PERF_SAMPLE_PERIOD you can si

[RFC PATCH 00/11] rcu: Userspace RCU extended quiescent state v2

2012-07-11 Thread Frederic Weisbecker
and the overhead is lowered in the off-case. This can be even better if we use jump labels later. Thanks. git://github.com/fweisbec/linux-dynticks.git rcu/user-2 Frederic Weisbecker (11): rcu: Settle config for userspace extended quiescent state rcu: Allow rcu_user_enter()/exit() to

[PATCH 04/11] rcu: Switch task's syscall hooks on context switch

2012-07-11 Thread Frederic Weisbecker
Clear the syscalls hook of a task when it's scheduled out so that if the task migrates, it doesn't run the syscall slow path on a CPU that might not need it. Also set the syscalls hook on the next task if needed. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew

[PATCH 05/11] x86: Syscall hooks for userspace RCU extended QS

2012-07-11 Thread Frederic Weisbecker
Add syscall slow path hooks to notify syscall entry and exit on CPUs that want to support userspace RCU extended quiescent state. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc: Christoph Lameter Cc: Geoff Levand Cc: Gilad

[PATCH 06/11] x86: Exception hooks for userspace RCU extended QS

2012-07-11 Thread Frederic Weisbecker
Add necessary hooks to x86 exception for userspace RCU extended quiescent state support. This includes traps, page fault, debug exceptions, etc... Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc: Christoph Lameter Cc: Geoff

[PATCH 09/11] x86: Use the new schedule_user API on userspace preemption

2012-07-11 Thread Frederic Weisbecker
This way we can exit the RCU extended quiescent state before we schedule a new task from irq/exception exit. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc: Christoph Lameter Cc: Geoff Levand Cc: Gilad Ben Yossef Cc: Hakan

[PATCH 10/11] x86: Exit RCU extended QS on notify resume

2012-07-11 Thread Frederic Weisbecker
back rcu_user_enter() after this function because we know we are going to userspace from there. This complete support for userspace RCU extended quiescent state in x86-64. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc

[PATCH 11/11] rcu: Userspace RCU extended QS selftest

2012-07-11 Thread Frederic Weisbecker
Provide a config option that enables the userspace RCU extended quiescent state on every CPUs by default. This is for testing purpose. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc: Christoph Lameter Cc: Geoff Levand Cc

[PATCH 07/11] rcu: Exit RCU extended QS on kernel preemption after irq/exception

2012-07-11 Thread Frederic Weisbecker
before we call it. To solve this, just call rcu_user_exit() in the beginning of preempt_schedule_irq(). Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc: Christoph Lameter Cc: Geoff Levand Cc: Gilad Ben Yossef Cc: Hakan Akkan

[PATCH 01/11] rcu: Settle config for userspace extended quiescent state

2012-07-11 Thread Frederic Weisbecker
Create a new config option under the RCU menu that put CPUs under RCU extended quiescent state (as in dynticks idle mode) when they run in userspace. This require some contribution from architectures to hook into kernel and userspace boundaries. Signed-off-by: Frederic Weisbecker Cc: Alessio

[PATCH 02/11] rcu: Allow rcu_user_enter()/exit() to nest

2012-07-11 Thread Frederic Weisbecker
from userspace before calling rcu_user_exit(). Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc: Christoph Lameter Cc: Geoff Levand Cc: Gilad Ben Yossef Cc: Hakan Akkan Cc: H. Peter Anvin Cc: Ingo Molnar Cc: Josh Triplett Cc:

[PATCH 03/11] rcu: Ignore userspace extended quiescent state by default

2012-07-11 Thread Frederic Weisbecker
By default we don't want to enter into RCU extended quiescent state while in userspace because doing this produces some overhead (eg: use of syscall slowpath). Set it off by default and ready to run when some feature like adaptive tickless need it. Signed-off-by: Frederic Weisbecker Cc: Al

[PATCH 08/11] rcu: Exit RCU extended QS on user preemption

2012-07-11 Thread Frederic Weisbecker
irq has called rcu_irq_exit() already. Create a new API schedule_user() that calls schedule() inside rcu_user_exit()-rcu_user_enter() in order to protect it. Archs will need to rely on it now to implement user preemption safely. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc

<    7   8   9   10   11   12   13   14   15   16   >