Home | History | Annotate | Download | only in qemu

Lines Matching defs:fstream

32     FILE        *fstream;
51 FILE *fstream;
64 FILE *fstream;
75 FILE *fstream;
88 FILE *fstream;
99 FILE *fstream;
108 FILE *fstream;
335 fwrite(&swappedHeader, sizeof(TraceHeader), 1, trace_static.fstream);
343 FILE *fstream = fopen(fname, "wb");
344 if (fstream == NULL) {
348 trace_bb.fstream = fstream;
365 FILE *fstream = fopen(fname, "wb");
366 if (fstream == NULL) {
370 trace_insn.fstream = fstream;
385 FILE *fstream = fopen(fname, "wb");
386 if (fstream == NULL) {
390 trace_static.fstream = fstream;
415 fwrite(&zero, sizeof(uint64_t), 1, trace_static.fstream); // bb_num
416 fwrite(&zero, sizeof(uint32_t), 1, trace_static.fstream); // bb_addr
417 fwrite(&zero, sizeof(uint32_t), 1, trace_static.fstream); // num_insns
423 trace_load.fstream = NULL;
424 trace_store.fstream = NULL;
430 FILE *fstream = fopen(fname, "wb");
431 if (fstream == NULL) {
435 trace_load.fstream = fstream;
446 fstream = fopen(fname, "wb");
447 if (fstream == NULL) {
451 trace_store.fstream = fstream;
466 FILE *fstream = fopen(fname, "wb");
467 if (fstream == NULL) {
471 trace_exc.fstream = fstream;
484 FILE *fstream = fopen(fname, "wb");
485 if (fstream == NULL) {
489 trace_pid.fstream = fstream;
500 FILE *fstream = fopen(fname, "wb");
501 if (fstream == NULL) {
505 trace_method.fstream = fstream;
609 fwrite(&bb_num, sizeof(bb_num), 1, trace_static.fstream);
610 fwrite(&bb_addr, sizeof(bb_addr), 1, trace_static.fstream);
611 fwrite(&num_insns, sizeof(num_insns), 1, trace_static.fstream);
614 fwrite(&insn, sizeof(insn), 1, trace_static.fstream);
642 if (trace_bb.fstream) {
652 trace_bb.fstream);
678 fwrite(trace_bb.compressed, sizeof(char), size, trace_bb.fstream);
683 fwrite(&zeros, 3, 1, trace_bb.fstream);
684 fclose(trace_bb.fstream);
687 if (trace_insn.fstream) {
695 size, trace_insn.fstream);
710 trace_insn.fstream);
717 fclose(trace_insn.fstream);
720 if (trace_static.fstream) {
721 fseek(trace_static.fstream, 0, SEEK_SET);
723 fclose(trace_static.fstream);
726 if (trace_load.fstream) {
736 trace_load.fstream);
752 trace_load.fstream);
758 fwrite(&zeros, 2, 1, trace_load.fstream);
759 fclose(trace_load.fstream);
762 if (trace_store.fstream) {
772 trace_store.fstream);
788 trace_store.fstream);
794 fwrite(&zeros, 2, 1, trace_store.fstream);
795 fclose(trace_store.fstream);
798 if (trace_exc.fstream) {
802 trace_exc.fstream);
808 fwrite(&zeros, 7, 1, trace_exc.fstream);
809 fclose(trace_exc.fstream);
811 if (trace_pid.fstream) {
815 trace_pid.fstream);
821 fwrite(&zeros, 2, 1, trace_pid.fstream);
822 fclose(trace_pid.fstream);
824 if (trace_method.fstream) {
828 trace_method.fstream);
834 fwrite(&zeros, 2, 1, trace_method.fstream);
835 fclose(trace_method.fstream);
1479 if (trace_exc.fstream == NULL)
1499 fwrite(trace_exc.compressed, sizeof(char), size, trace_exc.fstream);
1518 if (trace_pid.fstream == NULL)
1524 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream);
1537 if (trace_pid.fstream == NULL)
1543 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream);
1558 if (ftrace_debug && trace_pid.fstream)
1568 if (ftrace_debug && trace_pid.fstream)
1577 if (ftrace_debug && trace_pid.fstream)
1586 if (ftrace_debug && trace_pid.fstream)
1595 if (ftrace_debug && trace_pid.fstream) {
1600 if (trace_pid.fstream == NULL)
1607 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream);
1626 if (trace_pid.fstream == NULL)
1657 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream);
1681 if (trace_pid.fstream == NULL)
1693 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream);
1711 if (trace_pid.fstream == NULL)
1722 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream);
1737 if (trace_pid.fstream == NULL)
1748 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream);
1764 if (trace_pid.fstream == NULL)
1774 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream);
1788 if (trace_pid.fstream == NULL)
1799 fwrite(trace_pid.compressed, sizeof(char), size, trace_pid.fstream);
1858 fwrite(trace_bb.compressed, sizeof(char), size, trace_bb.fstream);
1924 size, trace_insn.fstream);
1949 if (trace_method.fstream == NULL)
1959 fwrite(trace_method.compressed, sizeof(char), size, trace_method.fstream);