Lines Matching refs:lock_output
70 static FILE *lock_output; variable
233 fprintf(lock_output, "%llu", nsec); in lock_stat_key_print_time()
241 fprintf(lock_output, "%*.2f %s", len - 3, nsec / table[i].base, table[i].unit); in lock_stat_key_print_time()
245 fprintf(lock_output, "%*llu %s", len - 3, nsec, "ns"); in lock_stat_key_print_time()
252 fprintf(lock_output, "%*llu", key->len, (unsigned long long)ls->member);\
1356 fprintf(lock_output, "\n=== output for debug ===\n\n"); in print_bad_events()
1357 fprintf(lock_output, "bad: %d, total: %d\n", bad, total); in print_bad_events()
1358 fprintf(lock_output, "bad rate: %.2f %%\n", (double)bad / (double)total * 100); in print_bad_events()
1359 fprintf(lock_output, "histogram of events caused bad sequence\n"); in print_bad_events()
1361 fprintf(lock_output, " %10s: %d\n", name[i], bad_hist[i]); in print_bad_events()
1373 fprintf(lock_output, "%20s ", "Name"); in print_result()
1375 fprintf(lock_output, "%*s ", key->len, key->header); in print_result()
1376 fprintf(lock_output, "\n\n"); in print_result()
1401 fprintf(lock_output, "%20s ", name); in print_result()
1409 fprintf(lock_output, "%20s ", cut_name); in print_result()
1414 fprintf(lock_output, " "); in print_result()
1416 fprintf(lock_output, "\n"); in print_result()
1433 fprintf(lock_output, "%10s: comm\n", "Thread ID"); in dump_threads()
1439 fprintf(lock_output, "%10d: %s\n", st->tid, thread__comm_str(t)); in dump_threads()
1465 fprintf(lock_output, "Address of instance: name of class\n"); in dump_map()
1473 fprintf(lock_output, " %#llx: %s\n", (unsigned long long)st->addr, st->name); in dump_map()
1658 fprintf(lock_output, "%*s ", key->len, key->header); in print_header_stdio()
1662 fprintf(lock_output, " %10s %s\n\n", "pid", in print_header_stdio()
1666 fprintf(lock_output, " %10s %s\n\n", "type", "caller"); in print_header_stdio()
1669 fprintf(lock_output, " %16s %s\n\n", "address", "symbol"); in print_header_stdio()
1680 fprintf(lock_output, "# output: "); in print_header_csv()
1682 fprintf(lock_output, "%s%s ", key->header, sep); in print_header_csv()
1686 fprintf(lock_output, "%s%s %s\n", "pid", sep, in print_header_csv()
1690 fprintf(lock_output, "%s%s %s", "type", sep, "caller"); in print_header_csv()
1692 fprintf(lock_output, "%s %s", sep, "stacktrace"); in print_header_csv()
1693 fprintf(lock_output, "\n"); in print_header_csv()
1696 fprintf(lock_output, "%s%s %s%s %s\n", "address", sep, "symbol", sep, "type"); in print_header_csv()
1721 fprintf(lock_output, " "); in print_lock_stat_stdio()
1726 fprintf(lock_output, " %10s %s\n", get_type_str(st->flags), st->name); in print_lock_stat_stdio()
1731 fprintf(lock_output, " %10d %s\n", in print_lock_stat_stdio()
1735 fprintf(lock_output, " %016llx %s (%s)\n", (unsigned long long)st->addr, in print_lock_stat_stdio()
1755 fprintf(lock_output, "\t\t\t%#lx %s\n", (unsigned long)ip, buf); in print_lock_stat_stdio()
1769 fprintf(lock_output, "%s ", sep); in print_lock_stat_csv()
1774 fprintf(lock_output, "%s%s %s", get_type_str(st->flags), sep, st->name); in print_lock_stat_csv()
1776 fprintf(lock_output, "\n"); in print_lock_stat_csv()
1781 fprintf(lock_output, "%d%s %s\n", pid, sep, in print_lock_stat_csv()
1785 fprintf(lock_output, "%llx%s %s%s %s\n", (unsigned long long)st->addr, sep, in print_lock_stat_csv()
1805 fprintf(lock_output, "%s %#lx %s", i ? ":" : sep, (unsigned long) ip, buf); in print_lock_stat_csv()
1807 fprintf(lock_output, "\n"); in print_lock_stat_csv()
1831 fprintf(lock_output, "\n=== output for debug ===\n\n"); in print_footer_stdio()
1832 fprintf(lock_output, "bad: %d, total: %d\n", broken, total); in print_footer_stdio()
1833 fprintf(lock_output, "bad rate: %.2f %%\n", 100.0 * broken / total); in print_footer_stdio()
1835 fprintf(lock_output, "histogram of failure reasons\n"); in print_footer_stdio()
1836 fprintf(lock_output, " %10s: %d\n", "task", fails->task); in print_footer_stdio()
1837 fprintf(lock_output, " %10s: %d\n", "stack", fails->stack); in print_footer_stdio()
1838 fprintf(lock_output, " %10s: %d\n", "time", fails->time); in print_footer_stdio()
1839 fprintf(lock_output, " %10s: %d\n", "data", fails->data); in print_footer_stdio()
1853 fprintf(lock_output, "# debug: total=%d%s bad=%d", total, sep, bad); in print_footer_csv()
1856 fprintf(lock_output, "%s bad_%s=%d", sep, "task", fails->task); in print_footer_csv()
1857 fprintf(lock_output, "%s bad_%s=%d", sep, "stack", fails->stack); in print_footer_csv()
1858 fprintf(lock_output, "%s bad_%s=%d", sep, "time", fails->time); in print_footer_csv()
1859 fprintf(lock_output, "%s bad_%s=%d", sep, "data", fails->data); in print_footer_csv()
1865 fprintf(lock_output, "%s bad_%s=%d", sep, name[i], bad_hist[i]); in print_footer_csv()
1867 fprintf(lock_output, "\n"); in print_footer_csv()
2458 lock_output = fopen(str, "w"); in parse_output()
2459 if (lock_output == NULL) { in parse_output()
2572 lock_output = stderr; in cmd_lock()