aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pmcstat/pmcstat_log.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr.sbin/pmcstat/pmcstat_log.c b/usr.sbin/pmcstat/pmcstat_log.c
index 4f58ffb2eb65..71f3b6b9b14e 100644
--- a/usr.sbin/pmcstat/pmcstat_log.c
+++ b/usr.sbin/pmcstat/pmcstat_log.c
@@ -452,6 +452,12 @@ pmcstat_print_log(void)
ev.pl_u.pl_c.pl_pid,
ev.pl_u.pl_c.pl_value);
break;
+ case PMCLOG_TYPE_PROC_CREATE:
+ PMCSTAT_PRINT_ENTRY("create","%d %x \"%s\"",
+ ev.pl_u.pl_pc.pl_pid,
+ ev.pl_u.pl_pc.pl_flags,
+ ev.pl_u.pl_pc.pl_pcomm);
+ break;
case PMCLOG_TYPE_PROCEXEC:
PMCSTAT_PRINT_ENTRY("exec","0x%x %d %p \"%s\"",
ev.pl_u.pl_x.pl_pmcid,
@@ -478,6 +484,17 @@ pmcstat_print_log(void)
PMCSTAT_PRINT_ENTRY("exit","%d",
ev.pl_u.pl_se.pl_pid);
break;
+ case PMCLOG_TYPE_THR_CREATE:
+ PMCSTAT_PRINT_ENTRY("thr-create","%d %d %x \"%s\"",
+ ev.pl_u.pl_tc.pl_tid,
+ ev.pl_u.pl_tc.pl_pid,
+ ev.pl_u.pl_tc.pl_flags,
+ ev.pl_u.pl_tc.pl_tdname);
+ break;
+ case PMCLOG_TYPE_THR_EXIT:
+ PMCSTAT_PRINT_ENTRY("thr-exit","%d",
+ ev.pl_u.pl_tc.pl_tid);
+ break;
default:
fprintf(args.pa_printfile, "unknown event (type %d).\n",
ev.pl_type);