Lines Matching refs:t
2087 struct tracer *t, **last; in init_trace_selftests() local
2111 for (t = trace_types; t; t = t->next) { in init_trace_selftests()
2112 if (t == p->type) { in init_trace_selftests()
2113 *last = t->next; in init_trace_selftests()
2116 last = &t->next; in init_trace_selftests()
2141 static void add_tracer_options(struct trace_array *tr, struct tracer *t);
2153 struct tracer *t; in register_tracer() local
2174 for (t = trace_types; t; t = t->next) { in register_tracer()
2175 if (strcmp(type->name, t->name) == 0) { in register_tracer()
4266 unsigned long t, e; in get_total_entries() local
4273 get_total_entries_cpu(buf, &t, &e, cpu); in get_total_entries()
4274 *total += t; in get_total_entries()
5120 trace_ok_for_array(struct tracer *t, struct trace_array *tr) in trace_ok_for_array() argument
5122 return (tr->flags & TRACE_ARRAY_FL_GLOBAL) || t->allow_instances; in trace_ok_for_array()
5127 get_tracer_for_array(struct trace_array *tr, struct tracer *t) in get_tracer_for_array() argument
5129 while (t && !trace_ok_for_array(t, tr)) in get_tracer_for_array()
5130 t = t->next; in get_tracer_for_array()
5132 return t; in get_tracer_for_array()
5139 struct tracer *t = v; in t_next() local
5143 if (t) in t_next()
5144 t = get_tracer_for_array(tr, t->next); in t_next()
5146 return t; in t_next()
5152 struct tracer *t; in t_start() local
5157 t = get_tracer_for_array(tr, trace_types); in t_start()
5158 for (; t && l < *pos; t = t_next(m, t, &l)) in t_start()
5161 return t; in t_start()
5171 struct tracer *t = v; in t_show() local
5173 if (!t) in t_show()
5176 seq_puts(m, t->name); in t_show()
5177 if (t->next) in t_show()
6315 int tracer_init(struct tracer *t, struct trace_array *tr) in tracer_init() argument
6318 return t->init(tr); in tracer_init()
6502 static void add_tracer_options(struct trace_array *tr, struct tracer *t) in add_tracer_options() argument
6512 create_trace_option_files(tr, t); in add_tracer_options()
6517 struct tracer *t; in tracing_set_tracer() local
6533 for (t = trace_types; t; t = t->next) { in tracing_set_tracer()
6534 if (strcmp(t->name, buf) == 0) in tracing_set_tracer()
6537 if (!t) { in tracing_set_tracer()
6541 if (t == tr->current_trace) in tracing_set_tracer()
6545 if (t->use_max_tr) { in tracing_set_tracer()
6557 if (system_state < SYSTEM_RUNNING && t->noboot) { in tracing_set_tracer()
6559 t->name); in tracing_set_tracer()
6564 if (!trace_ok_for_array(t, tr)) { in tracing_set_tracer()
6588 if (had_max_tr && !t->use_max_tr) { in tracing_set_tracer()
6600 if (t->use_max_tr && !tr->allocated_snapshot) { in tracing_set_tracer()
6609 if (t->init) { in tracing_set_tracer()
6610 ret = tracer_init(t, tr); in tracing_set_tracer()
6615 tr->current_trace = t; in tracing_set_tracer()
8617 unsigned long long t; in tracing_stats_read() local
8640 t = ns2usecs(ring_buffer_oldest_event_ts(trace_buf->buffer, cpu)); in tracing_stats_read()
8641 usec_rem = do_div(t, USEC_PER_SEC); in tracing_stats_read()
8643 t, usec_rem); in tracing_stats_read()
8645 t = ns2usecs(ring_buffer_time_stamp(trace_buf->buffer)); in tracing_stats_read()
8646 usec_rem = do_div(t, USEC_PER_SEC); in tracing_stats_read()
8647 trace_seq_printf(s, "now ts: %5llu.%06lu\n", t, usec_rem); in tracing_stats_read()
9464 struct tracer *t; in __update_tracer_options() local
9466 for (t = trace_types; t; t = t->next) in __update_tracer_options()
9467 add_tracer_options(tr, t); in __update_tracer_options()