[RFC PATCH 03/11] Annotate core code that should not be traced

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

[RFC PATCH 10/11] mcount tracer show task comm and pid

2008-01-02 Thread Steven Rostedt
This adds the task comm and pid to the trace output. This gives the output like: CPU 0: sshd:2605 [80251858] remove_wait_queue+0xc/0x4a -- [802ad7be] free_poll_entry+0x1e/0x2a CPU 2: bash:2610 [8038c3aa] tty_check_change+0x9/0xb6 -- [8038d295]

[RFC PATCH 01/11] Add basic support for gcc profiler instrumentation

2008-01-02 Thread Steven Rostedt
If CONFIG_MCOUNT is selected and /proc/sys/kernel/mcount_enabled is set to a non-zero value the mcount routine will be called everytime we enter a kernel function that is not marked with the notrace attribute. The mcount routine will then call a registered function if a function happens to be

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

2008-01-02 Thread Steven Rostedt
MCOUNT will disable the regparm parameters of the i386 compile options. When doing so, this breaks the prototype of do_IRQ where the fastcall must be explicitly called. Also fixed some whitespace damage in the call to do_IRQ. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] ---

[RFC PATCH 06/11] add notrace annotations to vsyscall.

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

[RFC PATCH 11/11] Add a symbol only trace output

2008-01-02 Thread Steven Rostedt
The trace output is very verbose with outputing both the IP address (Instruction Pointer not Internet Protocol!) and the kallsyms symbol. So if kallsyms is configured into the kernel, another file is created in the debugfs system. This is the trace_symonly file that leaves out the IP address.