Lines Matching full:os
156 struct outstate *os = ctx; in new_line_std() local
158 os->newline = true; in new_line_std()
162 struct outstate *os) in do_new_line_std() argument
164 fputc('\n', os->fh); in do_new_line_std()
165 fputs(os->prefix, os->fh); in do_new_line_std()
166 aggr_printout(config, os->evsel, os->id, os->nr); in do_new_line_std()
168 fprintf(os->fh, " "); in do_new_line_std()
169 fprintf(os->fh, " "); in do_new_line_std()
176 struct outstate *os = ctx; in print_metric_std() local
177 FILE *out = os->fh; in print_metric_std()
179 bool newline = os->newline; in print_metric_std()
181 os->newline = false; in print_metric_std()
189 do_new_line_std(config, os); in print_metric_std()
201 struct outstate *os = ctx; in new_line_csv() local
204 fputc('\n', os->fh); in new_line_csv()
205 if (os->prefix) in new_line_csv()
206 fprintf(os->fh, "%s", os->prefix); in new_line_csv()
207 aggr_printout(config, os->evsel, os->id, os->nr); in new_line_csv()
208 for (i = 0; i < os->nfields; i++) in new_line_csv()
209 fputs(config->csv_sep, os->fh); in new_line_csv()
217 struct outstate *os = ctx; in print_metric_csv() local
218 FILE *out = os->fh; in print_metric_csv()
260 struct outstate *os = ctx; in print_metric_only() local
261 FILE *out = os->fh; in print_metric_only()
267 unit = fixunit(buf, os->evsel, unit); in print_metric_only()
283 struct outstate *os = ctx; in print_metric_only_csv() local
284 FILE *out = os->fh; in print_metric_only_csv()
290 unit = fixunit(tbuf, os->evsel, unit); in print_metric_only_csv()
309 struct outstate *os = ctx; in print_metric_header() local
314 unit = fixunit(tbuf, os->evsel, unit); in print_metric_header()
316 fprintf(os->fh, "%s%s", unit, config->csv_sep); in print_metric_header()
318 fprintf(os->fh, "%*s ", config->metric_only_len, unit); in print_metric_header()
402 struct outstate os = { in printout() local
433 os.nfields = 3; in printout()
434 os.nfields += aggr_fields[config->aggr_mode]; in printout()
436 os.nfields++; in printout()
440 pm(config, &os, NULL, "", "", 0); in printout()
466 pm(config, &os, NULL, NULL, "", 0); in printout()
470 pm(config, &os, NULL, NULL, "", 0); in printout()
479 out.ctx = &os; in printout()
924 struct outstate os = { in print_metric_headers() local
942 os.evsel = counter; in print_metric_headers()
943 out.ctx = &os; in print_metric_headers()