[PATCH] Fix atomicity of TIF update in flush_thread() for x86_64

2007-03-08 Thread Mathieu Desnoyers
() flush_thread() doing a non-atomic thread flag update It applies on 2.6.20. Signed-off-by: Rebecca Schultz [EMAIL PROTECTED] Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/x86_64/kernel/process.c +++ b/arch/x86_64/kernel/process.c @@ -385,14 +385,17 @@ void exit_thread

Re: [PATCH] Fix atomicity of TIF update in flush_thread() for x86_64

2007-03-08 Thread Mathieu Desnoyers
* David Miller ([EMAIL PROTECTED]) wrote: From: Mathieu Desnoyers [EMAIL PROTECTED] Date: Thu, 8 Mar 2007 21:15:53 -0500 Fix atomicity of TIF update in flush_thread() for x86_64 Race : parent process executing : sys_ptrace() (lock_kernel()) (ptrace_get_task_struct(pid

[PATCH] Fix atomicity of TIF update in flush_thread() for powerpc

2007-03-08 Thread Mathieu Desnoyers
() flush_thread() doing a non-atomic thread flag update Applies on 2.6.20. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -476,8 +476,13 @@ void flush_thread(void) #ifdef CONFIG_PPC64 struct

[PATCH] Fix avr32 TIF atomicity in do_debug_priv

2007-03-08 Thread Mathieu Desnoyers
Fix avr32 TIF atomicity in do_debug_priv avr32 updates the thread flags 1 - non atomically and 2 - with the wrong value (for TIF_SINGLE_STEP) in this function. It applies to 2.6.20. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/avr32/kernel/ptrace.c +++ b/arch/avr32/kernel

[PATCH] Fix atomicity of TIF update in flush_thread() for sparc64

2007-03-08 Thread Mathieu Desnoyers
() flush_thread() doing a non-atomic thread flag update It applies on 2.6.20. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c @@ -413,8 +413,13 @@ void flush_thread(void) struct thread_info *t

[PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-08 Thread Mathieu Desnoyers
Fix sparc TIF_USEDFPU flag atomicity Non atomic update of TIF can be very dangerous, except at thread structure creation time. Here I standardize the TIF_USEDFPU usage of the sparc arch. Applies on 2.6.20. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/sparc/kernel/process.c

Re: [PATCH] Fix atomicity of TIF update in flush_thread() for powerpc

2007-03-10 Thread Mathieu Desnoyers
Broken patch. Don't apply. Correct one coming. * Mathieu Desnoyers ([EMAIL PROTECTED]) wrote: Fix atomicity of TIF update in flush_thread() for powerpc Race : parent process executing : sys_ptrace() (lock_kernel()) (ptrace_get_task_struct(pid)) arch_ptrace() ptrace_detach

[PATCH] Fix atomicity of TIF update in flush_thread() for powerpc

2007-03-10 Thread Mathieu Desnoyers
() load_elf_binary() flush_old_exec() flush_thread() doing a non-atomic thread flag update Applies on 2.6.20. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -476,8 +476,13 @@ void flush_thread(void

[PATCH] Fix atomicity of TIF update in flush_thread() for sparc64

2007-03-10 Thread Mathieu Desnoyers
() load_elf_binary() flush_old_exec() flush_thread() doing a non-atomic thread flag update It applies on 2.6.20. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c @@ -413,8 +413,13 @@ void

[PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread Mathieu Desnoyers
Fix sparc TIF_USEDFPU flag atomicity Non atomic update of TIF can be very dangerous, except at thread structure creation time. Here I standardize the TIF_USEDFPU usage of the sparc arch. This fix addresses the issue with *_ti_thread_flag(). Applies on 2.6.20. Signed-off-by: Mathieu Desnoyers

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread Mathieu Desnoyers
-- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo

Djprobes questions

2007-03-12 Thread Mathieu Desnoyers
, does irq_exit() or nmi_exit() (which reenables preemption) but does not do iret yet. My understanding is that it could be scheduled and have a return IP pointing to the code that is being modified. Am I right ? Regards, Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole

Re: Djprobes questions

2007-03-13 Thread Mathieu Desnoyers
* Masami Hiramatsu ([EMAIL PROTECTED]) wrote: Hi Mathieu, Mathieu Desnoyers wrote: Hi Masami, I recently had to add support for inline code patching on i386 to my marker infrastructure. Clearly, it looks like what is done in djprobes, with the main difference that I only patch

[PATCH 00/10] atomic.h : standardizing atomic primitives

2007-02-11 Thread Mathieu Desnoyers
compile fine against : arm i686 ia64 m68k mips mipsel x86_64 ppc 405 powerpc 970 s390 sparc sparc64 I haven't built cross-compilers for other architectures yet. These patches apply on 2.6.20 Signed-off-by : Mathieu Desnoyers [EMAIL PROTECTED] - To unsubscribe from this list: send the line

[PATCH 01/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to alpha

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to alpha Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-alpha/atomic.h +++ b/include/asm-alpha/atomic.h @@ -175,19 +175,62 @@ static __inline__ long atomic64_sub_return(long i, atomic64_t * v) return result

[PATCH 05/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to mips

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to mips Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-mips/atomic.h +++ b/include/asm-mips/atomic.h @@ -291,8 +291,8 @@ static __inline__ int atomic_sub_if_positive(int i, atomic_t * v) return result

[PATCH 01/10] local_t : architecture independant extension

2007-02-11 Thread Mathieu Desnoyers
local_t : architecture independant extension Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-generic/local.h +++ b/include/asm-generic/local.h @@ -33,6 +33,19 @@ typedef struct #define local_add(i,l) atomic_long_add((i),((l)-a)) #define local_sub(i,l) atomic_long_sub((i

[PATCH 06/10] local_t : parisc cleanup

2007-02-11 Thread Mathieu Desnoyers
local_t : parisc cleanup parisc architecture local_t cleanup : use asm-generic/local.h. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-parisc/local.h +++ b/include/asm-parisc/local.h @@ -1,40 +1 @@ -#ifndef _ARCH_PARISC_LOCAL_H -#define _ARCH_PARISC_LOCAL_H - -#include

[PATCH 08/10] local_t : s390 cleanup

2007-02-11 Thread Mathieu Desnoyers
local_t : s390 cleanup s390 architecture local_t cleanup : use asm-generic/local.h. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-s390/local.h +++ b/include/asm-s390/local.h @@ -1,58 +1 @@ -#ifndef _ASM_LOCAL_H -#define _ASM_LOCAL_H - -#include linux/percpu.h -#include

[PATCH 03/10] local_t : i386 extension

2007-02-11 Thread Mathieu Desnoyers
local_t : i386 extension Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-i386/local.h +++ b/include/asm-i386/local.h @@ -2,47 +2,198 @@ #define _ARCH_I386_LOCAL_H #include linux/percpu.h +#include asm/system.h +#include asm/atomic.h typedef struct { - volatile

[PATCH 00/10] local_t : adding and standardising local atomic primitives

2007-02-11 Thread Mathieu Desnoyers
against : arm i686 ia64 m68k mips mipsel x86_64 ppc 405 powerpc 970 s390 sparc sparc64 Signed-off-by : Mathieu Desnoyers [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http

[PATCH 03/10] atomic.h : i386 type safety fix

2007-02-11 Thread Mathieu Desnoyers
at least for x86_64), it would simply accept passing an atomic64_t value as parameter to cmpxchg, xchg and add_unless, having 64 bits inputs casted to 32 bits. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-i386/atomic.h +++ b/include/asm-i386/atomic.h @@ -207,8 +207,8

[PATCH 04/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to ia64

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to ia64 Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-ia64/atomic.h +++ b/include/asm-ia64/atomic.h @@ -88,12 +88,16 @@ ia64_atomic64_sub (__s64 i, atomic64_t *v) return new; } -#define atomic_cmpxchg(v, old

[PATCH 06/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to parisc

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to parisc Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-parisc/atomic.h +++ b/include/asm-parisc/atomic.h @@ -6,7 +6,6 @@ #define _ASM_PARISC_ATOMIC_H_ #include linux/types.h -#include asm/system.h /* * Atomic

[PATCH 09/10] atomic.h : Add atomic64_xchg to s390

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Add atomic64_xchg to s390 Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-s390/atomic.h +++ b/include/asm-s390/atomic.h @@ -215,6 +215,8 @@ static __inline__ void atomic64_set_mask(unsigned long mask, atomic64_t * v) __CSG_LOOP(v, mask, ogr

[PATCH 08/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to sparc64

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to sparc64 Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-sparc64/atomic.h +++ b/include/asm-sparc64/atomic.h @@ -70,12 +70,12 @@ extern int atomic64_sub_ret(int, atomic64_t *); #define atomic_add_negative(i, v

[PATCH 09/10] local_t : sparc64 cleanup

2007-02-11 Thread Mathieu Desnoyers
local_t : sparc64 cleanup sparc64 local_t cleanup : simply use asm-generic/local.h. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-sparc64/local.h +++ b/include/asm-sparc64/local.h @@ -1,40 +1 @@ -#ifndef _ARCH_SPARC64_LOCAL_H -#define _ARCH_SPARC64_LOCAL_H - -#include

[PATCH 05/10] local_t : mips extension

2007-02-11 Thread Mathieu Desnoyers
local_t : mips extension Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-mips/local.h +++ b/include/asm-mips/local.h @@ -1,60 +1,524 @@ -#ifndef _ASM_LOCAL_H -#define _ASM_LOCAL_H +#ifndef _ARCH_MIPS_LOCAL_H +#define _ARCH_MIPS_LOCAL_H #include linux/percpu.h #include

[PATCH 04/10] local_t : ia64 extension

2007-02-11 Thread Mathieu Desnoyers
local_t : ia64 extension Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-ia64/local.h +++ b/include/asm-ia64/local.h @@ -1,50 +1 @@ -#ifndef _ASM_IA64_LOCAL_H -#define _ASM_IA64_LOCAL_H - -/* - * Copyright (C) 2003 Hewlett-Packard Co - * David Mosberger-Tang [EMAIL

[PATCH 07/10] local_t : powerpc extension

2007-02-11 Thread Mathieu Desnoyers
local_t : powerpc extension Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-powerpc/local.h +++ b/include/asm-powerpc/local.h @@ -1 +1,342 @@ -#include asm-generic/local.h +#ifndef _ARCH_POWERPC_LOCAL_H +#define _ARCH_POWERPC_LOCAL_H + +#include linux/percpu.h +#include asm

[PATCH 10/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64 Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-x86_64/atomic.h +++ b/include/asm-x86_64/atomic.h @@ -375,8 +375,8 @@ static __inline__ long atomic64_add_return(long i, atomic64_t *v) long __i = i

[PATCH 10/10] local_t : x86_64 extension

2007-02-11 Thread Mathieu Desnoyers
local_t : x86_64 extension Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-x86_64/local.h +++ b/include/asm-x86_64/local.h @@ -2,49 +2,183 @@ #define _ARCH_X8664_LOCAL_H #include linux/percpu.h +#include asm/atomic.h typedef struct { - volatile long counter

[PATCH 02/10] atomic.h : Complete atomic_long operations in asm-generic

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Complete atomic_long operations in asm-generic Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-generic/atomic.h +++ b/include/asm-generic/atomic.h @@ -9,6 +9,7 @@ */ #include asm/types.h +#include asm/system.h /* * Suppport for atomic_long_t @@ -66,6

[PATCH 07/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to powerpc

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to powerpc Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-powerpc/atomic.h +++ b/include/asm-powerpc/atomic.h @@ -165,7 +165,7 @@ static __inline__ int atomic_dec_return(atomic_t *v) return t; } -#define

[PATCH 02/10] local_t : alpha extension

2007-02-11 Thread Mathieu Desnoyers
local_t : alpha extension Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-alpha/local.h +++ b/include/asm-alpha/local.h @@ -4,37 +4,115 @@ #include linux/percpu.h #include asm/atomic.h -typedef atomic64_t local_t; +typedef struct +{ + atomic_long_t a; +} local_t

[PATCH 00/05] Linux Kernel Markers - kernel 2.6.20

2007-02-11 Thread Mathieu Desnoyers
calls hardirq tracing event when it returns. The following patches apply on 2.6.20. These patches compile fine against : arm i686 ia64 m68k mips mipsel x86_64 ppc 405 powerpc 970 s390 sparc sparc64 Signed-off-by : Mathieu Desnoyers [EMAIL PROTECTED] - To unsubscribe from this list: send the line

[PATCH 04/05] Linux Kernel Markers : i386 optimization

2007-02-11 Thread Mathieu Desnoyers
Linux Kernel Markers : i386 optimization Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- /dev/null +++ b/include/asm-i386/marker.h @@ -0,0 +1,47 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. i386 architecture optimisations. + * + * (C) Copyright 2006 Mathieu

[PATCH 02/05] Linux Kernel Markers, architecture independant code.

2007-02-11 Thread Mathieu Desnoyers
Linux Kernel Markers, architecture independant code. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -121,6 +121,19 @@ __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET

[PATCH 01/05] Linux Kernel Markers : Kconfig menus

2007-02-11 Thread Mathieu Desnoyers
Linux Kernel Markers : Kconfig menus Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- /dev/null +++ b/kernel/Kconfig.marker @@ -0,0 +1,17 @@ +# Code markers configuration + +config MARKERS + bool Activate markers + select MODULES + default n + help + Place

[PATCH 05/05] Linux Kernel Markers, non optimized architectures

2007-02-11 Thread Mathieu Desnoyers
Linux Kernel Markers, non optimized architectures This patch also includes marker code for non optimized architectures. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- /dev/null +++ b/include/asm-arm/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static

[PATCH 03/05] Linux Kernel Markers : powerpc optimization

2007-02-11 Thread Mathieu Desnoyers
Linux Kernel Markers : powerpc optimization Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- /dev/null +++ b/include/asm-powerpc/marker.h @@ -0,0 +1,49 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. PowerPC architecture + * optimisations. + * + * (C) Copyright 2006

Re: [PATCH 10/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64

2007-02-12 Thread Mathieu Desnoyers
* Andi Kleen ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers [EMAIL PROTECTED] writes: /** @@ -402,7 +405,7 @@ static __inline__ long atomic64_sub_return(long i, atomic64_t *v) */ #define atomic_add_unless(v, a, u

Re: [PATCH] atomic.h : atomic_add_unless as inline. Remove system.h atomic.h circular dependency

2007-02-12 Thread Mathieu Desnoyers
applying this against the rest of my atomic.h patches. It applies over the atomic.h standardization patches. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] diff --git a/include/asm-alpha/atomic.h b/include/asm-alpha/atomic.h index 7b4fba8..f5cb7b8 100644 --- a/include/asm-alpha/atomic.h +++ b

Re: [PATCH 07/10] local_t : powerpc extension

2007-02-14 Thread Mathieu Desnoyers
* Andrew Morton ([EMAIL PROTECTED]) wrote: On Sun, 11 Feb 2007 14:18:12 -0500 Mathieu Desnoyers [EMAIL PROTECTED] wrote: local_t : powerpc extension This diff contains changes which are also present in [PATCH 07/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to powerpc

Re: [PATCH 05/05] Linux Kernel Markers, non optimized architectures

2007-02-15 Thread Mathieu Desnoyers
* Andrew Morton ([EMAIL PROTECTED]) wrote: On Sun, 11 Feb 2007 15:03:27 -0500 Mathieu Desnoyers [EMAIL PROTECTED] wrote: Linux Kernel Markers, non optimized architectures This patch also includes marker code for non optimized architectures. I think once we've done this we can nuke

Re: [PATCH 02/05] Linux Kernel Markers, architecture independant code.

2007-02-15 Thread Mathieu Desnoyers
* Andrew Morton ([EMAIL PROTECTED]) wrote: On Sun, 11 Feb 2007 15:03:24 -0500 Mathieu Desnoyers [EMAIL PROTECTED] wrote: Linux Kernel Markers, architecture independant code. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] ... + +#ifndef MARK +#define MARK GEN_MARK

[PATCH] move of_irq_to_resource to prom_parse.c (powerpc)

2007-02-15 Thread Mathieu Desnoyers
on 2.6.20. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/powerpc/kernel/prom_parse.c +++ b/arch/powerpc/kernel/prom_parse.c @@ -1003,3 +1003,18 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq return res; } EXPORT_SYMBOL_GPL

Re: [-mm patch] MARKERS should depend on, not select MODULES

2007-02-15 Thread Mathieu Desnoyers
PROTECTED] Acked-by: Mathieu Desnoyers [EMAIL PROTECTED] --- BTW: Can we get in-kernel users? It could apply to any subsystems that needs hooks. (selinux?) --- linux-2.6.20-mm1/kernel/Kconfig.marker.old2007-02-15 15:54:10.0 +0100 +++ linux-2.6.20-mm1/kernel/Kconfig.marker

Re: [PATCH] local_t : powerpc extension - use long for powerpc32

2007-02-15 Thread Mathieu Desnoyers
should manipulate longs instead of ints, even if they are the same size on a given architecture (ppc32 and mips32 are affectec by this). Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-powerpc/local.h +++ b/include/asm-powerpc/local.h @@ -21,9 +21,9 @@ typedef struct #ifndef

Re: [PATCH] local_t : powerpc extension - use long for powerpc32

2007-02-15 Thread Mathieu Desnoyers
* Kumar Gala ([EMAIL PROTECTED]) wrote: On Feb 15, 2007, at 2:02 PM, Mathieu Desnoyers wrote: * Kumar Gala ([EMAIL PROTECTED]) wrote: is there a reason this isn't local_add_return(long a, local_t *l) on ppc32? (same comment for other functions) - k no, except that we use the code

Re: [PATCH] local_t : powerpc extension - use long for powerpc32

2007-02-15 Thread Mathieu Desnoyers
Please forget about my last email : #define PPC_STLCX stringify_in_c(stdcx.) and #define PPC_STLCX stringify_in_c(stwcx.) are self explaining. :) Mathieu * Kumar Gala ([EMAIL PROTECTED]) wrote: On Feb 15, 2007, at 2:02 PM, Mathieu Desnoyers wrote: * Kumar Gala ([EMAIL

Re: [PATCH] local_t : powerpc extension - shrink powerpc local.h

2007-02-15 Thread Mathieu Desnoyers
local_t : powerpc extension - shrink powerpc local.h By using PPC_LLARX and PPC_STLCX, we can cut in half the size of powerpc local.h. In applies on top of the local_t : powerpc extension - use long for powerpc32 Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-powerpc

Re: [PATCH 00/05] Linux Kernel Markers - kernel 2.6.20

2007-02-15 Thread Mathieu Desnoyers
impact when disabled (advantage of dynamic tracing) and it can be activated dynamically (advantage of dynamic tracing). Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Candidate, École Polytechnique de Montréal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68

Re: sparse chokes on arch/i386/kernel/i8253.c (was: 2.6.20-mm1)

2007-02-15 Thread Mathieu Desnoyers
\ -include linux/marker.h I guess sparse is maybe not using this Makefile or variable ? -- Mathieu Desnoyers Computer Engineering Ph.D. Candidate, École Polytechnique de Montréal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 - To unsubscribe from this list: send the line

[PATCH] sparse chokes on arch/i386/kernel/i8253.c

2007-02-15 Thread Mathieu Desnoyers
. The fix applies on top the the Linux Kernel Markers for 2.6.20. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/Makefile +++ b/Makefile @@ -309,7 +309,8 @@ AFLAGS_KERNEL = LINUXINCLUDE:= -Iinclude \ $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include

Re: sparse chokes on arch/i386/kernel/i8253.c (was: 2.6.20-mm1)

2007-02-15 Thread Mathieu Desnoyers
* Andrew Morton ([EMAIL PROTECTED]) wrote: On Thu, 15 Feb 2007 17:46:56 -0500 Mathieu Desnoyers [EMAIL PROTECTED] wrote: Me too. It's due to the linux-kernel-markers patches. Mathieu, can you take a look please? I will give a deeper look in sparse, but I should say up front that I

Re: [PATCH] sparse chokes on arch/i386/kernel/i8253.c

2007-02-15 Thread Mathieu Desnoyers
* Andrew Morton ([EMAIL PROTECTED]) wrote: On Thu, 15 Feb 2007 19:23:47 -0500 Mathieu Desnoyers [EMAIL PROTECTED] wrote: sparse chokes on arch/i386/kernel/i8253.c Here is a marker fix that puts the correct -i include/linux/marker.h in the top level Makefile so sparse works correctly

Re: [PATCH 00/05] Linux Kernel Markers - kernel 2.6.20

2007-02-15 Thread Mathieu Desnoyers
* Andrew Morton ([EMAIL PROTECTED]) wrote: On Sun, 11 Feb 2007 15:03:22 -0500 Mathieu Desnoyers [EMAIL PROTECTED] wrote: You will find, in the following posts, the latest revision of the Linux Kernel Markers. looks for the documentation I guess the header of include/linux

[PATCH] Linux Kernel Markers Documentation

2007-02-15 Thread Mathieu Desnoyers
Linux Kernel Markers - Documentation Here is some documentation explaining what is/how to use the Linux Kernel Markers. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- /dev/null +++ b/Documentation/marker.txt @@ -0,0 +1,130 @@ +Using the Linux Kernel Markers

Re: [PATCH] Linux Kernel Markers Documentation

2007-02-15 Thread Mathieu Desnoyers
. Will fix, thanks. Regards, Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Candidate, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH] Linux Kernel Markers Documentation - fix

2007-02-15 Thread Mathieu Desnoyers
Linux Kernel Markers Documentation - fix Fixes from Randy's comments. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/Documentation/marker.txt +++ b/Documentation/marker.txt @@ -18,7 +18,7 @@ code is reached. They can be used for tracing (LTTng, LKET over SystemTAP), overall

[PATCH] Move include linux/marker.h to kernel.h

2007-02-16 Thread Mathieu Desnoyers
file. We do that for everything else and markers aren't special in this regard. It seems like the logical solution. This patch moves this include from Makefile to include/linux/kernel.h. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/Makefile +++ b/Makefile @@ -308,9 +308,7

Re: [PATCH] Move include linux/marker.h from Makefile

2007-02-16 Thread Mathieu Desnoyers
, let's simply revert it then (and update the documentation accordingly in a following patch). Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/Makefile +++ b/Makefile @@ -308,9 +308,7 @@ AFLAGS_KERNEL = # Needed to be compatible with the O= option LINUXINCLUDE:= -Iinclude

Re: [PATCH 05/05] Linux Kernel Markers, non optimized architectures

2007-02-16 Thread Mathieu Desnoyers
* Karim Yaghmour ([EMAIL PROTECTED]) wrote: - KRYPTIVA PACKAGED MESSAGE - PACKAGING TYPE: SIGNED Mathieu Desnoyers wrote: The main goal of this config option is for embedded systems which doesn't support live code modification. Maybe we can put that under embedded sytems menu

Re: [PATCH] Add an offset in the cyc2ns computation to fix sched_clock jumps

2007-03-18 Thread Mathieu Desnoyers
= __cycles_2_ns(params, tsc_now); + + params-scale = (100 CYC2NS_SCALE_FACTOR)/cpu_khz; + params-offset += ns_now - __cycles_2_ns(params, tsc_now); + local_irq_restore(flags); + + put_cpu_var(cyc2ns); } /* -- Guillaume -- Mathieu Desnoyers Computer Engineering Ph.D. Student

Re: Bug report : reproducible memory allocator bug in 2.6.20-rc6

2007-03-21 Thread Mathieu Desnoyers
-f6-fa-fb kernel: [802c5d28] cache_flusharray+0x34/0xae Mar 21 06:15:28 x1-6-00-18-f3-f6-fa-fb kernel: [80207678] kmem_cache_free+0x1e6/0x203 Mar 21 06:15:28 x1-6-00-18-f3-f6-fa-fb kernel: [80226799] free_buffer_head+0x24/0x3d -- Mathieu Desnoyers Computer

m68knommu and vmlinux.lds.h RODATA

2007-04-09 Thread Mathieu Desnoyers
Hi Greg, Is there any particular reason why m68knommu does not use the RODATA linker script macro defined in asm-generic/vmlinux.lds.h ? It makes it rather inconvenient to add new RO sections to the kernel. Regards, Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole

V850 and asm-generic/vmlinux.lds.h

2007-04-09 Thread Mathieu Desnoyers
Hi, I am wondering if there is a good reason why the V850 architecture does not use asm-generic/vmlinux.lds.h RODATA linker macro ? It would make addition of new RODATA sections much easier. Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal

[PATCH] atomic-avr32-remove-cast

2007-04-10 Thread Mathieu Desnoyers
atomic-avr32-remove-cast This int cast is superfluous since system.h cmpxchg already casts it in (typeof(*(ptr))). Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-avr32/atomic.h +++ b/include/asm-avr32/atomic.h @@ -173,7 +173,7 @@ static inline int atomic_sub_if_positive

[PATCH] atomic-powerpc-remove-double-defines

2007-04-10 Thread Mathieu Desnoyers
Remove duplicated defines in asm-powerpc/atomic.h. atomic64_inc_not_zero and atomic64_xchg are defined twice. It also removes an unnecessary cast to the atomic_cmpxchg result, which is already done by system.h cmpxchg. It applies on 2.6.21-rc6-mm1. Signed-off-by: Mathieu Desnoyers [EMAIL

[PATCH] markers-linker-generic

2007-04-10 Thread Mathieu Desnoyers
at multiple sites. This patch also creates the __markers_strings section (ro marker strings) and makes sure the __markers section is aligned by putting it before the __ksymtab_strings (not after). It applies on 2.6.21-rc6-mm1. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-generic

[PATCH] markers-linker-alpha

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to alpha. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/alpha/kernel/vmlinux.lds.S +++ b/arch/alpha/kernel/vmlinux.lds.S @@ -90,6 +90,7 @@ SECTIONS _data = .; .data : {/* Data */ *(.data) + EXTRA_RWDATA

[PATCH] markers-linker-arm

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to arm. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -155,6 +155,7 @@ SECTIONS * and the usual data section */ *(.data) + EXTRA_RWDATA

[PATCH] markers-linker-arm26

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to arm26. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/arm26/kernel/vmlinux-arm26-xip.lds.in +++ b/arch/arm26/kernel/vmlinux-arm26-xip.lds.in @@ -112,6 +112,7 @@ SECTIONS * and the usual data section */ *(.data

[PATCH] markers-linker-avr32

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to avr32. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/avr32/kernel/vmlinux.lds.c +++ b/arch/avr32/kernel/vmlinux.lds.c @@ -107,6 +107,7 @@ SECTIONS /* And the rest... */ *(.data.rel*) *(.data

[PATCH] markers-linker-cris

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to cris. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/cris/arch-v10/vmlinux.lds.S +++ b/arch/cris/arch-v10/vmlinux.lds.S @@ -45,6 +45,7 @@ SECTIONS __Sdata = . ; .data : { /* Data */ *(.data

[PATCH] markers-linker-frv

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to frv. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/frv/kernel/vmlinux.lds.S +++ b/arch/frv/kernel/vmlinux.lds.S @@ -137,6 +137,7 @@ SECTIONS .data : {/* Data */ *(.data .data.*) *(.exit.data) + EXTRA_RWDATA

[PATCH] markers-linker-h8300

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to h8300. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/h8300/kernel/vmlinux.lds.S +++ b/arch/h8300/kernel/vmlinux.lds.S @@ -105,7 +105,9 @@ SECTIONS . = ALIGN(0x4) ; *(.data) . = ALIGN(0x4) ; - *(.data

[PATCH] markers-linker-i386

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to i386. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/i386/kernel/vmlinux.lds.S +++ b/arch/i386/kernel/vmlinux.lds.S @@ -78,6 +78,7 @@ SECTIONS . = ALIGN(4096); .data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */ *(.data) + EXTRA_RWDATA

[PATCH] markers-linker-ia64

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to ia64. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/ia64/kernel/vmlinux.lds.S +++ b/arch/ia64/kernel/vmlinux.lds.S @@ -214,7 +214,7 @@ SECTIONS data : { } :data .data : AT(ADDR(.data) - LOAD_OFFSET) - { *(.data) *(.data1) *(.gnu.linkonce.d

[PATCH] markers-linker-m32r

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to m32r. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/m32r/kernel/vmlinux.lds.S +++ b/arch/m32r/kernel/vmlinux.lds.S @@ -51,6 +51,7 @@ SECTIONS *(.spu) *(.spi) *(.data) + EXTRA_RWDATA CONSTRUCTORS } -- Mathieu

[PATCH] markers-linker-m68k

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to m68k. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/m68k/kernel/vmlinux-std.lds +++ b/arch/m68k/kernel/vmlinux-std.lds @@ -29,6 +29,7 @@ SECTIONS .data : {/* Data */ *(.data) + EXTRA_RWDATA CONSTRUCTORS

[PATCH] markers-linker-mips

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to mips. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -64,6 +64,8 @@ SECTIONS *(.data) +EXTRA_RWDATA + CONSTRUCTORS } _gp = . + 0x8000; -- Mathieu Desnoyers Computer

[PATCH] markers-linker-parisc

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to parisc. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/parisc/kernel/vmlinux.lds.S +++ b/arch/parisc/kernel/vmlinux.lds.S @@ -92,6 +92,7 @@ SECTIONS . = ALIGN(L1_CACHE_BYTES); .data : {/* Data */ *(.data) + EXTRA_RWDATA

[PATCH] markers-linker-powerpc

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to powerpc. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S @@ -170,11 +170,13 @@ SECTIONS *(.data) *(.sdata) *(.got.plt) *(.got

[PATCH] markers-linker-ppc

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to ppc. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/ppc/kernel/vmlinux.lds.S +++ b/arch/ppc/kernel/vmlinux.lds.S @@ -73,6 +73,7 @@ SECTIONS *(.sdata2) *(.got.plt) *(.got) *(.dynamic) +EXTRA_RWDATA CONSTRUCTORS } -- Mathieu

[PATCH] markers-linker-s390

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to s390. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S @@ -49,6 +49,7 @@ SECTIONS .data : {/* Data */ *(.data) + EXTRA_RWDATA CONSTRUCTORS

[PATCH] markers-linker-m68knommu

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to m68knommu. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/m68knommu/kernel/vmlinux.lds.S +++ b/arch/m68knommu/kernel/vmlinux.lds.S @@ -134,6 +134,7 @@ SECTIONS { . = ALIGN(4); _sdata = . ; *(.data

[PATCH] markers-linker-sh

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to sh. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/sh/kernel/vmlinux.lds.S +++ b/arch/sh/kernel/vmlinux.lds.S @@ -40,6 +40,7 @@ SECTIONS .data : {/* Data */ *(.data) + EXTRA_RWDATA /* Align the initial ramdisk

[PATCH] markers-linker-sh64

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to sh64. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/sh64/kernel/vmlinux.lds.S +++ b/arch/sh64/kernel/vmlinux.lds.S @@ -79,6 +79,7 @@ SECTIONS .data : C_PHYS(.data) { /* Data */ *(.data) + EXTRA_RWDATA

[PATCH] markers-linker-sparc

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to sparc. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/sparc/kernel/vmlinux.lds.S +++ b/arch/sparc/kernel/vmlinux.lds.S @@ -23,6 +23,7 @@ SECTIONS .data: { *(.data) +EXTRA_RWDATA CONSTRUCTORS } .data1 : { *(.data1) } -- Mathieu

[PATCH] markers-linker-sparc64

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to sparc64. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/sparc64/kernel/vmlinux.lds.S +++ b/arch/sparc64/kernel/vmlinux.lds.S @@ -28,6 +28,7 @@ SECTIONS .data: { *(.data) +EXTRA_RWDATA CONSTRUCTORS } .data1 : { *(.data1

[PATCH] markers-linker-um

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to um. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/um/kernel/dyn.lds.S +++ b/arch/um/kernel/dyn.lds.S @@ -98,6 +98,7 @@ SECTIONS . = ALIGN(KERNEL_STACK_SIZE); /* init_task */ *(.data.init_task) *(.data .data.* .gnu.linkonce.d

[PATCH] markers-linker-v850

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to v850. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/v850/kernel/vmlinux.lds.S +++ b/arch/v850/kernel/vmlinux.lds.S @@ -116,6 +116,7 @@ *(.data) \ *(.exit.data

[PATCH] markers-linker-xtensa

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to xtensa. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/xtensa/kernel/vmlinux.lds.S +++ b/arch/xtensa/kernel/vmlinux.lds.S @@ -144,7 +144,7 @@ SECTIONS _fdata = .; .data : { -*(.data) CONSTRUCTORS +*(.data) EXTRA_RWDATA CONSTRUCTORS

[PATCH] markers-linker-x86_64

2007-04-10 Thread Mathieu Desnoyers
Add EXTRA_RWDATA to x86_64. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/x86_64/kernel/vmlinux.lds.S +++ b/arch/x86_64/kernel/vmlinux.lds.S @@ -59,6 +59,7 @@ SECTIONS /* Data */ .data : AT(ADDR(.data) - LOAD_OFFSET) { *(.data

[PATCH] markers-generic-doc-section-fix-flags

2007-04-10 Thread Mathieu Desnoyers
-optimized markers, is left in .data because it is used very often. The marker flags now only define MF_* which are bitmasks. There is no way to use the bitmask shift value, so it is less error prone. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/linux/marker.h +++ b/include/linux

[PATCH] markers-i386-doc-section-flags-optimized-state-change

2007-04-10 Thread Mathieu Desnoyers
. If not, simply return : we would set it to the same value anyway. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-i386/marker.h +++ b/include/asm-i386/marker.h @@ -1,3 +1,6 @@ +#ifndef _ASM_I386_MARKER_H +#define _ASM_I386_MARKER_H + /* * marker.h * @@ -12,42 +15,54 @@ #ifdef

[PATCH] markers-powerpc-doc-section-flags

2007-04-10 Thread Mathieu Desnoyers
Changes to the powerpc marker header : Use the new MF_* bitmask, use the __markers, __markers_data and __markers_strings sections, add documentation. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-powerpc/marker.h +++ b/include/asm-powerpc/marker.h @@ -1,3 +1,6 @@ +#ifndef

[PATCH] markers-non-opt-arch-alpha-arm26-doc-flags

2007-04-10 Thread Mathieu Desnoyers
Add alpha marker.h, add arm26 marker.h, use the new MF_* bitmask for asm-generic/marker.h. Document asm-generic/marker.h. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- /dev/null +++ b/include/asm-alpha/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic

  1   2   3   4   5   6   7   8   9   10   >