From nobody Fri Sep 20 21:09:28 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X9Q4S5g2cz5X4wD; Fri, 20 Sep 2024 21:09:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X9Q4S3S8Zz4llp; Fri, 20 Sep 2024 21:09:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726866568; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hEBDjNVthahqVlw9Qro3vw9ruo1I6X+awvBGfe+o41s=; b=sJHNBoV2H9SABTjfpm6CW81o+ehBwmij2aF5pQaDxcXq0pwnDQge3q0794LeC7tns3nv25 W8909BdATSVmglRnukml6s7n7pPqIv6AfJfryw8XcKJek0j5T7VURRvF6yNa43MfW8Qq17 7ehY6WtpWalchZrFH+pzB7sbJJcG5ngCCe2sWElFsNhBBHSgDDm+XlVBkoHg1KESReTQxs aS4++gZ0IX22cxYfBWMWZri0OQvS0V8Pa7FxsyLR34WnMBOJgNvjualdG5grtGNle5N1Dq duiOFjTXpDH8BsB0jOoBg8CspMiAGiGkNtlcmkcpE4IQJBoXrfpWztynIXRJQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726866568; a=rsa-sha256; cv=none; b=Kp3Ut4YYte9YcFb17yjh6EltOFCT2hdMUedxvwxlS6q0QC14KW77kbgPl74M9x1wiU1Qjm v1d5kluYrLdfcU1qytYw/RyyxPPoc2FhSE7PSRRlrskZVHvZQDq/F6goueZIPBKyVHC4T1 Te4j5S1u5fch30f9Ct2dHj42wJwB14yUx+qjrFGu9B1nv3oCQiY9UDQQsBD7cvkoIgAFOn ZT4vTFM5CWkSkp22HGqnqjaSWo42FR9O6C9tsXza86pATsDv55qIFwahlr3VKKyKet0IuH qH1lcB/6kdGo70SzaKR/CW4SYTEhGZ5KH+P4Z+7kQVEvOlWfUcnxgtniwQTIeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726866568; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hEBDjNVthahqVlw9Qro3vw9ruo1I6X+awvBGfe+o41s=; b=mX4BnZ0jsTxS9ZofLdsJH+I0o+RBNyX5va4fivhH9kouDgRYNCK9Q4RvGuDYxOlU1PHxNs SYIcCbH2W3PVDRR/FZF4w9yTCQr1vKxhRNKv/3pTudYHUv5U3V2Hxza//yLuHqXnJhR7kY 3vu2+kM5J5nR5V0O25HpIIfqnqwy+0Nsmz25KADTM21WM5aUT5nMSwoI5Xb422CBFJG9MX pgA1nrOWMdvwCwqIkvn2ToOhGXOhM0+W9jgwk3YQ2Xi6++A2nw/PTTE9C08J3KfRHHS7Ji ZfbDxsY2W4qGUe7rIrrrIURE9Qw9T3LURetybX498tXzWFY8FjHyA+fS+/HXJg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X9Q4S33Z8z15Bn; Fri, 20 Sep 2024 21:09:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48KL9StW078731; Fri, 20 Sep 2024 21:09:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48KL9SjD078728; Fri, 20 Sep 2024 21:09:28 GMT (envelope-from git) Date: Fri, 20 Sep 2024 21:09:28 GMT Message-Id: <202409202109.48KL9SjD078728@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: af96ccc6a508 - main - uifree(9): report non-zero values for all shared resources List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: af96ccc6a5083ae9ed62dbb1d72674ca75948707 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=af96ccc6a5083ae9ed62dbb1d72674ca75948707 commit af96ccc6a5083ae9ed62dbb1d72674ca75948707 Author: Konstantin Belousov AuthorDate: 2024-09-20 18:48:58 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-20 21:08:51 +0000 uifree(9): report non-zero values for all shared resources Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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 d1a1d3ea3811..58723289af21 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -1510,6 +1510,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); }