Lines Matching full:os
226 struct outstate *os = ctx; in new_line_std() local
228 os->newline = true; in new_line_std()
232 struct outstate *os) in do_new_line_std() argument
234 fputc('\n', os->fh); in do_new_line_std()
235 fputs(os->prefix, os->fh); in do_new_line_std()
236 aggr_printout(config, os->evsel, os->id, os->nr); in do_new_line_std()
238 fprintf(os->fh, " "); in do_new_line_std()
239 fprintf(os->fh, " "); in do_new_line_std()
246 struct outstate *os = ctx; in print_metric_std() local
247 FILE *out = os->fh; in print_metric_std()
249 bool newline = os->newline; in print_metric_std()
251 os->newline = false; in print_metric_std()
259 do_new_line_std(config, os); in print_metric_std()
271 struct outstate *os = ctx; in new_line_csv() local
274 fputc('\n', os->fh); in new_line_csv()
275 if (os->prefix) in new_line_csv()
276 fprintf(os->fh, "%s", os->prefix); in new_line_csv()
277 aggr_printout(config, os->evsel, os->id, os->nr); in new_line_csv()
278 for (i = 0; i < os->nfields; i++) in new_line_csv()
279 fputs(config->csv_sep, os->fh); in new_line_csv()
287 struct outstate *os = ctx; in print_metric_csv() local
288 FILE *out = os->fh; in print_metric_csv()
309 struct outstate *os = ctx; in print_metric_json() local
310 FILE *out = os->fh; in print_metric_json()
320 struct outstate *os = ctx; in new_line_json() local
322 fputc('\n', os->fh); in new_line_json()
323 if (os->prefix) in new_line_json()
324 fprintf(os->fh, "%s", os->prefix); in new_line_json()
325 aggr_printout(config, os->evsel, os->id, os->nr); in new_line_json()
355 struct outstate *os = ctx; in print_metric_only() local
356 FILE *out = os->fh; in print_metric_only()
362 unit = fixunit(buf, os->evsel, unit); in print_metric_only()
378 struct outstate *os = ctx; in print_metric_only_csv() local
379 FILE *out = os->fh; in print_metric_only_csv()
385 unit = fixunit(tbuf, os->evsel, unit); in print_metric_only_csv()
399 struct outstate *os = ctx; in print_metric_only_json() local
400 FILE *out = os->fh; in print_metric_only_json()
406 unit = fixunit(tbuf, os->evsel, unit); in print_metric_only_json()
425 struct outstate *os = ctx; in print_metric_header() local
430 os->evsel->priv != os->evsel->evlist->selected->priv) in print_metric_header()
435 unit = fixunit(tbuf, os->evsel, unit); in print_metric_header()
438 fprintf(os->fh, "\"unit\" : \"%s\"", unit); in print_metric_header()
440 fprintf(os->fh, "%s%s", unit, config->csv_sep); in print_metric_header()
442 fprintf(os->fh, "%*s ", config->metric_only_len, unit); in print_metric_header()
543 struct outstate os = { in printout() local
567 os.nfields = 3 + aggr_fields[config->aggr_mode] + (counter->cgrp ? 1 : 0); in printout()
583 pm(config, &os, NULL, "", "", 0); in printout()
625 pm(config, &os, NULL, NULL, "", 0); in printout()
629 pm(config, &os, NULL, NULL, "", 0); in printout()
631 pm(config, &os, NULL, NULL, "", 0); in printout()
640 out.ctx = &os; in printout()
1147 struct outstate os = { in print_metric_headers() local
1172 os.evsel = counter; in print_metric_headers()
1173 out.ctx = &os; in print_metric_headers()