aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_mmiotrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_mmiotrace.c')
-rw-r--r--kernel/trace/trace_mmiotrace.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/kernel/trace/trace_mmiotrace.c b/kernel/trace/trace_mmiotrace.c
index f28484618ff0..fa9354e78b57 100644
--- a/kernel/trace/trace_mmiotrace.c
+++ b/kernel/trace/trace_mmiotrace.c
@@ -49,15 +49,10 @@ static void mmio_trace_reset(struct trace_array *tr)
49 mmio_trace_array = NULL; 49 mmio_trace_array = NULL;
50} 50}
51 51
52static void mmio_trace_ctrl_update(struct trace_array *tr) 52static void mmio_trace_start(struct trace_array *tr)
53{ 53{
54 pr_debug("in %s\n", __func__); 54 pr_debug("in %s\n", __func__);
55 if (tr->ctrl) { 55 mmio_reset_data(tr);
56 mmio_reset_data(tr);
57 enable_mmiotrace();
58 } else {
59 disable_mmiotrace();
60 }
61} 56}
62 57
63static int mmio_print_pcidev(struct trace_seq *s, const struct pci_dev *dev) 58static int mmio_print_pcidev(struct trace_seq *s, const struct pci_dev *dev)
@@ -298,10 +293,10 @@ static struct tracer mmio_tracer __read_mostly =
298 .name = "mmiotrace", 293 .name = "mmiotrace",
299 .init = mmio_trace_init, 294 .init = mmio_trace_init,
300 .reset = mmio_trace_reset, 295 .reset = mmio_trace_reset,
296 .start = mmio_trace_start,
301 .pipe_open = mmio_pipe_open, 297 .pipe_open = mmio_pipe_open,
302 .close = mmio_close, 298 .close = mmio_close,
303 .read = mmio_read, 299 .read = mmio_read,
304 .ctrl_update = mmio_trace_ctrl_update,
305 .print_line = mmio_print_line, 300 .print_line = mmio_print_line,
306}; 301};
307 302