• Home
  • Raw
  • Download

Lines Matching refs:fstream

238     fwrite(&swappedHeader, sizeof(TraceHeader), 1, trace_static.fstream);  in write_trace_header()
246 FILE *fstream = fopen(fname, "wb"); in create_trace_bb() local
247 if (fstream == NULL) { in create_trace_bb()
251 trace_bb.fstream = fstream; in create_trace_bb()
268 FILE *fstream = fopen(fname, "wb"); in create_trace_insn() local
269 if (fstream == NULL) { in create_trace_insn()
273 trace_insn.fstream = fstream; in create_trace_insn()
288 FILE *fstream = fopen(fname, "wb"); in create_trace_static() local
289 if (fstream == NULL) { in create_trace_static()
293 trace_static.fstream = fstream; in create_trace_static()
318 fwrite(&zero, sizeof(uint64_t), 1, trace_static.fstream); // bb_num in create_trace_static()
319 fwrite(&zero, sizeof(uint32_t), 1, trace_static.fstream); // bb_addr in create_trace_static()
320 fwrite(&zero, sizeof(uint32_t), 1, trace_static.fstream); // num_insns in create_trace_static()
326 trace_load.fstream = NULL; in create_trace_addr()
327 trace_store.fstream = NULL; in create_trace_addr()
333 FILE *fstream = fopen(fname, "wb"); in create_trace_addr() local
334 if (fstream == NULL) { in create_trace_addr()
338 trace_load.fstream = fstream; in create_trace_addr()
349 fstream = fopen(fname, "wb"); in create_trace_addr()
350 if (fstream == NULL) { in create_trace_addr()
354 trace_store.fstream = fstream; in create_trace_addr()
369 FILE *fstream = fopen(fname, "wb"); in create_trace_exc() local
370 if (fstream == NULL) { in create_trace_exc()
374 trace_exc.fstream = fstream; in create_trace_exc()
387 FILE *fstream = fopen(fname, "wb"); in create_trace_pid() local
388 if (fstream == NULL) { in create_trace_pid()
392 trace_pid.fstream = fstream; in create_trace_pid()
403 FILE *fstream = fopen(fname, "wb"); in create_trace_method() local
404 if (fstream == NULL) { in create_trace_method()
408 trace_method.fstream = fstream; in create_trace_method()
512 fwrite(&bb_num, sizeof(bb_num), 1, trace_static.fstream); in trace_bb_end()
513 fwrite(&bb_addr, sizeof(bb_addr), 1, trace_static.fstream); in trace_bb_end()
514 fwrite(&num_insns, sizeof(num_insns), 1, trace_static.fstream); in trace_bb_end()
517 fwrite(&insn, sizeof(insn), 1, trace_static.fstream); in trace_bb_end()
545 if (trace_bb.fstream) { in trace_cleanup()
555 trace_bb.fstream); in trace_cleanup()
581 fwrite(trace_bb.compressed, sizeof(char), size, trace_bb.fstream); in trace_cleanup()
586 fwrite(&zeros, 3, 1, trace_bb.fstream); in trace_cleanup()
587 fclose(trace_bb.fstream); in trace_cleanup()
590 if (trace_insn.fstream) { in trace_cleanup()
598 size, trace_insn.fstream); in trace_cleanup()
613 trace_insn.fstream); in trace_cleanup()
620 fclose(trace_insn.fstream); in trace_cleanup()
623 if (trace_static.fstream) { in trace_cleanup()
624 fseek(trace_static.fstream, 0, SEEK_SET); in trace_cleanup()
626 fclose(trace_static.fstream); in trace_cleanup()
629 if (trace_load.fstream) { in trace_cleanup()
639 trace_load.fstream); in trace_cleanup()
655 trace_load.fstream); in trace_cleanup()
661 fwrite(&zeros, 2, 1, trace_load.fstream); in trace_cleanup()
662 fclose(trace_load.fstream); in trace_cleanup()
665 if (trace_store.fstream) { in trace_cleanup()
675 trace_store.fstream); in trace_cleanup()
691 trace_store.fstream); in trace_cleanup()
697 fwrite(&zeros, 2, 1, trace_store.fstream); in trace_cleanup()
698 fclose(trace_store.fstream); in trace_cleanup()
701 if (trace_exc.fstream) { in trace_cleanup()
705 trace_exc.fstream); in trace_cleanup()
711 fwrite(&zeros, 7, 1, trace_exc.fstream); in trace_cleanup()
712 fclose(trace_exc.fstream); in trace_cleanup()
714 if (trace_pid.fstream) { in trace_cleanup()
718 trace_pid.fstream); in trace_cleanup()
724 fwrite(&zeros, 2, 1, trace_pid.fstream); in trace_cleanup()
725 fclose(trace_pid.fstream); in trace_cleanup()
727 if (trace_method.fstream) { in trace_cleanup()
731 trace_method.fstream); in trace_cleanup()
737 fwrite(&zeros, 2, 1, trace_method.fstream); in trace_cleanup()
738 fclose(trace_method.fstream); in trace_cleanup()
1382 if (trace_exc.fstream == NULL) in trace_exception()
1402 fwrite(trace_exc.compressed, sizeof(char), size, trace_exc.fstream); in trace_exception()
1421 if (trace_pid.fstream == NULL) in trace_pid_1arg()
1427 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream); in trace_pid_1arg()
1440 if (trace_pid.fstream == NULL) in trace_pid_2arg()
1446 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream); in trace_pid_2arg()
1461 if (ftrace_debug && trace_pid.fstream) in trace_switch()
1471 if (ftrace_debug && trace_pid.fstream) in trace_fork()
1480 if (ftrace_debug && trace_pid.fstream) in trace_clone()
1489 if (ftrace_debug && trace_pid.fstream) in trace_exit()
1498 if (ftrace_debug && trace_pid.fstream) { in trace_name()
1503 if (trace_pid.fstream == NULL) in trace_name()
1510 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream); in trace_name()
1529 if (trace_pid.fstream == NULL) in trace_execve()
1560 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream); in trace_execve()
1584 if (trace_pid.fstream == NULL) in trace_mmap()
1596 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream); in trace_mmap()
1614 if (trace_pid.fstream == NULL) in trace_munmap()
1625 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream); in trace_munmap()
1640 if (trace_pid.fstream == NULL) in trace_dynamic_symbol_add()
1651 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream); in trace_dynamic_symbol_add()
1667 if (trace_pid.fstream == NULL) in trace_dynamic_symbol_remove()
1677 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream); in trace_dynamic_symbol_remove()
1691 if (trace_pid.fstream == NULL) in trace_init_name()
1702 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream); in trace_init_name()
1761 fwrite(trace_bb.compressed, sizeof(char), size, trace_bb.fstream); in trace_bb_helper()
1827 size, trace_insn.fstream); in trace_insn_helper()
1852 if (trace_method.fstream == NULL) in trace_interpreted_method()
1862 fwrite(trace_method.compressed, sizeof(char), size, trace_method.fstream); in trace_interpreted_method()