tracing: Add percpu buffers for trace_printk()
[deliverable/linux.git] / kernel / trace / trace_printk.c
index 6fd4ffd042f9071fa158400c147de5a55914975d..a9077c1b4ad3f402ecc7580b8c918e0b50db5318 100644 (file)
@@ -51,6 +51,10 @@ void hold_module_trace_bprintk_format(const char **start, const char **end)
        const char **iter;
        char *fmt;
 
+       /* allocate the trace_printk per cpu buffers */
+       if (start != end)
+               trace_printk_init_buffers();
+
        mutex_lock(&btrace_mutex);
        for (iter = start; iter < end; iter++) {
                struct trace_bprintk_fmt *tb_fmt = lookup_format(*iter);
This page took 0.026161 seconds and 5 git commands to generate.