Lines Matching refs:tr

25 trace_boot_set_instance_options(struct trace_array *tr, struct xbc_node *node)  in trace_boot_set_instance_options()  argument
39 if (trace_set_options(tr, buf) < 0) in trace_boot_set_instance_options()
48 tracer_tracing_on(tr); in trace_boot_set_instance_options()
50 tracer_tracing_off(tr); in trace_boot_set_instance_options()
55 if (tracing_set_clock(tr, p) < 0) in trace_boot_set_instance_options()
64 if (tracing_resize_ring_buffer(tr, v, RING_BUFFER_ALL_CPUS) < 0) in trace_boot_set_instance_options()
74 tracing_set_cpumask(tr, new_mask) < 0) in trace_boot_set_instance_options()
83 trace_boot_enable_events(struct trace_array *tr, struct xbc_node *node) in trace_boot_enable_events() argument
95 if (ftrace_set_clr_event(tr, buf, 1) < 0) in trace_boot_enable_events()
462 trace_boot_init_one_event(struct trace_array *tr, struct xbc_node *gnode, in trace_boot_init_one_event() argument
481 file = find_event_file(tr, group, event); in trace_boot_init_one_event()
518 trace_boot_init_events(struct trace_array *tr, struct xbc_node *node) in trace_boot_init_events() argument
541 trace_boot_init_one_event(tr, gnode, enode); in trace_boot_init_events()
546 trace_array_set_clr_event(tr, data, NULL, true); in trace_boot_init_events()
551 trace_array_set_clr_event(tr, NULL, NULL, true); in trace_boot_init_events()
554 #define trace_boot_enable_events(tr, node) do {} while (0) argument
555 #define trace_boot_init_events(tr, node) do {} while (0) argument
560 trace_boot_set_ftrace_filter(struct trace_array *tr, struct xbc_node *node) in trace_boot_set_ftrace_filter() argument
570 if (ftrace_set_filter(tr->ops, q, strlen(q), 0) < 0) in trace_boot_set_ftrace_filter()
580 if (ftrace_set_notrace(tr->ops, q, strlen(q), 0) < 0) in trace_boot_set_ftrace_filter()
588 #define trace_boot_set_ftrace_filter(tr, node) do {} while (0) argument
592 trace_boot_enable_tracer(struct trace_array *tr, struct xbc_node *node) in trace_boot_enable_tracer() argument
596 trace_boot_set_ftrace_filter(tr, node); in trace_boot_enable_tracer()
600 if (tracing_set_tracer(tr, p) < 0) in trace_boot_enable_tracer()
606 if (tracing_alloc_snapshot_instance(tr) < 0) in trace_boot_enable_tracer()
612 trace_boot_init_one_instance(struct trace_array *tr, struct xbc_node *node) in trace_boot_init_one_instance() argument
614 trace_boot_set_instance_options(tr, node); in trace_boot_init_one_instance()
615 trace_boot_init_events(tr, node); in trace_boot_init_one_instance()
616 trace_boot_enable_events(tr, node); in trace_boot_init_one_instance()
617 trace_boot_enable_tracer(tr, node); in trace_boot_init_one_instance()
624 struct trace_array *tr; in trace_boot_init_instances() local
636 tr = trace_array_get_by_name(p, NULL); in trace_boot_init_instances()
637 if (!tr) { in trace_boot_init_instances()
641 trace_boot_init_one_instance(tr, inode); in trace_boot_init_instances()
642 trace_array_put(tr); in trace_boot_init_instances()
649 struct trace_array *tr; in trace_boot_init() local
655 tr = top_trace_array(); in trace_boot_init()
656 if (!tr) in trace_boot_init()
660 trace_boot_init_one_instance(tr, trace_node); in trace_boot_init()