Lines Matching full:os
160 struct outstate *os = ctx; in new_line_std() local
162 os->newline = true; in new_line_std()
166 struct outstate *os) in do_new_line_std() argument
168 fputc('\n', os->fh); in do_new_line_std()
169 fputs(os->prefix, os->fh); in do_new_line_std()
170 aggr_printout(config, os->evsel, os->id, os->nr); in do_new_line_std()
172 fprintf(os->fh, " "); in do_new_line_std()
173 fprintf(os->fh, " "); in do_new_line_std()
180 struct outstate *os = ctx; in print_metric_std() local
181 FILE *out = os->fh; in print_metric_std()
183 bool newline = os->newline; in print_metric_std()
185 os->newline = false; in print_metric_std()
193 do_new_line_std(config, os); in print_metric_std()
205 struct outstate *os = ctx; in new_line_csv() local
208 fputc('\n', os->fh); in new_line_csv()
209 if (os->prefix) in new_line_csv()
210 fprintf(os->fh, "%s%s", os->prefix, config->csv_sep); in new_line_csv()
211 aggr_printout(config, os->evsel, os->id, os->nr); in new_line_csv()
212 for (i = 0; i < os->nfields; i++) in new_line_csv()
213 fputs(config->csv_sep, os->fh); in new_line_csv()
221 struct outstate *os = ctx; in print_metric_csv() local
222 FILE *out = os->fh; in print_metric_csv()
264 struct outstate *os = ctx; in print_metric_only() local
265 FILE *out = os->fh; in print_metric_only()
271 unit = fixunit(buf, os->evsel, unit); in print_metric_only()
287 struct outstate *os = ctx; in print_metric_only_csv() local
288 FILE *out = os->fh; in print_metric_only_csv()
294 unit = fixunit(tbuf, os->evsel, unit); in print_metric_only_csv()
313 struct outstate *os = ctx; in print_metric_header() local
318 os->evsel->priv != os->evsel->evlist->selected->priv) in print_metric_header()
323 unit = fixunit(tbuf, os->evsel, unit); in print_metric_header()
325 fprintf(os->fh, "%s%s", unit, config->csv_sep); in print_metric_header()
327 fprintf(os->fh, "%*s ", config->metric_only_len, unit); in print_metric_header()
414 struct outstate os = { in printout() local
445 os.nfields = 3; in printout()
446 os.nfields += aggr_fields[config->aggr_mode]; in printout()
448 os.nfields++; in printout()
458 pm(config, &os, NULL, "", "", 0); in printout()
486 pm(config, &os, NULL, NULL, "", 0); in printout()
490 pm(config, &os, NULL, NULL, "", 0); in printout()
499 out.ctx = &os; in printout()
981 struct outstate os = { in print_metric_headers() local
1002 os.evsel = counter; in print_metric_headers()
1003 out.ctx = &os; in print_metric_headers()