perf: Allow printing to arbritrary fds

This commit is contained in:
Lorenz Meier
2014-05-21 14:19:39 +02:00
parent 9024d76e7c
commit aa2b125a67
4 changed files with 26 additions and 10 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ int perf_main(int argc, char *argv[])
return -1;
}
perf_print_all();
perf_print_all(0 /* stdout */);
fflush(stdout);
return 0;
}
+1 -1
View File
@@ -235,7 +235,7 @@ test_perf(int argc, char *argv[])
printf("perf: expect count of 1\n");
perf_print_counter(ec);
printf("perf: expect at least two counters\n");
perf_print_all();
perf_print_all(0);
perf_free(cc);
perf_free(ec);