Lines Matching refs:trace_buffer
76 trace_event trace_buffer[TRACE_MAX];
129 fc_get(trace_buffer[ti].timestamp);
145 fc_get(trace_buffer[ti].timestamp);
146 /* get_uniq_timestamp(trace_buffer[ti].timestamp);*/
149 trace_buffer[ti].funcname = funcname;
150 trace_buffer[ti].file = file;
151 trace_buffer[ti].lineno = lineno;
152 trace_buffer[ti].fmt = fmt;
153 trace_buffer[ti].tag1 = tag1;
154 trace_buffer[ti].tag2 = tag2;
155 trace_buffer[ti].tag3 = tag3;
156 trace_buffer[ti].tag4 = tag4;
158 trace_buffer[ti].indent = tr_indent;
162 trace_buffer[ti].indent = tr_indent[cpu];
163 trace_buffer[ti].cpu_number = cpu;
219 last_trace = &trace_buffer[index-1];
221 level = trace_buffer[index-1].indent;
225 memset(blanks, ' ', trace_buffer[index].indent);
226 blanks[trace_buffer[index].indent] = '\0';
230 (trace_buffer[i].cpu_number != tr_limit))
233 if (trace_buffer[i].file == (char *) 0 ||
234 trace_buffer[i].funcname == (char *) 0 ||
235 trace_buffer[i].lineno == 0 ||
236 trace_buffer[i].fmt == 0) {
247 if (level != trace_buffer[i].indent) {
248 level = trace_buffer[i].indent;
255 for (cp = trace_buffer[i].file; *cp; ++cp)
259 db_printf("{%02d}",trace_buffer[i].cpu_number);
262 blanks, trace_buffer[i].funcname);
267 trace_buffer[i].timestamp[0],
268 trace_buffer[i].timestamp[1]);
279 ((last_trace - trace_buffer)
285 trace_buffer[i].timestamp,
292 filename, trace_buffer[i].lineno);
296 db_printf(trace_buffer[i].fmt, trace_buffer[i].tag1,
297 trace_buffer[i].tag2, trace_buffer[i].tag3,
298 trace_buffer[i].tag4);
301 last_trace = &trace_buffer[i];
345 (trace_buffer[i].cpu_number != tr_limit))
348 if (trace_buffer[i].file == (char *) 0 ||
349 trace_buffer[i].funcname == (char *) 0 ||
350 trace_buffer[i].lineno == 0 ||
351 trace_buffer[i].fmt == 0) {
356 if (!matches(string, trace_buffer[i].fmt))
358 for (cp = trace_buffer[i].file; *cp; ++cp)
362 db_printf("{%02d}",trace_buffer[i].cpu_number);
365 trace_buffer[i].funcname);
367 db_printf(trace_buffer[i].fmt, trace_buffer[i].tag1,
368 trace_buffer[i].tag2, trace_buffer[i].tag3,
369 trace_buffer[i].tag4);