aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPekka Paalanen <pq@iki.fi>2008-05-12 15:20:59 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-24 05:26:00 -0400
commit736ca61fa81874b3fee205a593251b1869d0bcf1 (patch)
treed5228344a811420057e6c8a6c1bf31f733469e6b /kernel
parente4b37ee68609037ffcaa2fcfae47cd31a605bb9e (diff)
x86 mmiotrace: Do not print bogus pid
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_mmiotrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace_mmiotrace.c b/kernel/trace/trace_mmiotrace.c
index 361472b5788c..79be4a18ec1e 100644
--- a/kernel/trace/trace_mmiotrace.c
+++ b/kernel/trace/trace_mmiotrace.c
@@ -117,20 +117,20 @@ static int mmio_print_rw(struct trace_iterator *iter)
117 ret = trace_seq_printf(s, 117 ret = trace_seq_printf(s,
118 "R %d %lu.%06lu %d 0x%lx 0x%lx 0x%lx %d\n", 118 "R %d %lu.%06lu %d 0x%lx 0x%lx 0x%lx %d\n",
119 rw->width, secs, usec_rem, rw->map_id, rw->phys, 119 rw->width, secs, usec_rem, rw->map_id, rw->phys,
120 rw->value, rw->pc, entry->pid); 120 rw->value, rw->pc, 0);
121 break; 121 break;
122 case MMIO_WRITE: 122 case MMIO_WRITE:
123 ret = trace_seq_printf(s, 123 ret = trace_seq_printf(s,
124 "W %d %lu.%06lu %d 0x%lx 0x%lx 0x%lx %d\n", 124 "W %d %lu.%06lu %d 0x%lx 0x%lx 0x%lx %d\n",
125 rw->width, secs, usec_rem, rw->map_id, rw->phys, 125 rw->width, secs, usec_rem, rw->map_id, rw->phys,
126 rw->value, rw->pc, entry->pid); 126 rw->value, rw->pc, 0);
127 break; 127 break;
128 case MMIO_UNKNOWN_OP: 128 case MMIO_UNKNOWN_OP:
129 ret = trace_seq_printf(s, 129 ret = trace_seq_printf(s,
130 "UNKNOWN %lu.%06lu %d 0x%lx %02x,%02x,%02x 0x%lx %d\n", 130 "UNKNOWN %lu.%06lu %d 0x%lx %02x,%02x,%02x 0x%lx %d\n",
131 secs, usec_rem, rw->map_id, rw->phys, 131 secs, usec_rem, rw->map_id, rw->phys,
132 (rw->value >> 16) & 0xff, (rw->value >> 8) & 0xff, 132 (rw->value >> 16) & 0xff, (rw->value >> 8) & 0xff,
133 (rw->value >> 0) & 0xff, rw->pc, entry->pid); 133 (rw->value >> 0) & 0xff, rw->pc, 0);
134 break; 134 break;
135 default: 135 default:
136 ret = trace_seq_printf(s, "rw what?\n"); 136 ret = trace_seq_printf(s, "rw what?\n");