Correctly print system-wide PMC counts for short-lived command lines.
Reported by: cracauer MFC after: 3 days
This commit is contained in:
parent
16a0ad03b8
commit
38fc5f3489
@ -881,6 +881,9 @@ main(int argc, char **argv)
|
||||
if (args.pa_flags & (FLAG_HAS_OUTPUT_LOGFILE |
|
||||
FLAG_HAS_PIPE))
|
||||
runstate = pmcstat_close_log(&args);
|
||||
else
|
||||
runstate = PMCSTAT_FINISHED;
|
||||
do_print = 1;
|
||||
break;
|
||||
|
||||
case EVFILT_READ: /* log file data is present */
|
||||
|
Loading…
x
Reference in New Issue
Block a user