ftrace: include cpu in stacktrace
authorIngo Molnar <mingo@elte.hu>
Mon, 12 May 2008 19:20:53 +0000 (21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 19:08:20 +0000 (21:08 +0200)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/trace.c

index 688b4cf72d998b31eae23d2e9b897f05356cffb1..3a4032492fcbd53455bb4419295a150cd420272a 100644 (file)
@@ -1227,10 +1227,8 @@ print_lat_fmt(struct trace_iterator *iter, unsigned int trace_idx, int cpu)
                                 abs_usecs % 1000, rel_usecs/1000,
                                 rel_usecs % 1000);
        } else {
-               if (entry->type != TRACE_STACK) {
-                       lat_print_generic(s, entry, cpu);
-                       lat_print_timestamp(s, abs_usecs, rel_usecs);
-               }
+               lat_print_generic(s, entry, cpu);
+               lat_print_timestamp(s, abs_usecs, rel_usecs);
        }
        switch (entry->type) {
        case TRACE_FN:
@@ -1293,17 +1291,15 @@ static int print_trace_fmt(struct trace_iterator *iter)
        usec_rem = do_div(t, 1000000ULL);
        secs = (unsigned long)t;
 
-       if (entry->type != TRACE_STACK) {
-               ret = trace_seq_printf(s, "%16s-%-5d ", comm, entry->pid);
-               if (!ret)
-                       return 0;
-               ret = trace_seq_printf(s, "[%02d] ", iter->cpu);
-               if (!ret)
-                       return 0;
-               ret = trace_seq_printf(s, "%5lu.%06lu: ", secs, usec_rem);
-               if (!ret)
-                       return 0;
-       }
+       ret = trace_seq_printf(s, "%16s-%-5d ", comm, entry->pid);
+       if (!ret)
+               return 0;
+       ret = trace_seq_printf(s, "[%02d] ", iter->cpu);
+       if (!ret)
+               return 0;
+       ret = trace_seq_printf(s, "%5lu.%06lu: ", secs, usec_rem);
+       if (!ret)
+               return 0;
 
        switch (entry->type) {
        case TRACE_FN: