[patch 3/3] Trace samples

2007-11-12 Thread David J. Wilder
Trace example - Adds the trace example to samples/ Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- samples/Kconfig|6 + samples/Makefile |1 + samples/trace/Makefile |4 + samples/trace/fork_trace.c | 132 ++ samples/trace/sem_wat

[patch 2/3] Trace code and documentation

2007-11-12 Thread David J. Wilder
Trace - Provides tracing primitives Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: Martin Hunt <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/trace.txt | 166 ++ include/linux/trace.h | 99 + lib/Kconfig |

[PATCH 0/3] A kernel tracing interface

2007-11-12 Thread David J. Wilder
These patches provide a kernel tracing interface called "trace". ChangeLog: -Added a new example that demonstrates per-cpu continuous tracing of data generated by marker probes. -Removed inline from relay patch. -Moved examples into /sample directory. The motivation for "trace" is to: - Provide

[patch 1/3] Relay Reset Consumed

2007-11-12 Thread David J. Wilder
This patch allows relay channels to be reset i.e. unconsumed. Basically allows a 'rewind' function for flight-recorder tracing. Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/filesystems/relay.txt | 11 ++ include/linux/relay

[RFC] Add markers into semaphore primitives

2007-11-12 Thread David J. Wilder
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]> --- lib/semaphore-sleepers.c |

[patch 3/3] Trace sample

2007-10-02 Thread David J. Wilder
Trace example - Adds the trace example to samples/ Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- samples/Kconfig|6 ++ samples/Makefile |1 + samples/trace/Makefile |4 + samples/trace/fork_trace.c | 132 4

[patch 1/3] Trace code and documentation

2007-10-02 Thread David J. Wilder
Trace - Provides tracing primitives Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: Martin Hunt <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/trace.txt | 166 ++ include/linux/trace.h | 99 + lib/Kconfig |

[patch 2/3] Relay Reset Consumed

2007-10-02 Thread David J. Wilder
This patch allows relay channels to be reset i.e. unconsumed. Basically allows a 'rewind' function for flight-recorder tracing. Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/filesystems/relay.txt | 11 ++ include/linux/relay

[PATCH 0/3] A kernel tracing interface

2007-10-02 Thread David J. Wilder
These patches provide a kernel tracing interface called "trace". (update) Updated documentation and added configuration dependency on KPROBES for trace sample code. The motivation for "trace" is to: - Provide a simple set of tracing primitives that will utilize the high- performance and low-ove

[patch 3/3] Trace sample

2007-10-02 Thread David J. Wilder
Trace example - Adds the trace example to samples/ Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- samples/Kconfig|6 ++ samples/Makefile |1 + samples/trace/Makefile |4 + samples/trace/fork_trace.c | 132 4

[patch 2/3] Relay Reset Consumed

2007-10-02 Thread David J. Wilder
This patch allows relay channels to be reset i.e. unconsumed. Basically allows a 'rewind' function for flight-recorder tracing. Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/filesystems/relay.txt | 11 ++ include/linux/relay

[patch 1/3] Trace code and documentation

2007-10-02 Thread David J. Wilder
Trace - Provides tracing primitives Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: Martin Hunt <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/trace.txt | 160 ++ include/linux/trace.h | 99 + lib/Kconfig |

[PATCH 0/3] A kernel tracing interface

2007-10-02 Thread David J. Wilder
[PATCH 0/3] A kernel tracing interface - (updated) These patches provide a kernel tracing interface called "trace". (update) Fixed a notation in the trace documentation as pointed out by Randy Dunlap. Updated references to prerequisite patches. The motivation for "trace" is to: - Provide a sim

[patch 3/3] Trace sample

2007-09-26 Thread David J. Wilder
Trace example - Adds the trace example to samples/ Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- samples/Kconfig|6 ++ samples/Makefile |1 + samples/trace/Makefile |4 + samples/trace/fork_trace.c | 132 4

[patch 2/3] Relay Reset Consumed

2007-09-26 Thread David J. Wilder
This patch allows relay channels to be reset i.e. unconsumed. Basically allows a 'rewind' function for flight-recorder tracing. Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/filesystems/relay.txt | 11 ++ include/linux/relay

[PATCH 0/3] A kernel tracing interface - (updated)

2007-09-26 Thread David J. Wilder
These patches provide a kernel tracing interface called "trace". (update) Moved the sample code to the new samples\ subdir The motivation for "trace" is to: - Provide a simple set of tracing primitives that will utilize the high- performance and low-overhead of relayfs for passing traces data f

[patch 1/3] Trace code and documentation

2007-09-26 Thread David J. Wilder
Trace - Provides tracing primitives Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: Martin Hunt <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/trace.txt | 160 ++ include/linux/trace.h | 99 + lib/Kconfig |

[RFC Patch] Trace - Samples

2007-09-25 Thread David J. Wilder
This patch Moves the trace example into the new samples/ infrastructure Requires: [patch 3/5] Add samples subdir (http://lkml.org/lkml/2007/9/25/157) and create samples/Makefile or apply: [patch 4/5] Linux Kernel Markers - Samples (http://lkml.org/lkml/2007/9/25/166) Signed-off-by: David Wilde

[Patch 1/2] Trace code and documentation (resend)

2007-09-21 Thread David J. Wilder
My last posting was mangled by my mailer. I hope this one is better. Also corrected Randy's concerns. Please see previous posting for more information: http://lkml.org/lkml/2007/9/19/4 (PATCH 0/2) Note: this patch requires "[Patch 2/2] Relay reset consumed" is applied. - Tra

[Patch 2/2] Relay reset consumed

2007-09-21 Thread David J. Wilder
This patch allows relay channels to be reset i.e. unconsumed. Basically allows a 'rewind' function for flight-recorder tracing. Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/filesystems/relay.txt | 11 ++ include/linux/relay

[Patch 1/2] Trace code and documentation (updated)

2007-09-21 Thread David J. Wilder
I updated the example code to eliminate the use of the temp print buffer and the use of NR_CPU. Please see previous postings for more information and patch dependencies. http://lkml.org/lkml/2007/9/19/4 (PATCH 0/2) http://lkml.org/lkml/2007/9/19/6 (PATCH 2/2) - Trace - Pro

[Patch 2/2] Relay reset consumend

2007-09-18 Thread David J. Wilder
This patch allows relay channels to be reset i.e. unconsumed. Basically allows a 'rewind' function for flight-recorder tracing. Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/filesystems/relay.txt | 11 ++ include/linux/relay

[Patch 1/2] Trace code and documentation (updated)

2007-09-18 Thread David J. Wilder
Trace - Provides tracing primitives Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: Martin Hunt <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL PROTECTED]> --- Documentation/trace/src/Makefile |7 + Documentation/trace/src/README | 18 + Documentation/trace/s

[Patch 0/2] A Kernel Tracing Interface (updated)

2007-09-18 Thread David J. Wilder
These patches provide a kernel tracing interface called "trace". The motivation for "trace" is to: - Provide a simple set of tracing primitives that will utilize the high- performance and low-overhead of relayfs for passing traces data from kernel to user space. - Provide a common user interfa

Re: [Question] Hooks for scheduler tracing (CFS)

2007-07-26 Thread David J. Wilder
I guess they might have to switch to such an asynchronous delivery system if they want to do this properly. Simply put, your polling solution is exactly what I do, but I check a flag set by the writer instead of waking up the readers unconditionally. Mathieu Ingo's solution could call wait

Re: [PATCH] Fix a use after free bug in kernel->userspace relay file support

2007-07-19 Thread David J. Wilder
ACK Thanks for catching this. Your patch looks fine. I tested for regression, no problems. I also tested the error path and had the expected results. Thanks Dave Jesper Juhl wrote: Hi, Coverity spotted what looks like a real possible case of using a variable after it has been freed. The pr