[PATCH -rt] add caller for x86_64 trace from entry.S

2007-04-23 Thread Steven Rostedt
: trace_hardirqs_on_caller (retint_careful) Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Index: linux-2.6.21-rc6-rt0/arch/x86_64/lib/thunk.S === --- linux-2.6.21-rc6-rt0.orig/arch/x86_64/lib/thunk.S +++ linux-2.6.21-rc6-rt0/arch/x86_64/lib/thunk.S

[PATCH -rt] trace cpu idle enter and exit

2007-04-23 Thread Steven Rostedt
. This patch adds the calls of trace_preempt_enter_idle and exit. Where the preempt_enable will ignore interrupts disabled, and turn off/on tracing. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Index: linux-2.6.21-rc6-rt0/arch/x86_64/kernel/process.c

Re: [RFC/PATCH 06/59] mv kernel/acpi/processor.c

2007-03-13 Thread Steven Rostedt
On Tue, 2007-03-13 at 14:32 -0700, Linus Torvalds wrote: On Tue, 13 Mar 2007, Steven Rostedt wrote: Move kernel/acpi/processor.c to the common hold. Please use git diff -M OK, thanks! I'm still quite a git-nubie. I'll update all the move patches. It may take a bit of hand

Re: [RFC/PATCH 00/59] Make common x86 arch area for i386 and x86_64

2007-03-13 Thread Steven Rostedt
On Tue, 2007-03-13 at 14:39 -0700, Linus Torvalds wrote: On Tue, 13 Mar 2007, Steven Rostedt wrote: What we have currently is a bunch of hacks. Seems that people can't make up their mind to what to do. I don't mind the patches, but I'd be a lot happier if it also was a stated

Re: [RFC/PATCH 00/59] Make common x86 arch area for i386 and x86_64

2007-03-13 Thread Steven Rostedt
On Tue, 2007-03-13 at 14:45 -0700, Chris Wright wrote: what about asm-x86/ dir? the asm/ symlink would still point to relevant arch, but the file there could be simply #include asm-x86/file.h ? Would it be acceptable to have an include/asm-x86/ dir with one file? Of course it will open the

[PATCH 04/18] make the cpu/cpufreq/Makefile

2007-03-13 Thread Steven Rostedt
Create the arch/x86/kernel/cpu/cpufreq/Makefile and update the i386 and x86_64 accordingly. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc

[PATCH 02/18] x86 Makefile changes

2007-03-13 Thread Steven Rostedt
Create the arch/x86/Makefile and modify the i386 and x86_64 Makefiles accordingly. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc: Jeremy

[PATCH 13/18] create x86/lib/Makefile

2007-03-13 Thread Steven Rostedt
Create the Makefile in the common hold and adjust the i386 and x86_64 code accordingly. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc

[PATCH 17/18] create x86/oprofile/Makefile

2007-03-13 Thread Steven Rostedt
Create the Makefile in the common hold and adjust the i386 and x86_64 code accordingly. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc

[PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-13 Thread Steven Rostedt
[Hopefully fixed email client to make it to the list this time] [This series has changed by using git-diff -M] Recently I've been doing some work that will affect both the i386 and x86_64 architectures. So there will be common code for both, as well as code that will be unique for the specific

[PATCH 11/18] rm include pointer to x86_64 early_printk.c

2007-03-13 Thread Steven Rostedt
Remove the C file with just the include that points to the x86_64 early_printk.c file. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc: Jeremy

[PATCH 06/18] mv kernel/cpu/cpufreq/speedstep-lib.h

2007-03-13 Thread Steven Rostedt
that include this file will have the change to locate it. So it's not just a straight copy. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc

[PATCH 10/18] make the kernel Makefile

2007-03-13 Thread Steven Rostedt
Create the arch/x86/kernel/Makefile and change the i386 and x86_64 Makefiles accordingly. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc

[PATCH 12/18] rm include pointer to x86_64 tsc_sync.c

2007-03-13 Thread Steven Rostedt
Remove the C file with just the include that points to the x86_64 tsc_sync.c file. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc: Jeremy

[PATCH 07/18] mv kernel/cpu/cpufreq/speedstep-lib.c

2007-03-13 Thread Steven Rostedt
Move kernel/cpu/cpufreq/speedstep-lib.c to the common hold. Also has the slight change to reference speedstep-lib.h that is being moved to include/asm-i386. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc

[PATCH 05/18] mv kernel/cpu/cpufreq/p4-clockmod.c

2007-03-13 Thread Steven Rostedt
Move kernel/cpu/cpufreq/p4-clockmod.c to the common hold. Also has the slight change to reference speedstep-lib.h that is being moved to include/asm-i386. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris

[PATCH 08/18] create x86/kernel/cpu/Makefile

2007-03-13 Thread Steven Rostedt
Create the Makefile in the common hold and adjust the i386 and x86_64 code accordingly. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc

[PATCH 18/18] Straight file moves

2007-03-13 Thread Steven Rostedt
put the moving of the speedstep-lib.h file in it's own file to allow for discussion on that, (ok Chris). Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL

[PATCH 01/18] toplevel Kconfig changes

2007-03-13 Thread Steven Rostedt
Create a toplevel Kconfig for arch/x86 and update the i386 and x86_64 Kconfigs as well. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc

[PATCH 16/18] kconfig for oprofile

2007-03-13 Thread Steven Rostedt
Merge the oprofile configs. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc: Jeremy Fitzhardinge [EMAIL PROTECTED] diff --git a/arch/x86_64

[PATCH 09/18] create x86/kernel/cpu/mcheck/Makefile

2007-03-13 Thread Steven Rostedt
Create the Makefile in the common hold and adjust the i386 and x86_64 code accordingly. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc

[PATCH 15/18] create x86/mm/Makefile

2007-03-13 Thread Steven Rostedt
Create the Makefile in the common hold and adjust the i386 and x86_64 code accordingly. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc

[PATCH 14/18] rm include pointer to i386 msr-on-cpu.c file

2007-03-13 Thread Steven Rostedt
Remove the C file with just the include that points to the i386 msr-on-cpu.c file. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc: Jeremy

[PATCH 03/18] acpi Makefile updates

2007-03-13 Thread Steven Rostedt
Create the arch/x86/acpi/Makefile, and remove the associate stuff from the i386 and x86_64. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] Cc: Andi Kleen [EMAIL PROTECTED] Cc

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-14 Thread Steven Rostedt
On Wed, 2007-03-14 at 11:36 +0100, Andi Kleen wrote: Steven Rostedt [EMAIL PROTECTED] writes: So I spent last night hacking up something to try to make a common ground for all code that is shared between x86_64 and i386. I called this arch/x86 NACK. I think the current ways

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-14 Thread Steven Rostedt
On Wed, 2007-03-14 at 13:53 +0100, Ingo Molnar wrote: * Andi Kleen [EMAIL PROTECTED] wrote: Steven Rostedt [EMAIL PROTECTED] writes: So I spent last night hacking up something to try to make a common ground for all code that is shared between x86_64 and i386. I called

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-14 Thread Steven Rostedt
On Wed, 2007-03-14 at 14:05 +0100, Andi Kleen wrote: The thing is others and I (and you) are working on getting paravirt_ops working for x86_64. There's a lot of overlap between i386 and x86_64. Right now the i386 is ahead of x86_64 and the code seems to be put more in the arch/i386 arch.

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-14 Thread Steven Rostedt
On Wed, 2007-03-14 at 14:41 +0100, Ingo Molnar wrote: hm. Do you have any numbers handy - what is the end-result of your unification work, how many lines of code were unified, compared to the total body of code in i386 and x86_64? Well, I wasn't combining code that wasn't already combined

Re: [PATCH 18/18] Straight file moves

2007-03-14 Thread Steven Rostedt
On Wed, 2007-03-14 at 08:44 -0700, Linus Torvalds wrote: On Wed, 14 Mar 2007, Steven Rostedt wrote: Here's a list of files that were moved from either i386 or x86_64 over to the arch/x86 directory. Well, this means that your patch series doesn't actually *compile* as a series

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-14 Thread Steven Rostedt
On Wed, 2007-03-14 at 17:33 +0100, Jan Engelhardt wrote: On Mar 14 2007 10:46, Steven Rostedt wrote: symbolic links perhaps? In that case i'd also introduce a common naming scheme: x86_early_printk.c - to make sure we know it right away that those files are bi-arch. Does the Linux

[PATCH take3 07/20] alternative.c switch

2007-03-14 Thread Steven Rostedt
Move the alternative.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index 556da60..44c7d89 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -7,7 +7,7 @@ extra-y := head.o

[PATCH take3 08/20] msr.c switch

2007-03-14 Thread Steven Rostedt
Move the msr.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index 44c7d89..5276349 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -14,7 +14,6 @@ obj-y

[PATCH take3 10/20] microcode.c switch

2007-03-14 Thread Steven Rostedt
Move the microcode.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index 4437181..ac925bc 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -14,7 +14,6 @@ obj-y

[PATCH take3 03/20] bootflag.c switch

2007-03-14 Thread Steven Rostedt
Move the bootflag.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index c8fe439..4622355 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -6,7 +6,7 @@ extra-y := head.o init_task.o

[PATCH take3 01/20] early_printk.c switch

2007-03-14 Thread Steven Rostedt
Move the early_printk.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index 4ae3dcf..a57040d 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -35,7 +35,6 @@ obj-$(CONFIG_ACPI_SRAT

[PATCH take3 18/20] stacktrace.c switch

2007-03-14 Thread Steven Rostedt
Move the stacktrace.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index 72e11f7..a5cf2e7 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -9,7 +9,6 @@ obj-y := process.o signal.o

[PATCH take3 04/20] quirks.c switch

2007-03-14 Thread Steven Rostedt
Move the quirks.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index 4622355..c5c62af 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -7,7 +7,7 @@ extra-y := head.o init_task.o

[PATCH take3 16/20] acpi files switched

2007-03-14 Thread Steven Rostedt
Moved the shared files that were in arch/i386/kernel/acpi to the common area. Note, there still exists files in both archs in acpi. Since there's code there that is unique to the arch. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/acpi/Makefile b/arch/i386/kernel

[PATCH take3 19/20] hugetlbpage.c switch

2007-03-14 Thread Steven Rostedt
Move the hugetlbpage.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/Makefile b/arch/i386/Makefile index d73a830..06dd07e 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile @@ -102,6 +102,7 @@ libs-y += arch

[PATCH take3 05/20] i8237.c switch

2007-03-14 Thread Steven Rostedt
Move the i8237.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index c5c62af..1052659 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -7,7 +7,7 @@ extra-y := head.o init_task.o

[PATCH take3 06/20] topology.c switch

2007-03-14 Thread Steven Rostedt
Move the topology.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index 1052659..556da60 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -7,7 +7,7 @@ extra-y := head.o init_task.o

[PATCH take3 17/20] k8.c switch

2007-03-14 Thread Steven Rostedt
Move the k8.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index ce1f742..72e11f7 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -33,7 +33,6 @@ obj-$(CONFIG_EFI

[PATCH take3 09/20] cpuid.c switch

2007-03-14 Thread Steven Rostedt
Move the cpuid.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index 5276349..4437181 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -14,7 +14,6 @@ obj-y

[PATCH take3 11/20] pcspeaker.c switch

2007-03-14 Thread Steven Rostedt
Move the pcspeaker.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index ac925bc..ce1f742 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -37,7 +37,6 @@ obj-$(CONFIG_K8_NB

[PATCH take3 13/20] therm_throt.c switch

2007-03-14 Thread Steven Rostedt
Move the therm_throt.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/cpu/mcheck/Makefile b/arch/i386/kernel/cpu/mcheck/Makefile index f1ebe1c..30808f3 100644 --- a/arch/i386/kernel/cpu/mcheck/Makefile +++ b/arch/i386/kernel/cpu/mcheck/Makefile

[PATCH take3 14/20] intel_cacheinfo.c switch

2007-03-14 Thread Steven Rostedt
Move the intel_cacheinfo.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/cpu/Makefile b/arch/i386/kernel/cpu/Makefile index f8eaef8..e484d74 100644 --- a/arch/i386/kernel/cpu/Makefile +++ b/arch/i386/kernel/cpu/Makefile @@ -8,7 +8,7 @@ obj-y

[PATCH take3 02/20] tsc_sync.c switch

2007-03-14 Thread Steven Rostedt
Move tsc_sync.c to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index a57040d..c8fe439 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -18,7 +18,7 @@ obj-$(CONFIG_X86_MSR

[PATCH take3 15/20] cpufreq files switched

2007-03-14 Thread Steven Rostedt
to simplify this patch. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Cc: Chris Wright [EMAIL PROTECTED] diff --git a/arch/i386/kernel/cpu/cpufreq/Makefile b/arch/i386/kernel/cpu/cpufreq/Makefile index 560f776..49c4ca4 100644 --- a/arch/i386/kernel/cpu/cpufreq/Makefile +++ b/arch/i386/kernel/cpu

[PATCH take3 20/20] oprofile files switched

2007-03-14 Thread Steven Rostedt
Move the oprofile files from arch/i386/oprofile to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig index 53d6237..137c063 100644 --- a/arch/i386/Kconfig +++ b/arch/i386/Kconfig @@ -1226,7 +1226,7 @@ source fs/Kconfig menu

[PATCH take3 00/20] Make common x86 arch area for i386 and x86_64 - Take 3

2007-03-14 Thread Steven Rostedt
Once again here's an attempt to put the shared files of x86_64 and i386 into a separate directory. This time, I took the pains to make sure that each patch in this series compiles after it is applied. I did this on both x86_64 as well as i386, with the affected files config options turned on. I

[PATCH take3 12/20] mtrr directory switch

2007-03-14 Thread Steven Rostedt
Move the mtrr directory over to the common area. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] diff --git a/arch/i386/kernel/cpu/Makefile b/arch/i386/kernel/cpu/Makefile index 010aecf..f8eaef8 100644 --- a/arch/i386/kernel/cpu/Makefile +++ b/arch/i386/kernel/cpu/Makefile @@ -15,5 +15,4 @@ obj

Re: [PATCH take3 16/20] acpi files switched

2007-03-15 Thread Steven Rostedt
On Thu, 2007-03-15 at 02:36 -0400, Len Brown wrote: On Thursday 15 March 2007 01:13, Steven Rostedt wrote: Moved the shared files that were in arch/i386/kernel/acpi to the common area. When I do a make cscope on an i386 or an x86_64 box, will it find these files in the common area

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-15 Thread Steven Rostedt
On Thu, 2007-03-15 at 17:06 +0100, Andi Kleen wrote: Well I just see a lot of pain from these patches but I doubt they will avoid any bugs. If people don't compile test both archs they will always likely break on another. There are lots of subtle dependencies that are not expressed in the

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-15 Thread Steven Rostedt
On Thu, 2007-03-15 at 12:47 -0400, Steven Rostedt wrote: On Thu, 2007-03-15 at 17:06 +0100, Andi Kleen wrote: Well I just see a lot of pain from these patches but I doubt they will avoid any bugs. If people don't compile test both archs they will always likely break on another

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-15 Thread Steven Rostedt
On Thu, 2007-03-15 at 18:01 +0100, Andi Kleen wrote: Oops, sorry, you did say in the includes. Yeah, that holds the same crap that I'm talking about. It's a simple and obvious solution that does exactly what it is supposed to do. Why do you call it crap? Yes, it's a simple solution.

Re: [patch 05/26] Xen-paravirt_ops: paravirt_ops: hooks to set up initial pagetable

2007-03-16 Thread Steven Rostedt
On Fri, 2007-03-16 at 11:39 -0700, Jeremy Fitzhardinge wrote: Ingo Molnar wrote: + /* Make sure kernel address space is empty so that a pagetable + will be allocated for it. */ comment style. As you've noticed its a comment style I use quite often. I use it for

Re: Kernel halted after patching RT_PREEMPT patch with NO DEBUG MESSEGE

2007-02-14 Thread Steven Rostedt
[Content-Type: multipart/mixed; boundary==neXtPaRt_1171455051] Please do not post to LKML (or to any Linux related site) in any other format than plain text. That alone will get you ignored most of the time. On Wed, 2007-02-14 at 18:11 +0530, Alim Akhtar wrote: hI all I have applied

[PATCH RT] update of lpptest

2007-02-16 Thread Steven Rostedt
@@ -3,11 +3,42 @@ * * Copyright (C) 2005 Thomas Gleixner, Ingo Molnar * + * Resurrected by Steven Rostedt: + * - Slight code clean up. + * - Remove dependency on TSC (getnstimeofday is good enough) + * * licensed under the GPL * * You need to have CONFIG_PARPORT disabled

Re: [patch 1/2] sched: fix idle load balancing in softirqd context

2007-02-17 Thread Steven Rostedt
On Fri, 16 Feb 2007, Siddha, Suresh B wrote: Periodic load balancing in recent kernels happen in the softirq. In certain -rt configurations, these softirqs are handled in softirqd context. And hence the check for idle processor was always returning busy (as nr_running 1). This patch

[PATCH] Lguest launcher, child starving parent

2007-04-05 Thread Steven Rostedt
== -1) or the device should be ignored (fd = 0). Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Index: linux-2.6-lguest/Documentation/lguest/lguest.c === --- linux-2.6-lguest.orig/Documentation/lguest/lguest.c 2007-04-05 16:13

[PATCH -rt] fix setting of preempt_max_latency and preempt_thresh on 64 bit systems

2007-03-27 Thread Steven Rostedt
is in sysctl.c where preempt_max_latency can be modified. On systems where cycle_t is greater than the size of int (x86_64) we only write to the 4 LSB. Here's the patch: -- Steve Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Index: linux-2.6.21-rc5/kernel/sysctl.c

Re: [PATCH -rt] fix setting of preempt_max_latency and preempt_thresh on 64 bit systems

2007-03-27 Thread Steven Rostedt
On Tue, 2007-03-27 at 21:15 +0200, Andreas Mohr wrote: Maybe fix up all the other myriads of sysctl entries which use a rather non-precise generic sizeof(int) as well? Or doesn't that make sense? No, it does make sense Maybe this is because it's security relevant and you'd better make sure

[PATCH] lguest32 kallsyms backtrace of guest.

2007-04-04 Thread Steven Rostedt
or runtime switch to turn it off. - Send to the launcher the dump instead of printk. - make modules work too. Also I need to change the %u of the bad read print to a %x, because seeing 0x200227d2 is better than seeing 537012178 for addresses. Signed-off-by: Steven Rostedt [EMAIL PROTECTED

[PATCH] Lguest32, use guest page tables to find paddr for emulated instructions

2007-04-04 Thread Steven Rostedt
emulated instructions. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Index: linux-2.6.21-rc5-mm2/drivers/lguest/core.c === --- linux-2.6.21-rc5-mm2.orig/drivers/lguest/core.c +++ linux-2.6.21-rc5-mm2/drivers/lguest/core.c @@ -160,11

[PATCH] Lguest32 print hex on bad reads and writes

2007-04-04 Thread Steven Rostedt
Currently the lguest32 error messages from bad reads and writes prints a decimal integer for addresses. This is pretty annoying. So this patch changes those to be hex outputs. This is applied on top of my debug patch. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Index: linux-2.6.21-rc5-mm2

Re: [PATCH] Lguest32 print hex on bad reads and writes

2007-04-04 Thread Steven Rostedt
On Wed, 2007-04-04 at 23:06 -0400, Kyle Moffett wrote: (Erk, I wonder what I was thinking when I wrote that?) Can I ask for %#x (or 0x%x)? I'm easily confused. How about %p for pointers? But that would require casting the numbers to pointers. -- Steve - To unsubscribe from this

Re: [PATCH] lguest32 kallsyms backtrace of guest.

2007-04-04 Thread Steven Rostedt
On Thu, 2007-04-05 at 12:54 +1000, Rusty Russell wrote: This is a cool idea, but there are two issues with this patch. The first is that it's 500 lines of code: that's around +10% on lguest's total code size! The second is that it conflicts with the medium-term plan to allow any

Re: [PATCH] Lguest32, use guest page tables to find paddr for emulated instructions

2007-04-04 Thread Steven Rostedt
On Thu, 2007-04-05 at 12:59 +1000, Rusty Russell wrote: On Wed, 2007-04-04 at 15:07 -0400, Steven Rostedt wrote: Yeah, I haven't tried loading random modules but I can imagine this does happen (what module was it, BTW?) I have no idea of which module it crashed on. I didn't investigate

Re: [RFC PATCH 02/11] Add fastcall to do_IRQ for i386

2008-01-07 Thread Steven Rostedt
On Sun, 6 Jan 2008, H. Peter Anvin wrote: I thought we had dropped support for the non-REGPARM case, so why don't we just make it work for REGPARM and be done with it? I'm working on that ;-) -- Steve -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Hang on bootup when installing cpu idle menu

2008-01-07 Thread Steven Rostedt
Hi, I've notice this hang on bootup every so often. Sometimes it hangs for a second and sometimes it can hang for hours. Always at the same location. This is a soft hang. That is, interrupts are still enabled, and I'm able to perform a sysrq-t. Here's the problem child: Call Trace: [c062cd67]

[RFC PATCH] kick sleeping idle CPUS on cpu_idle_wait

2008-01-07 Thread Steven Rostedt
? Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86/kernel/process_32.c | 36 arch/x86/kernel/process_64.c | 28 2 files changed, 56 insertions(+), 8 deletions(-) Index: linus.git/arch/x86/kernel/process_32.c

[PATCH] Kick CPUS that might be sleeping in cpus_idle_wait

2008-01-09 Thread Steven Rostedt
. This is common on bootup when switching cpu idle governors. This patch gives those CPUS that don't check in an IPI kick. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86/kernel/process_32.c | 11 +++ arch/x86/kernel/process_64.c | 11 +++ 2 files changed, 22 insertions

Re: [PATCH] Kick CPUS that might be sleeping in cpus_idle_wait

2008-01-09 Thread Steven Rostedt
On Wed, 2008-01-09 at 15:42 -0500, Steven Rostedt wrote: This patch is different than the first patch I sent out. This one just sends an IPI to all CPUS that don't check in after 1 sec. Sometimes cpu_idle_wait gets stuck because it might miss CPUS that are already in idle, have no tasks

[RFC PATCH 09/22 -v2] mcount tracer show task comm and pid

2008-01-09 Thread Steven Rostedt
-- [80251891] remove_wait_queue+0x45/0x4a CPU 0: sshd:2605 [802a18b3] fput+0x9/0x1b -- [802ad7c6] free_poll_entry+0x26/0x2a Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/tracing/tracer.c |6 +- lib/tracing/tracer.h |3 +++ 2 files changed, 8 insertions(+), 1

[RFC PATCH 02/22 -v2] Annotate core code that should not be traced

2008-01-09 Thread Steven Rostedt
Mark with notrace functions in core code that should not be traced. The notrace attribute will prevent gcc from adding a call to mcount on the annotated funtions. Signed-off-by: Arnaldo Carvalho de Melo [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib

[RFC PATCH 12/22 -v2] separate out the percpu date into a percpu struct

2008-01-09 Thread Steven Rostedt
For better cacheline performance, this patch creates a separate struct for each CPU with the percpu data grouped together. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/tracing/tracer.c | 42 +++--- lib/tracing/tracer.h | 12 2 files

[RFC PATCH 06/22 -v2] mcount based trace in the form of a header file library

2008-01-09 Thread Steven Rostedt
that is supposed to be used only in a debug kernel and that has to reduce to the bare minimum the per function call overhead of mcount based tracing. Signed-off-by: Arnaldo Carvalho de Melo [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/tracing/Kconfig| 12 +++ lib

[RFC PATCH 01/22 -v2] Add basic support for gcc profiler instrumentation

2008-01-09 Thread Steven Rostedt
to be registered. [This code has been highly hacked by Steven Rostedt, so don't blame Arnaldo for all of this ;-) ] Signed-off-by: Arnaldo Carvalho de Melo [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- Makefile |4 ++ arch/x86/Kconfig

[RFC PATCH 14/22 -v2] time keeping add cycle_raw for actual incrementation

2008-01-09 Thread Steven Rostedt
should be changed and we should use that for this patch). Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Acked-by: John Stultz [EMAIL PROTECTED] --- include/linux/clocksource.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux-compile-i386.git/include/linux/clocksource.h

[RFC PATCH 10/22 -v2] Add a symbol only trace output

2008-01-09 Thread Steven Rostedt
/0x22 CPU 0: sshd:2611 _spin_lock+0xe/0x7a -- __qdisc_run+0xba/0x1a1 CPU 1: swapper:0 atomic_notifier_call_chain+0x9/0x16 -- __exit_idle+0x2c/0x2e CPU 1: swapper:0 __atomic_notifier_call_chain+0xe/0x56 -- atomic_notifier_call_chain+0x14/0x16 Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib

[RFC PATCH 03/22 -v2] x86_64: notrace annotations

2008-01-09 Thread Steven Rostedt
Add notrace annotation to x86_64 specific files. Signed-off-by: Arnaldo Carvalho de Melo [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86/kernel/head64.c |2 +- arch/x86/kernel/setup64.c|4 ++-- arch/x86/kernel/smpboot_64.c |2 +- 3 files changed

[RFC PATCH 18/22 -v2] Sort trace by timestamp

2008-01-09 Thread Steven Rostedt
Now that each entry has a reliable timestamp, we can use the timestamp as the source of sorting the trace and remove the atomic increment. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/tracing/tracer.c |3 +-- lib/tracing/tracer.h |2 -- 2 files changed, 1 insertion(+), 4

[RFC PATCH 13/22 -v2] handle accurate time keeping over long delays

2008-01-09 Thread Steven Rostedt
Handle accurate time even if there's a long delay between accumulated clock cycles. Signed-off-by: John Stultz [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86/kernel/vsyscall_64.c |5 ++- include/asm-x86/vgtod.h |2 - include/linux/clocksource.h

[RFC PATCH 15/22 -v2] initialize the clock source to jiffies clock.

2008-01-09 Thread Steven Rostedt
clocksource_jiffies, so that any early user of clocksource_read will not crash. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Acked-by: John Stultz [EMAIL PROTECTED] --- include/linux/clocksource.h |3 +++ kernel/time/timekeeping.c |9 +++-- 2 files changed, 10 insertions(+), 2

[RFC PATCH 20/22 -v2] Add latency_trace format tor tracer

2008-01-09 Thread Steven Rostedt
[f3675f48] 1595.135ms (+0.003ms): _spin_lock+0x8/0x18 c0630690 (hrtimer_interrupt+0x6e/0x1b0 c0449c56) Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/tracing/tracer.c | 454 +-- lib/tracing/tracer.h | 13 + 2 files changed, 414 insertions

[RFC PATCH 16/22 -v2] add get_monotonic_cycles

2008-01-09 Thread Steven Rostedt
The latency tracer needs a way to get an accurate time without grabbing any locks. Locks themselves might call the latency tracer and cause at best a slow down. This patch adds get_monotonic_cycles that returns cycles from a reliable clock source in a monotonic fashion. Signed-off-by: Steven

[RFC PATCH 05/22 -v2] add notrace annotations for NMI routines

2008-01-09 Thread Steven Rostedt
PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86/kernel/nmi_32.c |2 +- arch/x86/kernel/nmi_64.c |2 +- arch/x86/kernel/traps_32.c |4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) Index: linux-compile-i386.git/arch/x86/kernel/nmi_32.c

[RFC PATCH 11/22 -v2] Reset the tracer when started

2008-01-09 Thread Steven Rostedt
This patch resets the trace when it is started by the user. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/tracing/tracer.c | 14 ++ 1 file changed, 14 insertions(+) Index: linux-compile-i386.git/lib/tracing/tracer.c

[RFC PATCH 17/22 -v2] Add timestamps to tracer

2008-01-09 Thread Steven Rostedt
Add timestamps to trace entries. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/tracing/tracer.c | 16 lib/tracing/tracer.h |1 + 2 files changed, 17 insertions(+) Index: linux-compile-i386.git/lib/tracing/tracer.c

[RFC PATCH 04/22 -v2] add notrace annotations to vsyscall.

2008-01-09 Thread Steven Rostedt
Add the notrace annotations to some of the vsyscall functions. Note: checkpatch errors on the define of vsyscall_fn because it thinks that it is a complex macro that needs paranthesis. Unfortunately we can't put paranthesis on this macro. Signed-off-by: Steven Rostedt [EMAIL PROTECTED

[RFC PATCH 08/22 -v2] mcount tracer output file

2008-01-09 Thread Steven Rostedt
/0x56 CPU 1: [802161c8] mce_idle_callback+0x9/0x2f -- [804946b3] notifier_call_chain+0x38/0x60 This is in the format of the output when KALLSYMS is defined. CPU CPU#: [IP] func -- [Parent-IP] parent-func Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/tracing/tracer.c

[RFC PATCH 07/22 -v2] tracer add debugfs interface

2008-01-09 Thread Steven Rostedt
This patch adds an interface into debugfs. /debugfs/tracing/ctrl echoing 1 into the ctrl file turns on the tracer, and echoing 0 turns it off. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/tracing/tracer.c | 87 ++- lib/tracing

[RFC PATCH 19/22 -v2] speed up the output of the tracer

2008-01-09 Thread Steven Rostedt
The current method of printing out the trace is on every read, do a linear search for the next entry to print. This patch remembers the next entry to look at in the iterator, and if the next read is sequential, it can start reading from the next location. Signed-off-by: Steven Rostedt [EMAIL

[RFC PATCH 21/22 -v2] Split out specific tracing functions

2008-01-09 Thread Steven Rostedt
Several different types of tracing needs to use the same core functions. This patch separates the core functions from more specific onecs to allow for future tracing methods. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/tracing/Kconfig|6 lib/tracing/Makefile

[RFC PATCH 22/22 -v2] Trace irq disabled critical timings

2008-01-09 Thread Steven Rostedt
1dNs3 102us : _spin_unlock_irqrestore+0x32/0x5f (e1000_update_stats+0x641/0x64c [e1000]) swapper-0 1dNs3 102us : trace_hardirqs_on_caller+0x75/0x89 (_spin_unlock_irqrestore+0x32/0x5f) vim:ft=help === Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86/kernel/process_64.c

[RFC PATCH 00/22 -v2] mcount and latency tracing utility -v2

2008-01-09 Thread Steven Rostedt
[ version 2 of mcount patches: changes include: Removal of most notrace. Even though it may clutter a bit, we can always add more later. Removal of REGPARM. No changes is made with respect to that. Cleaned up Makefile and used Kconfig for config dependencies. Some other minor

Re: [PATCH] Kick CPUS that might be sleeping in cpus_idle_wait

2008-01-09 Thread Steven Rostedt
On Wed, 9 Jan 2008, Andrew Morton wrote: Subject: [PATCH] Kick CPUS that might be sleeping in cpus_idle_wait s/cpus_/cpu_/ I've been up to 4am writing patches. I must be seeing double :-/ { unsigned int cpu, this_cpu = get_cpu(); @@ -228,6 +232,13 @@ void cpu_idle_wait(void)

Re: [RFC PATCH 13/22 -v2] handle accurate time keeping over long delays

2008-01-09 Thread Steven Rostedt
On Wed, 9 Jan 2008, john stultz wrote: --- arch/x86/kernel/vsyscall_64.c |5 ++- include/asm-x86/vgtod.h |2 - include/linux/clocksource.h | 58 -- kernel/time/timekeeping.c | 35 + 4 files

Re: [RFC PATCH 13/22 -v2] handle accurate time keeping over long delays

2008-01-09 Thread Steven Rostedt
On Wed, 9 Jan 2008, john stultz wrote: Index: linux-compile-i386.git/kernel/time/timekeeping.c === --- linux-compile-i386.git.orig/kernel/time/timekeeping.c 2008-01-09 14:07:34.0 -0500 +++

Re: [PATCH] Kick CPUS that might be sleeping in cpus_idle_wait

2008-01-10 Thread Steven Rostedt
On Thu, 10 Jan 2008, Ingo Molnar wrote: FYI, I just hit this hang on 2.6.24-rc6 without any extra patches. So, unless 2.6.24-rc7 did anything to fix this issue, this is a high priority bug (IMHO). i'm wondering why this only triggered now. Is this something new in 2.6.24? It only

  1   2   3   4   5   6   7   8   9   10   >