Searched defs:ofp (Results 1 - 14 of 14) sorted by relevance

/external/blktrace/btt/
H A Dargs.c248 FILE *ofp = my_fopen(fname, "w"); local
250 if (!ofp) {
256 setbuffer(ofp, buf, SETBUFFER_SIZE);
258 add_file(ofp, fname);
261 return ofp;
H A Dlatency.c23 static inline void latency_out(FILE *ofp, __u64 tstamp, __u64 latency) argument
25 if (ofp)
26 fprintf(ofp, "%lf %lf\n", TO_SEC(tstamp), TO_SEC(latency));
H A Dtrace_complete.c23 static inline void __out(FILE *ofp, __u64 tm, enum iop_type type, argument
28 fprintf(ofp, " ");
29 fprintf(ofp, "%5d.%09lu %c %10llu+%-4u\n",
35 static void display_io_track(FILE *ofp, struct io *iop) argument
37 fprintf(ofp, "%3d,%-3d: ", MAJOR(iop->t.device), MINOR(iop->t.device));
38 __out(ofp, iop->t.time, IOP_Q, iop->t.sector, t_sec(&iop->t), 0);
41 __out(ofp, iop->g_time, IOP_G, iop->t.sector, t_sec(&iop->t),1);
43 __out(ofp, iop->i_time, IOP_I, iop->t.sector, t_sec(&iop->t),1);
45 __out(ofp, iop->m_time, IOP_M, iop->t.sector, t_sec(&iop->t),1);
47 __out(ofp, io
[all...]
H A Dmisc.c36 FILE *ofp; member in struct:file_info
56 fclose(fip->ofp);
122 fip->ofp = fp;
H A Dinlines.h364 static inline void __dump_iop(FILE *ofp, struct io *iop, int extra_nl) argument
366 fprintf(ofp, "%5d.%09lu %3d,%-3d %c %10llu+%-4u\n",
371 if (extra_nl) fprintf(ofp, "\n");
374 static inline void __dump_iop2(FILE *ofp, struct io *a_iop, struct io *l_iop) argument
376 fprintf(ofp, "%5d.%09lu %3d,%-3d %c %10llu+%-4u <- (%3d,%-3d) %10llu\n",
H A Doutput.c54 void output_section_hdr(FILE *ofp, char *hdr) argument
56 fprintf(ofp, "==================== ");
57 fprintf(ofp, "%s", hdr);
58 fprintf(ofp, " ====================\n\n");
61 void output_hdr(FILE *ofp, char *hdr) argument
63 fprintf(ofp, "%15s %13s %13s %13s %11s\n",
65 fprintf(ofp, "--------------- ------------- ------------- ------------- -----------\n");
68 void __output_avg(FILE *ofp, char *hdr, struct avg_info *ap, int do_easy) argument
72 fprintf(ofp, "%-15s %13.9f %13.9f %13.9f %11d\n", hdr,
94 FILE *ofp; member in struct:__oda
109 output_dip_avg(FILE *ofp, char *hdr, ai_dip_t (*func)(struct d_info *)) argument
118 FILE *ofp; member in struct:__q2d
128 FILE *ofp = q2dp->ofp; local
138 output_q2d_histo(FILE *ofp) argument
225 output_dip_merge_ratio(FILE *ofp) argument
250 FILE *ofp; member in struct:ohead_data
289 output_dip_prep_ohead(FILE *ofp) argument
329 output_seek_mode_info(FILE *ofp, struct o_seek_info *sip) argument
391 do_output_dip_seek_info(struct d_info *dip, FILE *ofp, int is_q2q) argument
448 output_dip_seek_info(FILE *ofp) argument
467 output_dip_q2q_seek_info(FILE *ofp) argument
487 FILE *ofp; member in struct:__opa
505 output_pip_avg(FILE *ofp, char *hdr, ai_pip_t (*func)(struct p_info *)) argument
523 FILE *ofp = arg; local
550 __dip_output_plug_all(FILE *ofp, struct plug_info *p) argument
569 FILE *ofp = arg; local
595 __dip_output_uplug_all(FILE *ofp, struct nios_plug_info *p) argument
611 output_plug_info(FILE *ofp) argument
657 __dip_output_actQ_all(FILE *ofp, struct actQ_info *p) argument
665 output_actQ_info(FILE *ofp) argument
678 FILE *ofp; local
712 output_avgs(FILE *ofp) argument
797 __output_ranges(FILE *ofp, struct list_head *head_p, float base) argument
812 output_regions(FILE *ofp, char *header, struct region_info *reg, float base) argument
830 FILE *ofp; member in struct:__od
843 output_devs(FILE *ofp, float base) argument
858 FILE *ofp; member in struct:__op
868 output_procs(FILE *ofp, float base) argument
877 output_ranges(FILE *ofp) argument
[all...]
/external/iproute2/ip/
H A Dipmroute.c80 static void read_mroute_list(FILE *ofp) argument
122 fprintf(ofp, "%-32s Iif: ", obuf);
125 fprintf(ofp, "unresolved ");
127 fprintf(ofp, "%-10s ", viftable[vifi]);
134 fprintf(ofp, "Oifs: ");
148 fprintf(ofp, "%s", viftable[ovifi]);
150 fprintf(ofp, "(ttl %d) ", ovifi);
152 fprintf(ofp, " ");
157 fprintf(ofp, "%s %u packets, %u bytes", _SL_, pkts, b);
159 fprintf(ofp, ",
[all...]
/external/blktrace/
H A Dblkrawverify.c104 static void dump_trace(FILE *ofp, char *prefix, struct blk_io_trace *bit) argument
106 fprintf(ofp, " Dump %s\n", prefix);
107 fprintf(ofp, " %8s: %08x\n", "magic", bit->magic);
108 fprintf(ofp, " %8s: %u\n", "sequence", bit->sequence);
109 fprintf(ofp, " %8s: %llu\n", "time", (unsigned long long) bit->time);
110 fprintf(ofp, " %8s: %llu\n", "sector", (unsigned long long) bit->sector);
111 fprintf(ofp, " %8s: %u\n", "bytes", bit->bytes);
112 fprintf(ofp, " %8s: %s\n", "action", act_to_str(bit->action));
113 fprintf(ofp, " %8s: %u\n", "bytes", bit->bytes);
114 fprintf(ofp, "
144 FILE *ifp, *ofp; local
281 FILE *ofp; local
[all...]
H A Dblkparse.c261 FILE *ofp = NULL; variable
608 fprintf(ofp,
1653 fprintf(ofp, "%s\n", msg);
1655 fprintf(ofp, " Reads Queued: %s, %siB\t", size_cnv(x, ios->qreads, 0), size_cnv(y, ios->qread_kb, 1));
1656 fprintf(ofp, " Writes Queued: %s, %siB\n", size_cnv(x, ios->qwrites, 0), size_cnv(y, ios->qwrite_kb, 1));
1657 fprintf(ofp, " Read Dispatches: %s, %siB\t", size_cnv(x, ios->ireads, 0), size_cnv(y, ios->iread_kb, 1));
1658 fprintf(ofp, " Write Dispatches: %s, %siB\n", size_cnv(x, ios->iwrites, 0), size_cnv(y, ios->iwrite_kb, 1));
1659 fprintf(ofp, " Reads Requeued: %s\t\t", size_cnv(x, ios->rrqueue, 0));
1660 fprintf(ofp, " Writes Requeued: %s\n", size_cnv(x, ios->wrqueue, 0));
1661 fprintf(ofp, " Read
[all...]
H A Dblktrace.c242 * ofn, ofd, ofp, obuf & mmap_info are used for output file (optionally).
246 FILE *ofp; member in struct:io_info
1517 if (setvbuf(iop->ofp, iop->obuf, mode, size) < 0) {
1534 iop->ofp = my_fopen(iop->ofn, "w+");
1535 if (iop->ofp == NULL) {
1544 fclose(iop->ofp);
1548 iop->ofd = fileno(iop->ofp);
1560 if (ftruncate(fileno(iop->ofp), mip->fs_size) < 0) {
1567 if (iop->ofp)
1568 fclose(iop->ofp);
1946 FILE *ofp; local
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/scripting-engines/
H A Dtrace-event-perl.c464 FILE *ofp; local
467 ofp = fopen(fname, "w");
468 if (ofp == NULL) {
473 fprintf(ofp, "# perf script event handlers, "
476 fprintf(ofp, "# Licensed under the terms of the GNU GPL"
479 fprintf(ofp, "# The common_* event handler fields are the most useful "
482 fprintf(ofp, "# all events. They don't necessarily correspond to "
485 fprintf(ofp, "# in the format files. Those fields not available as "
488 fprintf(ofp, "# be retrieved using Perl functions of the form "
491 fprintf(ofp, "# Se
[all...]
H A Dtrace-event-python.c549 FILE *ofp; local
552 ofp = fopen(fname, "w");
553 if (ofp == NULL) {
557 fprintf(ofp, "# perf script event handlers, "
560 fprintf(ofp, "# Licensed under the terms of the GNU GPL"
563 fprintf(ofp, "# The common_* event handler fields are the most useful "
566 fprintf(ofp, "# all events. They don't necessarily correspond to "
569 fprintf(ofp, "# in the format files. Those fields not available as "
572 fprintf(ofp, "# be retrieved using Python functions of the form "
575 fprintf(ofp, "# Se
[all...]
/external/blktrace/btreplay/
H A Dbtrecord.c79 * @ofp: Output file
91 FILE *ofp, *vfp; member in struct:io_stream
238 fseek(stream->ofp, 0, SEEK_SET);
239 if (fwrite(hdr, sizeof(*hdr), 1, stream->ofp) != 1) {
576 if (fwrite(hdrp, sizeof(struct io_bunch_hdr), 1, stream->ofp) != 1) {
603 if (fwrite(p, sizeof(struct io_pkt), npkts, stream->ofp) != npkts) {
692 stream->ofp = fopen(ofile_name, "w");
693 if (!stream->ofp) {
738 fclose(stream->ofp);
/external/strace/
H A Dstrace.c198 usage(FILE *ofp, int exitval) argument
200 fprintf(ofp, "\

Completed in 922 milliseconds