git: 9fd96b416c45 - main - Add the missing pmcstat log entries
Andrew Turner
andrew at FreeBSD.org
Tue Jan 5 10:07:55 UTC 2021
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=9fd96b416c4572c83d4958763819bae83928cbce
commit 9fd96b416c4572c83d4958763819bae83928cbce
Author: Andrew Turner <andrew at FreeBSD.org>
AuthorDate: 2021-01-04 18:16:10 +0000
Commit: Andrew Turner <andrew at FreeBSD.org>
CommitDate: 2021-01-05 10:03:05 +0000
Add the missing pmcstat log entries
Sponsored by: Innovate UK
---
usr.sbin/pmcstat/pmcstat_log.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
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);
More information about the dev-commits-src-main
mailing list