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

2008-01-06 Thread Ingo Molnar
* Mathieu Desnoyers [EMAIL PROTECTED] wrote: @@ -34,6 +34,7 @@ mctracer_add_trace_entry(struct mctracer { unsigned long idx, idx_next; struct mctracer_entry *entry; + struct task_struct *tsk = current; Aren't there situations, like in the middle of a context switch, where

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

2008-01-06 Thread Mathieu Desnoyers
* Ingo Molnar ([EMAIL PROTECTED]) wrote: * Mathieu Desnoyers [EMAIL PROTECTED] wrote: @@ -34,6 +34,7 @@ mctracer_add_trace_entry(struct mctracer { unsigned long idx, idx_next; struct mctracer_entry *entry; + struct task_struct *tsk = current; Aren't there situations,

[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]