[patch 0/2] Sorted Module List for 2.6.23-rc6-mm1

2007-09-18 Thread Mathieu Desnoyers
Hi Andrew, Here is the updated sorted module list, required by the linux kernel markers. It applies to 2.6.23-rc6-mm1 in this order: seq_file_sorted.patch module.c-sort-module-list.patch Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP

[patch 1/2] Seq_file add support for sorted list

2007-09-18 Thread Mathieu Desnoyers
the buffer has been emptied. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- fs/seq_file.c| 47 +++ include/linux/seq_file.h | 20 2 files changed, 67 insertions(+) Index: linux-2.6-lttng/fs/seq_file.c

[patch 2/2] Sort module list by pointer address to get coherent sleepable seq_file iterators

2007-09-18 Thread Mathieu Desnoyers
implemented in module.c for that. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- kernel/module.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) Index: linux-2.6-lttng/kernel/module.c

[PATCH] Combine instrumentation menus in kernel/Kconfig.instrumentation

2007-09-18 Thread Mathieu Desnoyers
you did for avr32 seems more on the right track to me: make _one_ Instrumentation support menu that includes PROFILING, OPROFILE, KPROBES, and MARKERS and then use (source) that in all of the arches. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Randy Dunlap [EMAIL PROTECTED

[patch 0/4] Linux Kernel Markers for 2.6.23-rc6-mm1

2007-09-18 Thread Mathieu Desnoyers
-menu.patch linux-kernel-markers-documentation.patch linux-kernel-markers-port-blktrace-to-markers.patch You can find a tarball of this patch and all its dependencies at: http://ltt.polymtl.ca/markers/markers-patches-for-2.6.23-rc6-mm1-18-09-2007.tar.bz2 Mathieu -- Mathieu Desnoyers Computer

[patch 3/4] Linux Kernel Markers - Documentation

2007-09-18 Thread Mathieu Desnoyers
Here is some documentation explaining what is/how to use the Linux Kernel Markers. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Frank Ch. Eigler [EMAIL PROTECTED] CC: Christoph Hellwig [EMAIL PROTECTED] --- Documentation/markers/markers.txt | 93

[patch 1/4] Linux Kernel Markers - Architecture Independent Code

2007-09-18 Thread Mathieu Desnoyers
, marker_get_next and marker_release should be used as iterators on the markers. Changelog: - markers_mutex now nests inside module_mutex rather than the opposite. - Iteration on modules is now done in module.c. - module_mutex is not exported anymore. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked

[patch 2/4] Linux Kernel Markers - Use instrumentation kconfig menu

2007-09-18 Thread Mathieu Desnoyers
. There would be no need for them to maintain kernel patches any more. Let's think about it. This patch: Add Kconfig menus for the marker code. [EMAIL PROTECTED]: Never ever select MODULES] Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Frank Ch. Eigler [EMAIL PROTECTED] CC: Christoph

[patch 4/4] Port of blktrace to the Linux Kernel Markers.

2007-09-18 Thread Mathieu Desnoyers
a generic infrastructure is in place to serialize the information passed to the marker. This is mostly why I consider it as a step towards the full improvements that could bring the markers. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Frank Ch. Eigler [EMAIL PROTECTED] CC: Jens Axboe

[patch 7/7] Scheduler Profiling - Use Immediate Values

2007-09-18 Thread Mathieu Desnoyers
Use immediate values with lower d-cache hit in optimized version as a condition for scheduler profiling call. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- drivers/kvm/kvm_main.c |3 ++- include/linux/profile.h |5 +++-- kernel/profile.c| 22 +++--- 3

[patch 6/7] Immediate Values - Documentation

2007-09-18 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- Documentation/immediate.txt | 228 1 file changed, 228 insertions(+) Index: linux-2.6-lttng/Documentation/immediate.txt

[patch 04/11] Add INIT_ARRAY() to kernel.h

2007-09-18 Thread Mathieu Desnoyers
Add initialization of an array, which needs brackets that would pollute kernel code, to kernel.h. It is used to declare arguments passed as function parameters such as: text_poke(addr, INIT_ARRAY(unsigned char, 0xf0, len), len); Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- include

[patch 07/11] Text Edit Lock - kprobes architecture independent support

2007-09-18 Thread Mathieu Desnoyers
Use the mutual exclusion provided by the text edit lock in the kprobes code. It allows coherent manipulation of the kernel code by other subsystems. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Ananth N Mavinakayanahalli [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED

[patch 06/11] Text Edit Lock - Alternative code for i386 and x86_64

2007-09-18 Thread Mathieu Desnoyers
). - Export add_nops, so it can be used by others. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Andi Kleen [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- arch/i386/kernel/alternative.c | 78 +-- include/asm-i386/alternative.h | 38

Re: [PATCH] Combine instrumentation menus in kernel/Kconfig.instrumentation

2007-09-18 Thread Mathieu Desnoyers
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: On Tue, 18 Sep 2007 17:12:59 EDT, Mathieu Desnoyers said: +++ linux-2.6-lttng/kernel/Kconfig.instrumentation 2007-09-18 13:18:17.000 00 -0400 @@ -0,0 +1,40 @@ +menuconfig INSTRUMENTATION + bool Instrumentation Support + default

Re: [patch 4/7] Immediate Values - i386 Optimization

2007-09-19 Thread Mathieu Desnoyers
* Jeremy Fitzhardinge ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: +#define immediate_read(name) \ + ({ \ + __typeof__(name##__immediate) value

Re: [patch 4/7] Immediate Values - i386 Optimization

2007-09-19 Thread Mathieu Desnoyers
* H. Peter Anvin ([EMAIL PROTECTED]) wrote: Jeremy Fitzhardinge wrote: Mathieu Desnoyers wrote: +#define immediate_read(name) \ + ({ \ + __typeof__(name##__immediate

Re: [patch 4/7] Immediate Values - i386 Optimization

2007-09-19 Thread Mathieu Desnoyers
add 2 bytes to be aligned on the next 4 bytes - 1. And yes, it's a pity there is no way to produce the long-nops there. :( Mathieu -Andi -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE

Re: [patch 2/7] Immediate Values - Kconfig menu in EMBEDDED

2007-09-19 Thread Mathieu Desnoyers
* Randy Dunlap ([EMAIL PROTECTED]) wrote: On Tue, 18 Sep 2007 17:07:49 -0400 Mathieu Desnoyers wrote: Immediate values provide a way to use dynamic code patching to update variables sitting within the instruction stream. It saves caches lines normally used by static read mostly

Re: [patch 3/4] Linux Kernel Markers - Documentation

2007-09-19 Thread Mathieu Desnoyers
* Randy Dunlap ([EMAIL PROTECTED]) wrote: On Tue, 18 Sep 2007 17:13:27 -0400 Mathieu Desnoyers wrote: Here is some documentation explaining what is/how to use the Linux Kernel Markers. --- Documentation/markers/markers.txt | 93

Re: [PATCH] Combine instrumentation menus in kernel/Kconfig.instrumentation

2007-09-19 Thread Mathieu Desnoyers
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: On Tue, 18 Sep 2007 21:06:28 EDT, Mathieu Desnoyers said: * [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: OK, I'll bite - given the mention of 'debugging' there, do we want to go for broke and *also* suck in the 'Kernel Hacking' menu

Re: [patch 1/7] Immediate Values - Architecture Independent Code

2007-09-19 Thread Mathieu Desnoyers
* Denys Vlasenko ([EMAIL PROTECTED]) wrote: On Tuesday 18 September 2007 21:47, Mathieu Desnoyers wrote: * Denys Vlasenko ([EMAIL PROTECTED]) wrote: On Tuesday 18 September 2007 18:59, Mathieu Desnoyers wrote: * Denys Vlasenko ([EMAIL PROTECTED]) wrote: On Monday 17 September 2007

Re: [patch 1/4] Linux Kernel Markers - Architecture Independent Code

2007-09-19 Thread Mathieu Desnoyers
* Mathieu Desnoyers ([EMAIL PROTECTED]) wrote: The marker activation functions sits in kernel/marker.c. A hash table is used to keep track of the registered probes and armed markers, so the markers within a newly loaded module that should be active can be activated at module load time

Re: [PATCH] Combine instrumentation menus in kernel/Kconfig.instrumentation

2007-09-19 Thread Mathieu Desnoyers
* Robert P. J. Day ([EMAIL PROTECTED]) wrote: On Wed, 19 Sep 2007, Mathieu Desnoyers wrote: * [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: Ahh, LTT. *that* I recognize. Yeah, I count that as *one flavor* of instrumentation. :) mathieu clarified this in a previous email to me

Re: [patch 4/7] Immediate Values - i386 Optimization

2007-09-19 Thread Mathieu Desnoyers
there ? If it is, then we can safely align on 2 bytes boundaries.) * 4 bytes B8 + rd MOV r32, imm32 (1 byte opcode) C7 /0 MOV r/m32, imm32 (2 bytes opcode) (the 2 bytes opcode can be a problem) I have missed anything ? Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D

Re: [patch 4/7] Immediate Values - i386 Optimization

2007-09-19 Thread Mathieu Desnoyers
* Mathieu Desnoyers ([EMAIL PROTECTED]) wrote: * Jeremy Fitzhardinge ([EMAIL PROTECTED]) wrote: H. Peter Anvin wrote: Allowing different registers should be doable, but if so, one would have to put 0: at the *end* of the instruction and use (0f)-4 instead, since the non-%eax forms

Re: [patch 4/7] Immediate Values - i386 Optimization

2007-09-19 Thread Mathieu Desnoyers
* Jeremy Fitzhardinge ([EMAIL PROTECTED]) wrote: H. Peter Anvin wrote: Mathieu Desnoyers wrote: Ok, let's have a good look at what we want: 1 - get a pointer to the beginning of the immediate value within the instruction. 2 - make sure that the immediate value, within

Re: [patch 4/7] Immediate Values - i386 Optimization

2007-09-19 Thread Mathieu Desnoyers
of a function compiled with -O2...). Mathieu -- 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

Re: [patch 1/4] Linux Kernel Markers - Architecture Independent Code

2007-09-19 Thread Mathieu Desnoyers
* Denys Vlasenko ([EMAIL PROTECTED]) wrote: On Wednesday 19 September 2007 12:37, Mathieu Desnoyers wrote: Index: linux-2.6-lttng/include/asm-generic/vmlinux.lds.h === --- linux-2.6-lttng.orig/include/asm-generic

Re: [patch 1/4] Linux Kernel Markers - Architecture Independent Code

2007-09-19 Thread Mathieu Desnoyers
* Mathieu Desnoyers ([EMAIL PROTECTED]) wrote: * Denys Vlasenko ([EMAIL PROTECTED]) wrote: On Wednesday 19 September 2007 12:37, Mathieu Desnoyers wrote: Index: linux-2.6-lttng/include/asm-generic/vmlinux.lds.h

Re: [PATCH] markers: modpost

2007-11-11 Thread Mathieu Desnoyers
* David Smith ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: Hrm, what would happen if a gcc optimization eventually decides to mix the memory layout of the strings ? Is there something that specifies that they won't ? Here's another patch that Roland wrote and I tested

Re: [PATCH] Move kprobes examples to samples/ (resend)

2007-11-13 Thread Mathieu Desnoyers
. Mathieu -- 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

[patch 0/4] Instrumentation menu removal

2007-11-13 Thread Mathieu Desnoyers
: # instrumentation menu removal #for -mm add-kconfig-to-arch.patch add-arch-supports-oprofile.patch add-arch-supports-kprobes.patch move-kconfig-instrumentation-to-arch.patch This should be ready for -mm. Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal

[patch 3/4] Add ARCH_SUPPORTS_KPROBES

2007-11-13 Thread Mathieu Desnoyers
use config ARCH_SUPPORTS_KPROBES def_bool y instead, which is a bit denser. We seem to use both kinds of syntax for these things, but this is really what def_bool is there for... Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Linus Torvalds [EMAIL PROTECTED] CC

[patch 1/4] Create arch/Kconfig

2007-11-13 Thread Mathieu Desnoyers
introduce such a file then we should use ARCH_HAS_whatever in the arch specific Kconfig files to enable stuff that is not shared. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Linus Torvalds [EMAIL PROTECTED] CC: Sam Ravnborg [EMAIL PROTECTED] --- arch/Kconfig |3 +++ init/Kconfig |2

[patch 4/4] Move Kconfig.instrumentation to arch/Kconfig and init/Kconfig

2007-11-13 Thread Mathieu Desnoyers
/Kconfig.instrumentation file. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Linus Torvalds [EMAIL PROTECTED] CC: Sam Ravnborg [EMAIL PROTECTED] --- arch/Kconfig | 22 ++ arch/alpha/Kconfig |2 - arch/arm/Kconfig |2 - arch

[patch 2/4] Add ARCH_SUPPORTS_OPROFILE

2007-11-13 Thread Mathieu Desnoyers
use config ARCH_SUPPORTS_KPROBES def_bool y instead, which is a bit denser. We seem to use both kinds of syntax for these things, but this is really what def_bool is there for... Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Linus Torvalds [EMAIL PROTECTED] CC

Re: [RFC] Add markers into semaphore primitives

2007-11-13 Thread Mathieu Desnoyers
at http://www.tux.org/lkml/ -- 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

[patch 2/3] Linux Kernel Markers - Document format string

2007-11-13 Thread Mathieu Desnoyers
Describes the format string standard further: Use of field names before the type specifiers.. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- Documentation/markers.txt |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) Index: linux-2.6-lttng/Documentation/markers.txt

[patch 1/3] Linux Kernel Markers - Fix marker mutex not taken upon module load

2007-11-13 Thread Mathieu Desnoyers
. Includes some cleanup from Dave Hansen [EMAIL PROTECTED]. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- kernel/marker.c | 41 + 1 file changed, 17 insertions(+), 24 deletions(-) Index: linux-2.6-lttng/kernel/marker.c

[patch 0/3] Linux Kernel Markers Fixes

2007-11-13 Thread Mathieu Desnoyers
-git3 in this order: #for -mm markers-fix-markers-mutex-upon-module-load.patch markers-document-markers-format-strings.patch markers-fix-example-format-string.patch They should be merged in mainline before 2.6.24 final (especially the mutex fix). Mathieu -- Mathieu Desnoyers Computer Engineering

[patch 3/3] Linux Kernel Markers - fix samples to follow format string standard

2007-11-13 Thread Mathieu Desnoyers
Add the field names to marker example format string. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- samples/markers/marker-example.c |3 ++- samples/markers/probe-example.c |2 +- 2 files changed, 3 insertions(+), 2 deletions(-) Index: linux-2.6-lttng/samples/markers/marker

[patch 00/11] Text Edit Lock

2007-11-13 Thread Mathieu Desnoyers
text-edit-lock-x86_64-standardize-debug-rodata.patch Mathieu -- 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

[patch 04/11] Add INIT_ARRAY() to kernel.h

2007-11-13 Thread Mathieu Desnoyers
Add initialization of an array, which needs brackets that would pollute kernel code, to kernel.h. It is used to declare arguments passed as function parameters such as: text_poke(addr, INIT_ARRAY(unsigned char, 0xf0, len), len); Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- include

[patch 11/11] Text Edit Lock - x86_64 standardize debug rodata

2007-11-13 Thread Mathieu Desnoyers
Standardize DEBUG_RODATA, removing special cases for hotplug and kprobes. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Andi Kleen [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- arch/x86_64/mm/init.c | 23 +-- 1 file changed, 5 insertions(+), 18 deletions(-) Index

[patch 10/11] Text Edit Lock - x86_32 standardize debug rodata

2007-11-13 Thread Mathieu Desnoyers
Standardize DEBUG_RODATA, removing special cases for hotplug and kprobes. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Andi Kleen [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- arch/x86/mm/init_32.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) Index

[patch 05/11] Text Edit Lock - Architecture Independent Code

2007-11-13 Thread Mathieu Desnoyers
of the breakpoint. Other user of this interface: immediate values. Paravirt and alternatives are always done when SMP is inactive, so there is no need to use locks. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Andi Kleen [EMAIL PROTECTED] --- include/linux/memory.h |7 +++ mm

[patch 02/11] Kprobes - do not use kprobes mutex in arch code

2007-11-13 Thread Mathieu Desnoyers
Remove the kprobes mutex from kprobes.h, since it does not belong there. Also remove all use of this mutex in the architecture specific code, replacing it by a proper mutex lock/unlock in the architecture agnostic code. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Ananth N

[patch 07/11] Text Edit Lock - kprobes architecture independent support

2007-11-13 Thread Mathieu Desnoyers
Use the mutual exclusion provided by the text edit lock in the kprobes code. It allows coherent manipulation of the kernel code by other subsystems. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Ananth N Mavinakayanahalli [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED

[patch 06/11] Text Edit Lock - Alternative code for x86

2007-11-13 Thread Mathieu Desnoyers
). - Export add_nops, so it can be used by others. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Andi Kleen [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- arch/x86/kernel/alternative.c| 78 +-- include/asm-x86/alternative_32.h | 38

[patch 08/11] Text Edit Lock - kprobes x86_32

2007-11-13 Thread Mathieu Desnoyers
Make kprobes use INIT_ARRAY(). Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Tested-by: Ananth N Mavinakayanahalli [EMAIL PROTECTED] CC: Andi Kleen [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- arch/x86/kernel/kprobes_32.c

[patch 09/11] Text Edit Lock - kprobes x86_64

2007-11-13 Thread Mathieu Desnoyers
Make kprobes use INIT_ARRAY(). Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Tested-by: Ananth N Mavinakayanahalli [EMAIL PROTECTED] CC: Andi Kleen [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- arch/x86/kernel/kprobes_64.c

[patch 01/11] Kprobes - use a mutex to protect the instruction pages list.

2007-11-13 Thread Mathieu Desnoyers
Protect the instruction pages list by a specific insn pages mutex, called in get_insn_slot() and free_insn_slot(). It makes sure that architectures that does not need to call arch_remove_kprobe() does not take an unneeded kprobes mutex. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked

[patch 03/11] Kprobes - declare kprobe_mutex static

2007-11-13 Thread Mathieu Desnoyers
Since it will not be used by other kernel objects, it makes sense to declare it static. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Ananth N Mavinakayanahalli [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- kernel

[patch 0/8] Immediate Values (now with merged x86 support)

2007-11-13 Thread Mathieu Desnoyers
-interrupt-to-kdebug-h.patch add-asm-compat-to-x86.patch immediate-values-x86-optimization.patch immediate-values-powerpc-optimization.patch immediate-values-documentation.patch # profiling-use-immediate-values.patch Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole

[patch 8/8] Scheduler Profiling - Use Immediate Values

2007-11-13 Thread Mathieu Desnoyers
Use immediate values with lower d-cache hit in optimized version as a condition for scheduler profiling call. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- drivers/kvm/kvm_main.c |3 ++- include/linux/profile.h |5 +++-- kernel/profile.c| 22

[patch 7/8] Immediate Values - Documentation

2007-11-13 Thread Mathieu Desnoyers
Changelog: - Remove immediate_set_early (removed from API). Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- Documentation/immediate.txt | 221 1 file changed, 221 insertions(+) Index: linux-2.6-lttng/Documentation/immediate.txt

[patch 1/8] Immediate Values - Architecture Independent Code

2007-11-13 Thread Mathieu Desnoyers
. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Rusty Russell [EMAIL PROTECTED] --- include/asm-generic/vmlinux.lds.h |4 + include/linux/immediate.h | 83 include/linux/module.h| 16 +++ init/main.c

[patch 6/8] Immediate Values - Powerpc Optimization

2007-11-13 Thread Mathieu Desnoyers
PowerPC optimization of the immediate values which uses a li instruction, patched with an immediate value. Changelog: - Put immediate_set and _immediate_set in the architecture independent header. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Christoph Hellwig [EMAIL PROTECTED

[patch 2/8] Immediate Values - Kconfig menu in EMBEDDED

2007-11-13 Thread Mathieu Desnoyers
code when we decide not to use optimized immediate values at all (it removes otherwise unused code). Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Adrian Bunk [EMAIL PROTECTED] CC: Andi Kleen [EMAIL PROTECTED] CC: Alexey Dobriyan [EMAIL PROTECTED] CC: Christoph Hellwig [EMAIL PROTECTED

[patch 4/8] Add asm-compat.h to x86

2007-11-13 Thread Mathieu Desnoyers
code shared between 32 and 64 bits architectures in x86. More compatible assembly macros could be added in this header later when needed. I had to create this to implement a merged optimized immediate values header for x86. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Thomas Gleixner

[patch 3/8] Immediate Values - Move Kprobes x86 restore_interrupt to kdebug.h

2007-11-13 Thread Mathieu Desnoyers
Since the breakpoint handler is useful both to kprobes and immediate values, it makes sense to make the required restore_interrupt() available through asm-i386/kdebug.h. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Ananth N Mavinakayanahalli [EMAIL PROTECTED] CC: Christoph Hellwig

[patch 5/8] Immediate Values - x86 Optimization

2007-11-13 Thread Mathieu Desnoyers
+x86_64 - x86 merge. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Andi Kleen [EMAIL PROTECTED] CC: H. Peter Anvin [EMAIL PROTECTED] CC: Chuck Ebbert [EMAIL PROTECTED] CC: Christoph Hellwig [EMAIL PROTECTED] CC: Jeremy Fitzhardinge [EMAIL PROTECTED] --- arch/x86/Kconfig.i386 |3

[RFC 0/3] Linux Kernel Markers new features

2007-11-13 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 info

[RFC 1/3] Linux Kernel Markers - Support Multiple Probes

2007-11-13 Thread Mathieu Desnoyers
the preempt disable section. - Move probe arm to probe connection. Now, a connected probe is automatically armed. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- include/linux/marker.h | 51 +-- include/linux/module.h |2 kernel/marker.c | 663

[RFC 3/3] Linux Kernel Markers - Use Immediate Values

2007-11-13 Thread Mathieu Desnoyers
Make markers use immediate values. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- Documentation/markers.txt | 17 + include/linux/marker.h| 42 -- kernel/marker.c |8 ++-- kernel/module.c |1

[RFC 2/3] Linux Kernel Markers - Create modpost file

2007-11-13 Thread Mathieu Desnoyers
, which entails handling a relocation type for every machine under the sun. Mathieu : - Ran through checkpatch.pl Signed-off-by: Roland McGrath [EMAIL PROTECTED] Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- include/linux/marker.h |9 -- scripts/Makefile.modpost | 11 +++ scripts/mod

[PATCH] Kallsyms Should Prefer Non Weak Symbols

2007-11-13 Thread Mathieu Desnoyers
. It applies on top of 2.6.24-rc2-git3. From: Paulo Marques [EMAIL PROTECTED] Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Rusty Russell [EMAIL PROTECTED] --- scripts/kallsyms.c | 36 ++-- 1 file changed, 34 insertions(+), 2 deletions(-) Index: linux-2.6

Re: [PATCH] Kallsyms Should Prefer Non Weak Symbols

2007-11-13 Thread Mathieu Desnoyers
* Mathieu Desnoyers ([EMAIL PROTECTED]) wrote: [...] kallsyms returns the first symbol encountered, even though it is weak, when it should in fact return sys_ni_syscall. Is it a concern for anyone else out there ? Would it make sense to fix it ? I don't know if it is a concern

Re: [patch 5/8] Immediate Values - x86 Optimization

2007-11-13 Thread Mathieu Desnoyers
* H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: - Use =g constraint for char immediate value inline assembly. =g is the same as =rmi which is inherently bogus. In your actual code you use =r, the correct constraint is =q. Hi Peter, Yup, =g wasn't what I was looking

[RFC 6/7] LTTng instrumentation net

2007-11-13 Thread Mathieu Desnoyers
Network core events. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- net/core/dev.c |5 + net/ipv4/devinet.c |5 + net/socket.c | 18 ++ 3 files changed, 28 insertions(+) Index: linux-2.6-lttng/net/core/dev.c

[RFC 1/7] Include marker.h in kernel.h -- temporary, for code readability

2007-11-13 Thread Mathieu Desnoyers
This patch is a hack to make my life easier : it lessens the conflicts due to header includes that changes between the kernel versions. The proper way to do this is to include linux/marker.h in every file using the markers. NOT FOR UPSTREAM. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED

[RFC 5/7] LTTng instrumentation mm

2007-11-13 Thread Mathieu Desnoyers
Memory management core events. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- mm/filemap.c|4 mm/memory.c | 34 +- mm/page_alloc.c |5 + mm/page_io.c|1 + 4 files changed, 35 insertions(+), 9

[RFC 4/7] LTTng instrumentation kernel

2007-11-13 Thread Mathieu Desnoyers
Core kernel events. *not* present in this patch because they are architecture specific : - syscall entry/exit - traps - kernel thread creation Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- include/linux/module.h |1 + kernel/exit.c |5 + kernel/fork.c

[RFC 0/7] LTTng Kernel Instrumentation (Architecture Independent)

2007-11-13 Thread Mathieu Desnoyers
reporters easily. - help userspace developers to understand the interactions of their programs with other processes and with the kernel. Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE

[RFC 2/7] LTTng instrumentation fs

2007-11-13 Thread Mathieu Desnoyers
Core filesystem events markers. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Alexander Viro [EMAIL PROTECTED] --- fs/buffer.c |2 ++ fs/compat.c |1 + fs/exec.c |1 + fs/ioctl.c |2 ++ fs/open.c |2 ++ fs/read_write.c | 21

[RFC 3/7] LTTng instrumentation ipc

2007-11-13 Thread Mathieu Desnoyers
Interprocess communication, core events. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- ipc/msg.c |5 - ipc/sem.c |5 - ipc/shm.c |5 - 3 files changed, 12 insertions(+), 3 deletions(-) Index: linux-2.6-lttng/ipc/msg.c

[RFC 7/7] Add Markers Into Semaphore Primitives

2007-11-13 Thread Mathieu Desnoyers
This patch adds several markers around semaphore primitives. Along with a tracing application this patch can be useful for measuring kernel semaphore usage and contention. Signed-off-by: Mike Mason [EMAIL PROTECTED] Signed-off-by: David Wilder [EMAIL PROTECTED] Signed-off-by: Mathieu Desnoyers

Re: [patch 5/8] Immediate Values - x86 Optimization

2007-11-13 Thread Mathieu Desnoyers
* H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: - Use =g constraint for char immediate value inline assembly. =g is the same as =rmi which is inherently bogus. In your actual code you use =r, the correct constraint is =q. q Any register accessible as rl. In 32-bit

LTTng (Linux kernel tracer) tarball, 0.10.0-pre24

2007-11-13 Thread Mathieu Desnoyers
-control-0.46-06112007.tar.gz http://ltt.polymtl.ca/packages/lttv-0.10.0-pre2-07112007.tar.gz Mathieu -- 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

Re: [patch 4/8] Add asm-compat.h to x86 - use new asm.h instead

2007-11-13 Thread Mathieu Desnoyers
* H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: In assembly code and in gcc inline assembly, we need .long to express a c long type on i386 and a .quad to express the same on x86_64. Use macros similar to powerpc PPC_LONG to express those. Name chosen: ASM_LONG

Re: [patch 5/8] Immediate Values - x86 Optimization (update)

2007-11-13 Thread Mathieu Desnoyers
* H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: * H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: - Use =g constraint for char immediate value inline assembly. =g is the same as =rmi which is inherently bogus. In your actual code you use =r

Re: stuck nfsd processes with 2.6.24-rc2

2007-11-13 Thread Mathieu Desnoyers
local bus to a MasterCard local bus. - 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://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- Mathieu Desnoyers

Re: LTTng (Linux kernel tracer) tarball, 0.10.0-pre25

2007-11-13 Thread Mathieu Desnoyers
* Mathieu Desnoyers ([EMAIL PROTECTED]) wrote: Hi, I have seen a few threads about unfixed kernel regression lately. I strongly believe that many kernel developers and users could help pinpointing the cause of those bugs much more efficiently by using a tool like LTTng. If you want

Re: [patch 5/8] Immediate Values - x86 Optimization (update)

2007-11-13 Thread Mathieu Desnoyers
* H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: * H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: * H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: - Use =g constraint for char immediate value inline assembly. =g is the same

Re: [patch 06/11] Text Edit Lock - Alternative code for x86

2007-11-13 Thread Mathieu Desnoyers
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: On 13 Nov 2007 at 13:46, Mathieu Desnoyers wrote: +void *text_poke_early(void *addr, const void *opcode, size_t len) +{ + memcpy(addr, opcode, len); + text_sync(addr, len); + return addr; +} why do you need this function (vs

Re: [patch 5/8] Immediate Values - x86 Optimization (update)

2007-11-13 Thread Mathieu Desnoyers
* H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: Andi seemed to trust gas stability and you answered: The comment was referring to x86-64, but I incorrectly remembered that applying to movq $imm,%reg as opposed to loading from an absolute address. gas actually has

Re: [patch 5/8] Immediate Values - x86 Optimization (update 2)

2007-11-13 Thread Mathieu Desnoyers
, si, di, bp, sp). 8 bytes : (only for x86_64) =r : A register operand is allowed provided that it is in a general register. That should make sure x86_64 won't try to use REX prefixed opcodes for 1, 2 and 4 bytes values. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED

Re: [patch 06/11] Text Edit Lock - Alternative code for x86 (updated)

2007-11-13 Thread Mathieu Desnoyers
with ({ }) brackets (which breaks some c parsers in editors). - Export add_nops, so it can be used by others. - Remove x86 test for wp_works_ok, it will just be ignored by the architecture if not supported. - Document text_poke_early. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Andi Kleen [EMAIL

Re: [patch 5/8] Immediate Values - x86 Optimization (update 2)

2007-11-14 Thread Mathieu Desnoyers
* H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: Immediate Values - x86 Optimization x86 optimization of the immediate values which uses a movl with code patching to set/unset the value used to populate the register used as variable source. Changelog: - Use

[PATCH] Immediate Values x86 Optimization Declare Discarded Instruction

2007-11-14 Thread Mathieu Desnoyers
(the patch follows at the end of the discussion, it applies on top of the Immediate Values x86 Optimization (update 2) patch. * H. Peter Anvin ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers wrote: Immediate Values - x86 Optimization x86 optimization of the immediate values which uses a movl

[PATCH] Add __discard section to x86

2007-11-14 Thread Mathieu Desnoyers
-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Andi Kleen [EMAIL PROTECTED] CC: H. Peter Anvin [EMAIL PROTECTED] CC: Chuck Ebbert [EMAIL PROTECTED] CC: Christoph Hellwig [EMAIL PROTECTED] CC: Jeremy Fitzhardinge [EMAIL PROTECTED] CC: Thomas Gleixner [EMAIL PROTECTED] CC: Ingo Molnar [EMAIL PROTECTED

Re: [patch 2/4] Add ARCH_SUPPORTS_OPROFILE

2007-11-14 Thread Mathieu Desnoyers
of trivial selects. Sorry for providing late feedback on this! Sam -- 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

Re: LTTng (Linux kernel tracer) tarball, 0.10.0-pre26

2007-11-14 Thread Mathieu Desnoyers
* Mathieu Desnoyers ([EMAIL PROTECTED]) wrote: * Mathieu Desnoyers ([EMAIL PROTECTED]) wrote: Hi, I have seen a few threads about unfixed kernel regression lately. I strongly believe that many kernel developers and users could help pinpointing the cause of those bugs much more

Re: [patch 5/8] Immediate Values - x86 Optimization

2007-11-14 Thread Mathieu Desnoyers
* Rusty Russell ([EMAIL PROTECTED]) wrote: On Wednesday 14 November 2007 05:58:05 Mathieu Desnoyers wrote: x86 optimization of the immediate values which uses a movl with code patching to set/unset the value used to populate the register used as variable source. For the record, I think

Re: [patch 5/8] Immediate Values - x86 Optimization

2007-11-14 Thread Mathieu Desnoyers
* Rusty Russell ([EMAIL PROTECTED]) wrote: On Thursday 15 November 2007 15:06:10 Mathieu Desnoyers wrote: * Rusty Russell ([EMAIL PROTECTED]) wrote: A stop_machine (or lightweight variant using IPI) would be sufficient and vastly simpler. Trying to patch NMI handlers while they're

Re: [RFC 5/7] LTTng instrumentation mm

2007-11-15 Thread Mathieu Desnoyers
* Dave Hansen ([EMAIL PROTECTED]) wrote: On Tue, 2007-11-13 at 14:33 -0500, Mathieu Desnoyers wrote: linux-2.6-lttng/mm/page_io.c2007-11-13 09:49:35.0 -0500 @@ -114,6 +114,7 @@ int swap_writepage(struct page *page, st rw |= (1 BIO_RW_SYNC

[patch 2/4] Add ARCH_SUPPORTS_OPROFILE

2007-11-15 Thread Mathieu Desnoyers
2007-11-15 21:24:43.0 -0500 @@ -19,6 +19,7 @@ config X86_64 config X86 bool default y + select ARCH_HAS_OPROFILE config GENERIC_TIME bool -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint

[patch 0/4] Instrumentation menu removal, updated to 2.6.24-rc2-git5

2007-11-15 Thread Mathieu Desnoyers
Hi Andrew, This patchset should apply flawlessly to 2.6.24-rc2-git5. Sorry again for the inconvenience. Mathieu -- 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

Re: [RFC 4/7] LTTng instrumentation kernel

2007-11-15 Thread Mathieu Desnoyers
values based markers, the 0 means an optimized markers (non-generic). I use __trace_mark directly to be able to pass the call_data argument. Thanks for the review, Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3

<    1   2   3   4   5   6   7   8   9   10   >