1f984b51eSPekka Paalanen /* 2f984b51eSPekka Paalanen * Memory mapped I/O tracing 3f984b51eSPekka Paalanen * 4f984b51eSPekka Paalanen * Copyright (C) 2008 Pekka Paalanen <pq@iki.fi> 5f984b51eSPekka Paalanen */ 6f984b51eSPekka Paalanen 7f984b51eSPekka Paalanen #define DEBUG 1 8f984b51eSPekka Paalanen 9f984b51eSPekka Paalanen #include <linux/kernel.h> 10f984b51eSPekka Paalanen #include <linux/mmiotrace.h> 1113829537SPekka Paalanen #include <linux/pci.h> 12f984b51eSPekka Paalanen 13f984b51eSPekka Paalanen #include "trace.h" 14f984b51eSPekka Paalanen 15d0a7e8caSPekka Paalanen struct header_iter { 16d0a7e8caSPekka Paalanen struct pci_dev *dev; 17d0a7e8caSPekka Paalanen }; 18d0a7e8caSPekka Paalanen 19f984b51eSPekka Paalanen static struct trace_array *mmio_trace_array; 202039238bSPekka Paalanen static bool overrun_detected; 217ee1768dSPekka Paalanen static unsigned long prev_overruns; 22f984b51eSPekka Paalanen 23bd8ac686SPekka Paalanen static void mmio_reset_data(struct trace_array *tr) 24bd8ac686SPekka Paalanen { 252039238bSPekka Paalanen overrun_detected = false; 267ee1768dSPekka Paalanen prev_overruns = 0; 27bd8ac686SPekka Paalanen 28*213cc060SPekka J Enberg tracing_reset_online_cpus(tr); 29bd8ac686SPekka Paalanen } 30f984b51eSPekka Paalanen 311c80025aSFrederic Weisbecker static int mmio_trace_init(struct trace_array *tr) 32f984b51eSPekka Paalanen { 33f984b51eSPekka Paalanen pr_debug("in %s\n", __func__); 34f984b51eSPekka Paalanen mmio_trace_array = tr; 35c76f0694SSteven Rostedt 36bd8ac686SPekka Paalanen mmio_reset_data(tr); 37f984b51eSPekka Paalanen enable_mmiotrace(); 381c80025aSFrederic Weisbecker return 0; 39f984b51eSPekka Paalanen } 40f984b51eSPekka Paalanen 41f984b51eSPekka Paalanen static void mmio_trace_reset(struct trace_array *tr) 42f984b51eSPekka Paalanen { 43f984b51eSPekka Paalanen pr_debug("in %s\n", __func__); 44c76f0694SSteven Rostedt 45f984b51eSPekka Paalanen disable_mmiotrace(); 46bd8ac686SPekka Paalanen mmio_reset_data(tr); 47bd8ac686SPekka Paalanen mmio_trace_array = NULL; 48f984b51eSPekka Paalanen } 49f984b51eSPekka Paalanen 50bbf5b1a0SSteven Rostedt static void mmio_trace_start(struct trace_array *tr) 51f984b51eSPekka Paalanen { 52f984b51eSPekka Paalanen pr_debug("in %s\n", __func__); 53bd8ac686SPekka Paalanen mmio_reset_data(tr); 54bd8ac686SPekka Paalanen } 55bd8ac686SPekka Paalanen 5613829537SPekka Paalanen static int mmio_print_pcidev(struct trace_seq *s, const struct pci_dev *dev) 5713829537SPekka Paalanen { 5813829537SPekka Paalanen int ret = 0; 5913829537SPekka Paalanen int i; 6013829537SPekka Paalanen resource_size_t start, end; 6113829537SPekka Paalanen const struct pci_driver *drv = pci_dev_driver(dev); 6213829537SPekka Paalanen 6313829537SPekka Paalanen /* XXX: incomplete checks for trace_seq_printf() return value */ 6413829537SPekka Paalanen ret += trace_seq_printf(s, "PCIDEV %02x%02x %04x%04x %x", 6513829537SPekka Paalanen dev->bus->number, dev->devfn, 6613829537SPekka Paalanen dev->vendor, dev->device, dev->irq); 6713829537SPekka Paalanen /* 6813829537SPekka Paalanen * XXX: is pci_resource_to_user() appropriate, since we are 6913829537SPekka Paalanen * supposed to interpret the __ioremap() phys_addr argument based on 7013829537SPekka Paalanen * these printed values? 7113829537SPekka Paalanen */ 7213829537SPekka Paalanen for (i = 0; i < 7; i++) { 7313829537SPekka Paalanen pci_resource_to_user(dev, i, &dev->resource[i], &start, &end); 7413829537SPekka Paalanen ret += trace_seq_printf(s, " %llx", 7513829537SPekka Paalanen (unsigned long long)(start | 7613829537SPekka Paalanen (dev->resource[i].flags & PCI_REGION_FLAG_MASK))); 7713829537SPekka Paalanen } 7813829537SPekka Paalanen for (i = 0; i < 7; i++) { 7913829537SPekka Paalanen pci_resource_to_user(dev, i, &dev->resource[i], &start, &end); 8013829537SPekka Paalanen ret += trace_seq_printf(s, " %llx", 8113829537SPekka Paalanen dev->resource[i].start < dev->resource[i].end ? 8213829537SPekka Paalanen (unsigned long long)(end - start) + 1 : 0); 8313829537SPekka Paalanen } 8413829537SPekka Paalanen if (drv) 8513829537SPekka Paalanen ret += trace_seq_printf(s, " %s\n", drv->name); 8613829537SPekka Paalanen else 8713829537SPekka Paalanen ret += trace_seq_printf(s, " \n"); 8813829537SPekka Paalanen return ret; 8913829537SPekka Paalanen } 9013829537SPekka Paalanen 91d0a7e8caSPekka Paalanen static void destroy_header_iter(struct header_iter *hiter) 92bd8ac686SPekka Paalanen { 93d0a7e8caSPekka Paalanen if (!hiter) 94d0a7e8caSPekka Paalanen return; 95d0a7e8caSPekka Paalanen pci_dev_put(hiter->dev); 96d0a7e8caSPekka Paalanen kfree(hiter); 97d0a7e8caSPekka Paalanen } 98d0a7e8caSPekka Paalanen 99d0a7e8caSPekka Paalanen static void mmio_pipe_open(struct trace_iterator *iter) 100d0a7e8caSPekka Paalanen { 101d0a7e8caSPekka Paalanen struct header_iter *hiter; 102bd8ac686SPekka Paalanen struct trace_seq *s = &iter->seq; 10313829537SPekka Paalanen 10413829537SPekka Paalanen trace_seq_printf(s, "VERSION 20070824\n"); 10513829537SPekka Paalanen 106d0a7e8caSPekka Paalanen hiter = kzalloc(sizeof(*hiter), GFP_KERNEL); 107d0a7e8caSPekka Paalanen if (!hiter) 108d0a7e8caSPekka Paalanen return; 109d0a7e8caSPekka Paalanen 110d0a7e8caSPekka Paalanen hiter->dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL); 111d0a7e8caSPekka Paalanen iter->private = hiter; 112d0a7e8caSPekka Paalanen } 113d0a7e8caSPekka Paalanen 114d0a7e8caSPekka Paalanen /* XXX: This is not called when the pipe is closed! */ 115d0a7e8caSPekka Paalanen static void mmio_close(struct trace_iterator *iter) 116d0a7e8caSPekka Paalanen { 117d0a7e8caSPekka Paalanen struct header_iter *hiter = iter->private; 118d0a7e8caSPekka Paalanen destroy_header_iter(hiter); 119d0a7e8caSPekka Paalanen iter->private = NULL; 120d0a7e8caSPekka Paalanen } 121d0a7e8caSPekka Paalanen 1222039238bSPekka Paalanen static unsigned long count_overruns(struct trace_iterator *iter) 1232039238bSPekka Paalanen { 1242039238bSPekka Paalanen unsigned long cnt = 0; 1257ee1768dSPekka Paalanen unsigned long over = ring_buffer_overruns(iter->tr->buffer); 1267ee1768dSPekka Paalanen 1277ee1768dSPekka Paalanen if (over > prev_overruns) 1287ee1768dSPekka Paalanen cnt = over - prev_overruns; 1297ee1768dSPekka Paalanen prev_overruns = over; 1302039238bSPekka Paalanen return cnt; 1312039238bSPekka Paalanen } 1322039238bSPekka Paalanen 133d0a7e8caSPekka Paalanen static ssize_t mmio_read(struct trace_iterator *iter, struct file *filp, 134d0a7e8caSPekka Paalanen char __user *ubuf, size_t cnt, loff_t *ppos) 135d0a7e8caSPekka Paalanen { 136d0a7e8caSPekka Paalanen ssize_t ret; 137d0a7e8caSPekka Paalanen struct header_iter *hiter = iter->private; 138d0a7e8caSPekka Paalanen struct trace_seq *s = &iter->seq; 1392039238bSPekka Paalanen unsigned long n; 1402039238bSPekka Paalanen 1412039238bSPekka Paalanen n = count_overruns(iter); 1422039238bSPekka Paalanen if (n) { 1432039238bSPekka Paalanen /* XXX: This is later than where events were lost. */ 1442039238bSPekka Paalanen trace_seq_printf(s, "MARK 0.000000 Lost %lu events.\n", n); 1452039238bSPekka Paalanen if (!overrun_detected) 1462039238bSPekka Paalanen pr_warning("mmiotrace has lost events.\n"); 1472039238bSPekka Paalanen overrun_detected = true; 1482039238bSPekka Paalanen goto print_out; 1492039238bSPekka Paalanen } 150d0a7e8caSPekka Paalanen 151d0a7e8caSPekka Paalanen if (!hiter) 152d0a7e8caSPekka Paalanen return 0; 153d0a7e8caSPekka Paalanen 154d0a7e8caSPekka Paalanen mmio_print_pcidev(s, hiter->dev); 155d0a7e8caSPekka Paalanen hiter->dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, hiter->dev); 156d0a7e8caSPekka Paalanen 157d0a7e8caSPekka Paalanen if (!hiter->dev) { 158d0a7e8caSPekka Paalanen destroy_header_iter(hiter); 159d0a7e8caSPekka Paalanen iter->private = NULL; 160d0a7e8caSPekka Paalanen } 161d0a7e8caSPekka Paalanen 1622039238bSPekka Paalanen print_out: 163d0a7e8caSPekka Paalanen ret = trace_seq_to_user(s, ubuf, cnt); 164d0a7e8caSPekka Paalanen return (ret == -EBUSY) ? 0 : ret; 165bd8ac686SPekka Paalanen } 166bd8ac686SPekka Paalanen 16707f4e4f7SFrederic Weisbecker static enum print_line_t mmio_print_rw(struct trace_iterator *iter) 168bd8ac686SPekka Paalanen { 169bd8ac686SPekka Paalanen struct trace_entry *entry = iter->ent; 1707104f300SSteven Rostedt struct trace_mmiotrace_rw *field; 1717104f300SSteven Rostedt struct mmiotrace_rw *rw; 172bd8ac686SPekka Paalanen struct trace_seq *s = &iter->seq; 1733928a8a2SSteven Rostedt unsigned long long t = ns2usecs(iter->ts); 174bd8ac686SPekka Paalanen unsigned long usec_rem = do_div(t, 1000000ULL); 175bd8ac686SPekka Paalanen unsigned secs = (unsigned long)t; 176bd8ac686SPekka Paalanen int ret = 1; 177bd8ac686SPekka Paalanen 1787104f300SSteven Rostedt trace_assign_type(field, entry); 1797104f300SSteven Rostedt rw = &field->rw; 1807104f300SSteven Rostedt 181777e208dSSteven Rostedt switch (rw->opcode) { 182bd8ac686SPekka Paalanen case MMIO_READ: 183bd8ac686SPekka Paalanen ret = trace_seq_printf(s, 184dee310d0SPekka Paalanen "R %d %lu.%06lu %d 0x%llx 0x%lx 0x%lx %d\n", 185dee310d0SPekka Paalanen rw->width, secs, usec_rem, rw->map_id, 186dee310d0SPekka Paalanen (unsigned long long)rw->phys, 187736ca61fSPekka Paalanen rw->value, rw->pc, 0); 188bd8ac686SPekka Paalanen break; 189bd8ac686SPekka Paalanen case MMIO_WRITE: 190bd8ac686SPekka Paalanen ret = trace_seq_printf(s, 191dee310d0SPekka Paalanen "W %d %lu.%06lu %d 0x%llx 0x%lx 0x%lx %d\n", 192dee310d0SPekka Paalanen rw->width, secs, usec_rem, rw->map_id, 193dee310d0SPekka Paalanen (unsigned long long)rw->phys, 194736ca61fSPekka Paalanen rw->value, rw->pc, 0); 195bd8ac686SPekka Paalanen break; 196bd8ac686SPekka Paalanen case MMIO_UNKNOWN_OP: 197bd8ac686SPekka Paalanen ret = trace_seq_printf(s, 198dee310d0SPekka Paalanen "UNKNOWN %lu.%06lu %d 0x%llx %02x,%02x,%02x 0x%lx %d\n", 199dee310d0SPekka Paalanen secs, usec_rem, rw->map_id, 200dee310d0SPekka Paalanen (unsigned long long)rw->phys, 201bd8ac686SPekka Paalanen (rw->value >> 16) & 0xff, (rw->value >> 8) & 0xff, 202736ca61fSPekka Paalanen (rw->value >> 0) & 0xff, rw->pc, 0); 203bd8ac686SPekka Paalanen break; 204bd8ac686SPekka Paalanen default: 205bd8ac686SPekka Paalanen ret = trace_seq_printf(s, "rw what?\n"); 206bd8ac686SPekka Paalanen break; 207bd8ac686SPekka Paalanen } 208bd8ac686SPekka Paalanen if (ret) 20907f4e4f7SFrederic Weisbecker return TRACE_TYPE_HANDLED; 21007f4e4f7SFrederic Weisbecker return TRACE_TYPE_PARTIAL_LINE; 211bd8ac686SPekka Paalanen } 212bd8ac686SPekka Paalanen 21307f4e4f7SFrederic Weisbecker static enum print_line_t mmio_print_map(struct trace_iterator *iter) 214bd8ac686SPekka Paalanen { 215bd8ac686SPekka Paalanen struct trace_entry *entry = iter->ent; 2167104f300SSteven Rostedt struct trace_mmiotrace_map *field; 2177104f300SSteven Rostedt struct mmiotrace_map *m; 218bd8ac686SPekka Paalanen struct trace_seq *s = &iter->seq; 2193928a8a2SSteven Rostedt unsigned long long t = ns2usecs(iter->ts); 220bd8ac686SPekka Paalanen unsigned long usec_rem = do_div(t, 1000000ULL); 221bd8ac686SPekka Paalanen unsigned secs = (unsigned long)t; 22207f4e4f7SFrederic Weisbecker int ret; 223bd8ac686SPekka Paalanen 2247104f300SSteven Rostedt trace_assign_type(field, entry); 2257104f300SSteven Rostedt m = &field->map; 2267104f300SSteven Rostedt 227777e208dSSteven Rostedt switch (m->opcode) { 228bd8ac686SPekka Paalanen case MMIO_PROBE: 229bd8ac686SPekka Paalanen ret = trace_seq_printf(s, 230dee310d0SPekka Paalanen "MAP %lu.%06lu %d 0x%llx 0x%lx 0x%lx 0x%lx %d\n", 231dee310d0SPekka Paalanen secs, usec_rem, m->map_id, 232dee310d0SPekka Paalanen (unsigned long long)m->phys, m->virt, m->len, 233e0fd5c2fSPekka Paalanen 0UL, 0); 234bd8ac686SPekka Paalanen break; 235bd8ac686SPekka Paalanen case MMIO_UNPROBE: 236bd8ac686SPekka Paalanen ret = trace_seq_printf(s, 237bd8ac686SPekka Paalanen "UNMAP %lu.%06lu %d 0x%lx %d\n", 238e0fd5c2fSPekka Paalanen secs, usec_rem, m->map_id, 0UL, 0); 239bd8ac686SPekka Paalanen break; 240bd8ac686SPekka Paalanen default: 241bd8ac686SPekka Paalanen ret = trace_seq_printf(s, "map what?\n"); 242bd8ac686SPekka Paalanen break; 243bd8ac686SPekka Paalanen } 244bd8ac686SPekka Paalanen if (ret) 24507f4e4f7SFrederic Weisbecker return TRACE_TYPE_HANDLED; 24607f4e4f7SFrederic Weisbecker return TRACE_TYPE_PARTIAL_LINE; 247bd8ac686SPekka Paalanen } 248bd8ac686SPekka Paalanen 24907f4e4f7SFrederic Weisbecker static enum print_line_t mmio_print_mark(struct trace_iterator *iter) 250fc5e27aeSPekka Paalanen { 251fc5e27aeSPekka Paalanen struct trace_entry *entry = iter->ent; 252777e208dSSteven Rostedt struct print_entry *print = (struct print_entry *)entry; 253777e208dSSteven Rostedt const char *msg = print->buf; 254fc5e27aeSPekka Paalanen struct trace_seq *s = &iter->seq; 2553928a8a2SSteven Rostedt unsigned long long t = ns2usecs(iter->ts); 256fc5e27aeSPekka Paalanen unsigned long usec_rem = do_div(t, 1000000ULL); 257fc5e27aeSPekka Paalanen unsigned secs = (unsigned long)t; 258fc5e27aeSPekka Paalanen int ret; 259fc5e27aeSPekka Paalanen 260fc5e27aeSPekka Paalanen /* The trailing newline must be in the message. */ 261fc5e27aeSPekka Paalanen ret = trace_seq_printf(s, "MARK %lu.%06lu %s", secs, usec_rem, msg); 262fc5e27aeSPekka Paalanen if (!ret) 26307f4e4f7SFrederic Weisbecker return TRACE_TYPE_PARTIAL_LINE; 264fc5e27aeSPekka Paalanen 265777e208dSSteven Rostedt if (entry->flags & TRACE_FLAG_CONT) 266fc5e27aeSPekka Paalanen trace_seq_print_cont(s, iter); 267fc5e27aeSPekka Paalanen 26807f4e4f7SFrederic Weisbecker return TRACE_TYPE_HANDLED; 269fc5e27aeSPekka Paalanen } 270fc5e27aeSPekka Paalanen 27107f4e4f7SFrederic Weisbecker static enum print_line_t mmio_print_line(struct trace_iterator *iter) 272bd8ac686SPekka Paalanen { 273bd8ac686SPekka Paalanen switch (iter->ent->type) { 274bd8ac686SPekka Paalanen case TRACE_MMIO_RW: 275bd8ac686SPekka Paalanen return mmio_print_rw(iter); 276bd8ac686SPekka Paalanen case TRACE_MMIO_MAP: 277bd8ac686SPekka Paalanen return mmio_print_map(iter); 278fc5e27aeSPekka Paalanen case TRACE_PRINT: 279fc5e27aeSPekka Paalanen return mmio_print_mark(iter); 280bd8ac686SPekka Paalanen default: 28107f4e4f7SFrederic Weisbecker return TRACE_TYPE_HANDLED; /* ignore unknown entries */ 282bd8ac686SPekka Paalanen } 283bd8ac686SPekka Paalanen } 284f984b51eSPekka Paalanen 285f984b51eSPekka Paalanen static struct tracer mmio_tracer __read_mostly = 286f984b51eSPekka Paalanen { 287f984b51eSPekka Paalanen .name = "mmiotrace", 288f984b51eSPekka Paalanen .init = mmio_trace_init, 289f984b51eSPekka Paalanen .reset = mmio_trace_reset, 290bbf5b1a0SSteven Rostedt .start = mmio_trace_start, 291d0a7e8caSPekka Paalanen .pipe_open = mmio_pipe_open, 292d0a7e8caSPekka Paalanen .close = mmio_close, 293d0a7e8caSPekka Paalanen .read = mmio_read, 294bd8ac686SPekka Paalanen .print_line = mmio_print_line, 295f984b51eSPekka Paalanen }; 296f984b51eSPekka Paalanen 297f984b51eSPekka Paalanen __init static int init_mmio_trace(void) 298f984b51eSPekka Paalanen { 299f984b51eSPekka Paalanen return register_tracer(&mmio_tracer); 300f984b51eSPekka Paalanen } 301f984b51eSPekka Paalanen device_initcall(init_mmio_trace); 302f984b51eSPekka Paalanen 30345dcd8b8SPekka Paalanen static void __trace_mmiotrace_rw(struct trace_array *tr, 30445dcd8b8SPekka Paalanen struct trace_array_cpu *data, 30545dcd8b8SPekka Paalanen struct mmiotrace_rw *rw) 30645dcd8b8SPekka Paalanen { 3073928a8a2SSteven Rostedt struct ring_buffer_event *event; 308777e208dSSteven Rostedt struct trace_mmiotrace_rw *entry; 30945dcd8b8SPekka Paalanen unsigned long irq_flags; 31045dcd8b8SPekka Paalanen 3113928a8a2SSteven Rostedt event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), 3123928a8a2SSteven Rostedt &irq_flags); 3133928a8a2SSteven Rostedt if (!event) 3143928a8a2SSteven Rostedt return; 3153928a8a2SSteven Rostedt entry = ring_buffer_event_data(event); 31638697053SSteven Rostedt tracing_generic_entry_update(&entry->ent, 0, preempt_count()); 317777e208dSSteven Rostedt entry->ent.type = TRACE_MMIO_RW; 318777e208dSSteven Rostedt entry->rw = *rw; 3193928a8a2SSteven Rostedt ring_buffer_unlock_commit(tr->buffer, event, irq_flags); 32045dcd8b8SPekka Paalanen 32145dcd8b8SPekka Paalanen trace_wake_up(); 32245dcd8b8SPekka Paalanen } 32345dcd8b8SPekka Paalanen 324bd8ac686SPekka Paalanen void mmio_trace_rw(struct mmiotrace_rw *rw) 325f984b51eSPekka Paalanen { 326f984b51eSPekka Paalanen struct trace_array *tr = mmio_trace_array; 327f984b51eSPekka Paalanen struct trace_array_cpu *data = tr->data[smp_processor_id()]; 328bd8ac686SPekka Paalanen __trace_mmiotrace_rw(tr, data, rw); 329bd8ac686SPekka Paalanen } 330f984b51eSPekka Paalanen 33145dcd8b8SPekka Paalanen static void __trace_mmiotrace_map(struct trace_array *tr, 33245dcd8b8SPekka Paalanen struct trace_array_cpu *data, 33345dcd8b8SPekka Paalanen struct mmiotrace_map *map) 33445dcd8b8SPekka Paalanen { 3353928a8a2SSteven Rostedt struct ring_buffer_event *event; 336777e208dSSteven Rostedt struct trace_mmiotrace_map *entry; 33745dcd8b8SPekka Paalanen unsigned long irq_flags; 33845dcd8b8SPekka Paalanen 3393928a8a2SSteven Rostedt event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), 3403928a8a2SSteven Rostedt &irq_flags); 3413928a8a2SSteven Rostedt if (!event) 3423928a8a2SSteven Rostedt return; 3433928a8a2SSteven Rostedt entry = ring_buffer_event_data(event); 34438697053SSteven Rostedt tracing_generic_entry_update(&entry->ent, 0, preempt_count()); 345777e208dSSteven Rostedt entry->ent.type = TRACE_MMIO_MAP; 346777e208dSSteven Rostedt entry->map = *map; 3473928a8a2SSteven Rostedt ring_buffer_unlock_commit(tr->buffer, event, irq_flags); 34845dcd8b8SPekka Paalanen 34945dcd8b8SPekka Paalanen trace_wake_up(); 35045dcd8b8SPekka Paalanen } 35145dcd8b8SPekka Paalanen 352bd8ac686SPekka Paalanen void mmio_trace_mapping(struct mmiotrace_map *map) 353bd8ac686SPekka Paalanen { 354bd8ac686SPekka Paalanen struct trace_array *tr = mmio_trace_array; 355bd8ac686SPekka Paalanen struct trace_array_cpu *data; 356bd8ac686SPekka Paalanen 357bd8ac686SPekka Paalanen preempt_disable(); 358bd8ac686SPekka Paalanen data = tr->data[smp_processor_id()]; 359bd8ac686SPekka Paalanen __trace_mmiotrace_map(tr, data, map); 360bd8ac686SPekka Paalanen preempt_enable(); 361f984b51eSPekka Paalanen } 3629e57fb35SPekka Paalanen 3639e57fb35SPekka Paalanen int mmio_trace_printk(const char *fmt, va_list args) 3649e57fb35SPekka Paalanen { 3651fd8f2a3SFrederic Weisbecker return trace_vprintk(0, -1, fmt, args); 3669e57fb35SPekka Paalanen } 367