summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstat/pmcstat_log.c
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2005-07-09 17:08:46 +0000
committerjkoshy <jkoshy@FreeBSD.org>2005-07-09 17:08:46 +0000
commit93ae007c34b5a61e3d494d72d4a7e8378390d83d (patch)
tree89674c04bd81aae33f8006f2511fdac652e98d48 /usr.sbin/pmcstat/pmcstat_log.c
parenta62ddd3522853d6c4c5cc44450d5f53420110dad (diff)
downloadFreeBSD-src-93ae007c34b5a61e3d494d72d4a7e8378390d83d.zip
FreeBSD-src-93ae007c34b5a61e3d494d72d4a7e8378390d83d.tar.gz
Fix a bug that affected on-the-fly gmon.out file generation.
Approved by: re (scottl)
Diffstat (limited to 'usr.sbin/pmcstat/pmcstat_log.c')
-rw-r--r--usr.sbin/pmcstat/pmcstat_log.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/pmcstat/pmcstat_log.c b/usr.sbin/pmcstat/pmcstat_log.c
index 111064d..500959d 100644
--- a/usr.sbin/pmcstat/pmcstat_log.c
+++ b/usr.sbin/pmcstat/pmcstat_log.c
@@ -1159,7 +1159,7 @@ pmcstat_print_log(struct pmcstat_args *a)
* Process a log file in offline analysis mode.
*/
-void
+int
pmcstat_process_log(struct pmcstat_args *a)
{
@@ -1168,12 +1168,10 @@ pmcstat_process_log(struct pmcstat_args *a)
* log to the current output file.
*/
if (a->pa_flags & FLAG_DO_PRINT)
- pmcstat_print_log(a);
+ return pmcstat_print_log(a);
else
/* convert the log to gprof compatible profiles */
- pmcstat_convert_log(a);
-
- return;
+ return pmcstat_convert_log(a);
}
void
OpenPOWER on IntegriCloud