Searched refs:global_trace (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/kernel/trace/ |
H A D | trace.c | 257 /* trace_options that are only supported by global_trace */ 263 * The global_trace is the descriptor that holds the tracing 274 static struct trace_array global_trace = { variable in typeref:struct:trace_array 355 return buffer_ftrace_now(&global_trace.trace_buffer, cpu); ftrace_now() 359 * tracing_is_enabled - Show if global_trace has been disabled 375 return !global_trace.buffer_disabled; tracing_is_enabled() 531 tracer_tracing_on(&global_trace); tracing_on() 550 if (!(global_trace.trace_flags & TRACE_ITER_PRINTK)) __trace_puts() 561 buffer = global_trace.trace_buffer.buffer; __trace_puts() 580 ftrace_trace_stack(&global_trace, buffer, irq_flags, 4, pc, NULL); __trace_puts() 600 if (!(global_trace.trace_flags & TRACE_ITER_PRINTK)) __trace_bputs() 609 buffer = global_trace.trace_buffer.buffer; __trace_bputs() 620 ftrace_trace_stack(&global_trace, buffer, irq_flags, 4, pc, NULL); __trace_bputs() 643 struct trace_array *tr = &global_trace; tracing_snapshot() 720 struct trace_array *tr = &global_trace; tracing_alloc_snapshot() 799 tracer_tracing_off(&global_trace); tracing_off() 827 return tracer_tracing_is_on(&global_trace); tracing_is_on() 1065 * update_max_tr - snapshot all trace buffers from global_trace to max_tr 1157 struct trace_array *tr = &global_trace; run_tracer_selftest() 1273 add_tracer_options(&global_trace, type); register_tracer() 1287 tracing_set_tracer(&global_trace, type->name); register_tracer() 1422 return global_trace.stop_count; is_tracing_stopped() 1439 raw_spin_lock_irqsave(&global_trace.start_lock, flags); tracing_start() 1440 if (--global_trace.stop_count) { tracing_start() 1441 if (global_trace.stop_count < 0) { tracing_start() 1444 global_trace.stop_count = 0; tracing_start() 1450 arch_spin_lock(&global_trace.max_lock); tracing_start() 1452 buffer = global_trace.trace_buffer.buffer; tracing_start() 1457 buffer = global_trace.max_buffer.buffer; tracing_start() 1462 arch_spin_unlock(&global_trace.max_lock); tracing_start() 1465 raw_spin_unlock_irqrestore(&global_trace.start_lock, flags); tracing_start() 1510 raw_spin_lock_irqsave(&global_trace.start_lock, flags); tracing_stop() 1511 if (global_trace.stop_count++) tracing_stop() 1515 arch_spin_lock(&global_trace.max_lock); tracing_stop() 1517 buffer = global_trace.trace_buffer.buffer; tracing_stop() 1522 buffer = global_trace.max_buffer.buffer; tracing_stop() 1527 arch_spin_unlock(&global_trace.max_lock); tracing_stop() 1530 raw_spin_unlock_irqrestore(&global_trace.start_lock, flags); tracing_stop() 1740 *current_rb = global_trace.trace_buffer.buffer; trace_current_buffer_lock_reserve() 1914 __ftrace_trace_stack(global_trace.trace_buffer.buffer, trace_dump_stack() 1928 if (!(global_trace.trace_flags & TRACE_ITER_USERSTACKTRACE)) ftrace_trace_userstack() 2097 * directly here. If the global_trace.buffer is already trace_printk_init_buffers() 2100 if (global_trace.trace_buffer.buffer) trace_printk_init_buffers() 2132 struct trace_array *tr = &global_trace; trace_vbprintk() 2224 ftrace_trace_stack(&global_trace, buffer, flags, 6, pc, NULL); __trace_array_vprintk() 2245 if (!(global_trace.trace_flags & TRACE_ITER_PRINTK)) trace_array_printk() 2260 if (!(global_trace.trace_flags & TRACE_ITER_PRINTK)) trace_array_printk_buf() 2271 return trace_array_vprintk(&global_trace, ip, fmt, args); trace_vprintk() 2601 unsigned long sym_flags = (global_trace.trace_flags & TRACE_ITER_SYM_MASK); print_trace_header() 3635 trace_set_options(&global_trace, option); apply_trace_boot_options() 4328 ret = __tracing_resize_ring_buffer(&global_trace, trace_buf_size, tracing_update_buffers() 6063 alloc_snapshot(&global_trace); ftrace_trace_snapshot_callback() 6453 bool top_level = tr == &global_trace; create_trace_options_dir() 6650 tr->trace_flags = global_trace.trace_flags; instance_mkdir() 6847 struct trace_array *tr = &global_trace; tracing_init_dentry() 6966 init_tracer_tracefs(&global_trace, d_tracer); tracer_init_tracefs() 6969 &global_trace, &tracing_thresh_fops); tracer_init_tracefs() 6995 update_tracer_options(&global_trace); tracer_init_tracefs() 7072 iter->tr = &global_trace; trace_init_global_iter() 7075 iter->trace_buffer = &global_trace.trace_buffer; trace_init_global_iter() 7094 struct trace_array *tr = &global_trace; ftrace_dump() 7214 if (!alloc_cpumask_var(&global_trace.tracing_cpumask, GFP_KERNEL)) tracer_alloc_buffers() 7219 /* Must be called before global_trace.buffer is allocated */ tracer_alloc_buffers() 7229 cpumask_copy(global_trace.tracing_cpumask, cpu_all_mask); tracer_alloc_buffers() 7231 raw_spin_lock_init(&global_trace.start_lock); tracer_alloc_buffers() 7242 if (allocate_trace_buffers(&global_trace, ring_buf_size) < 0) { tracer_alloc_buffers() 7248 if (global_trace.buffer_disabled) tracer_alloc_buffers() 7252 ret = tracing_set_clock(&global_trace, trace_boot_clock); tracer_alloc_buffers() 7263 global_trace.current_trace = &nop_trace; tracer_alloc_buffers() 7265 global_trace.max_lock = (arch_spinlock_t)__ARCH_SPIN_LOCK_UNLOCKED; tracer_alloc_buffers() 7267 ftrace_init_global_array_ops(&global_trace); tracer_alloc_buffers() 7269 init_trace_flags_index(&global_trace); tracer_alloc_buffers() 7281 global_trace.flags = TRACE_ARRAY_FL_GLOBAL; tracer_alloc_buffers() 7283 INIT_LIST_HEAD(&global_trace.systems); tracer_alloc_buffers() 7284 INIT_LIST_HEAD(&global_trace.events); tracer_alloc_buffers() 7285 list_add(&global_trace.list, &ftrace_trace_arrays); tracer_alloc_buffers() 7298 free_cpumask_var(global_trace.tracing_cpumask); tracer_alloc_buffers()
|
Completed in 89 milliseconds