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
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
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
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
-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
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
, 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
.
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
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
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
Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED]
---
Documentation/immediate.txt | 228
1 file changed, 228 insertions(+)
Index: linux-2.6-lttng/Documentation/immediate.txt
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
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
).
- 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
* [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
* Jeremy Fitzhardinge ([EMAIL PROTECTED]) wrote:
Mathieu Desnoyers wrote:
+#define immediate_read(name)
\
+ ({ \
+ __typeof__(name##__immediate) value
* H. Peter Anvin ([EMAIL PROTECTED]) wrote:
Jeremy Fitzhardinge wrote:
Mathieu Desnoyers wrote:
+#define immediate_read(name)
\
+ ({ \
+ __typeof__(name##__immediate
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
* 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
* 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
* [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
* 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
* 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
* 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
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
* 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
* 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
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
* 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
* 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
* 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
.
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
:
# 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
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
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
/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
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
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
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
.
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
-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
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
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
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
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
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
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
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
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
).
- 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
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
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
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
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
-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
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
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
.
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
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
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
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
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
+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
--
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
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
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
, 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
.
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
* 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
* 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
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
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
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
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
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
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
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
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
* 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
-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
* 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
* 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
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
* 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
* 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
* [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
* 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
, 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
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
* 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
(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
-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
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
* 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
* 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
* 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
* 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
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
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
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
201 - 300 of 7281 matches
Mail list logo