Lines Matching refs:fout
309 FILE *fout; in run_bpf_prog() local
315 fout = fopen(fname, "w"); in run_bpf_prog()
316 fprintf(fout, "id:%d\n", cg_id); in run_bpf_prog()
317 fprintf(fout, "ERROR: Could not lookup queue_stats\n"); in run_bpf_prog()
318 fclose(fout); in run_bpf_prog()
328 FILE *fout; in run_bpf_prog() local
343 fout = fopen(fname, "w"); in run_bpf_prog()
344 fprintf(fout, "id:%d\n", cg_id); in run_bpf_prog()
345 fprintf(fout, "rate_mbps:%d\n", rate_mbps); in run_bpf_prog()
346 fprintf(fout, "duration:%.1f secs\n", in run_bpf_prog()
349 fprintf(fout, "packets:%d\n", (int)qstats.pkts_total); in run_bpf_prog()
350 fprintf(fout, "bytes_MB:%d\n", (int)(qstats.bytes_total / in run_bpf_prog()
352 fprintf(fout, "pkts_dropped:%d\n", (int)qstats.pkts_dropped); in run_bpf_prog()
353 fprintf(fout, "bytes_dropped_MB:%d\n", in run_bpf_prog()
361 fprintf(fout, "pkts_marked_percent:%6.2f\n", percent_pkts); in run_bpf_prog()
362 fprintf(fout, "bytes_marked_percent:%6.2f\n", percent_bytes); in run_bpf_prog()
369 fprintf(fout, "pkts_dropped_percent:%6.2f\n", percent_pkts); in run_bpf_prog()
370 fprintf(fout, "bytes_dropped_percent:%6.2f\n", percent_bytes); in run_bpf_prog()
375 fprintf(fout, "pkts_ecn_ce:%6.2f (%d)\n", percent_pkts, in run_bpf_prog()
379 fprintf(fout, "avg cwnd:%d\n", in run_bpf_prog()
382 fprintf(fout, "avg rtt:%d\n", in run_bpf_prog()
386 fprintf(fout, "avg credit_ms:%.03f\n", in run_bpf_prog()
390 fprintf(fout, "avg credit:%d\n", in run_bpf_prog()
398 fprintf(fout, "%s:%6.2f (%d)\n", returnValNames[k], in run_bpf_prog()
401 fclose(fout); in run_bpf_prog()