Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 2021 10:07:54 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9fd96b416c45 - main - Add the missing pmcstat log entries
Message-ID:  <202101051007.105A7sR5011916@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=9fd96b416c4572c83d4958763819bae83928cbce

commit 9fd96b416c4572c83d4958763819bae83928cbce
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2021-01-04 18:16:10 +0000
Commit:     Andrew Turner <andrew@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101051007.105A7sR5011916>