From nobody Mon Oct 07 08:25:05 2024 X-Original-To: dev-commits-src-main@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 4XMXJf2qBJz5XW7r; Mon, 07 Oct 2024 08:25:06 +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 4XMXJf0kcTz4stZ; Mon, 7 Oct 2024 08:25:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728289506; 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=X5jyV78e+8SIDA+10babrDjolfimFOj31aKG7trydyg=; b=dKFWaNoNZ8+L3ezKwf/UtuGuWOqfl5oLJIjl3aQbFce3S0HElZ2DsSEVxXSBWGWP7sOVyQ SutPRBgRSiTRN+KRDQHw6C3CY92tSdW90ZNKH8JVm6y6o32+PD5V4dw0p6Jvlhxy1xKVwA y5P9pS8kgIdOLviC/8aQvV4ph1lagdoOtHSBnors/rfAL1LAdR41XhL8fE5BnIrLL5jZzz wIJRyF386MLSQPx/2fYKTRbiBZ/VZpU5S/J5sE49tLbGe1cHgFbtrug89KBd5WEXyPRvWk jguK9/8pGBnmPM8uTnK1YQ+6q6+RgvsYB6PTZGqkuYZa88kqXMfcLCGBGq6T1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728289506; 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=X5jyV78e+8SIDA+10babrDjolfimFOj31aKG7trydyg=; b=AkHw1wZR8IWhmWS0eCFAwHNyXFQowl736gAVR/jKI2hJRa8+rnFTLr4D59kssXwwzwiOkV diiYV367cppua/iIRxKfGLydCfum0ftcWmeUich08bsm+c9soXTg3LJ5+4r8OqhsSdfzaR Vjp31qt4brjkkru0TEJbCL8/lQWOyEUpYVTEV3iull9qzNEBJ8Qg0SFZzIGuD8pEZyITRG DEmMN6fvQiMNq9DJ9HdtVHDFw4vxyHSec6lLnRieGVNuDRAorSwFIoSjFK9dltmSdTHz/5 cZDjBU1rCXXql9SPWdBaLtrp+5iWuc6RtCNq5e84I+ow1epV86/FbQkVeKSX/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728289506; a=rsa-sha256; cv=none; b=DisixowcLvcQQMMhLq8EIUAUidgT0tF1Vz/hCFjjmOdJ1ZbOPUN3lWM2JJ4zYCSMsLpTRH KRL+sryWUztgRhUF5Ktkhc5SyzGF4KAklxz+iuqre8bNU/dutAtq2P+QGb9vc5Okep2mb6 u73n4/MXQlT2H1Dfv0BbMDwKFdKAyuroNKVHE5f37u2PgVreU2Xqbu+G+cQYzJxIWmtNrb Z02OgxJVr5ynEPKj29Tz+4dnaDIOABAo8SkdPSPszDVRcVIRPmLgH6Y7a5DAkl9swJ2q// 4Exp02UjE7WV4m9qVDoahvXV1hjcbEGj6mJCxfaehj/zUVJfBT3FuZ7DSdfzjg== 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 4XMXJd75PfzfZR; Mon, 7 Oct 2024 08:25:05 +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 4978P5R3012149; Mon, 7 Oct 2024 08:25:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4978P5cC012146; Mon, 7 Oct 2024 08:25:05 GMT (envelope-from git) Date: Mon, 7 Oct 2024 08:25:05 GMT Message-Id: <202410070825.4978P5cC012146@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: 2d84f79c4e45 - main - vmstat -o: report objects backing SysV shm segments List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 2d84f79c4e451cac179c7b2111a7f6cba60960b3 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=2d84f79c4e451cac179c7b2111a7f6cba60960b3 commit 2d84f79c4e451cac179c7b2111a7f6cba60960b3 Author: Konstantin Belousov AuthorDate: 2024-10-05 09:43:25 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-07 08:22:13 +0000 vmstat -o: report objects backing SysV shm segments Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D46959 --- usr.bin/vmstat/vmstat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 1d0eb4c9283f..8c7790403786 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -1539,6 +1539,9 @@ display_object(struct kinfo_vmobject *kvo) break; } xo_emit("{:type/%-2s} ", str); + if ((kvo->kvo_flags & KVMO_FLAG_SYSVSHM) != 0) + xo_emit("{:sysvshm/sysvshm(%ju:%u)} ", + (uintmax_t)kvo->kvo_vn_fileid, kvo->kvo_vn_fsid_freebsd11); xo_emit("{:path/%-s}\n", kvo->kvo_path); xo_close_instance("object"); }