Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Oct 2024 07:11:20 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 4a337ee7ef4c - stable/14 - uifree(9): report non-zero values for all shared resources
Message-ID:  <202410050711.4957BKfa001307@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=4a337ee7ef4cdf1492dd5d79e80434d8e68e233a

commit 4a337ee7ef4cdf1492dd5d79e80434d8e68e233a
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-20 18:48:58 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-05 07:08:55 +0000

    uifree(9): report non-zero values for all shared resources
    
    (cherry picked from commit af96ccc6a5083ae9ed62dbb1d72674ca75948707)
---
 sys/kern/kern_resource.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index f3755d625572..6b9930962859 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -1513,6 +1513,18 @@ uifree(struct uidinfo *uip)
 	if (uip->ui_vmsize != 0)
 		printf("freeing uidinfo: uid = %d, swapuse = %lld\n",
 		    uip->ui_uid, (unsigned long long)uip->ui_vmsize);
+	if (uip->ui_ptscnt != 0)
+		printf("freeing uidinfo: uid = %d, ptscnt = %ld\n",
+		    uip->ui_uid, uip->ui_ptscnt);
+	if (uip->ui_kqcnt != 0)
+		printf("freeing uidinfo: uid = %d, kqcnt = %ld\n",
+		    uip->ui_uid, uip->ui_kqcnt);
+	if (uip->ui_umtxcnt != 0)
+		printf("freeing uidinfo: uid = %d, umtxcnt = %ld\n",
+		    uip->ui_uid, uip->ui_umtxcnt);
+	if (uip->ui_pipecnt != 0)
+		printf("freeing uidinfo: uid = %d, pipecnt = %ld\n",
+		    uip->ui_uid, uip->ui_pipecnt);
 	free(uip, M_UIDINFO);
 }
 



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