* 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
* 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,
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]