]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86 mmiotrace: Do not print bogus pid
authorPekka Paalanen <pq@iki.fi>
Mon, 12 May 2008 19:20:59 +0000 (21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 24 May 2008 09:26:00 +0000 (11:26 +0200)
Non-zero pid indicates the MMIO access originated in user space.
We do not catch that kind of accesses yet, so always print zero for now.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/trace_mmiotrace.c

index 361472b5788c5e955190dbef4445e8927fc7df24..79be4a18ec1e9837a6dc6a7b623b28c0a539862a 100644 (file)
@@ -117,20 +117,20 @@ static int mmio_print_rw(struct trace_iterator *iter)
                ret = trace_seq_printf(s,
                        "R %d %lu.%06lu %d 0x%lx 0x%lx 0x%lx %d\n",
                        rw->width, secs, usec_rem, rw->map_id, rw->phys,
-                       rw->value, rw->pc, entry->pid);
+                       rw->value, rw->pc, 0);
                break;
        case MMIO_WRITE:
                ret = trace_seq_printf(s,
                        "W %d %lu.%06lu %d 0x%lx 0x%lx 0x%lx %d\n",
                        rw->width, secs, usec_rem, rw->map_id, rw->phys,
-                       rw->value, rw->pc, entry->pid);
+                       rw->value, rw->pc, 0);
                break;
        case MMIO_UNKNOWN_OP:
                ret = trace_seq_printf(s,
                        "UNKNOWN %lu.%06lu %d 0x%lx %02x,%02x,%02x 0x%lx %d\n",
                        secs, usec_rem, rw->map_id, rw->phys,
                        (rw->value >> 16) & 0xff, (rw->value >> 8) & 0xff,
-                       (rw->value >> 0) & 0xff, rw->pc, entry->pid);
+                       (rw->value >> 0) & 0xff, rw->pc, 0);
                break;
        default:
                ret = trace_seq_printf(s, "rw what?\n");