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