From owner-svn-src-all@freebsd.org Fri Jan 25 21:24:11 2019 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F012B14C3852; Fri, 25 Jan 2019 21:24:10 +0000 (UTC) (envelope-from mckusick@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8DF21736D2; Fri, 25 Jan 2019 21:24:10 +0000 (UTC) (envelope-from mckusick@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7BD96E0C9; Fri, 25 Jan 2019 21:24:10 +0000 (UTC) (envelope-from mckusick@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0PLOAWn034859; Fri, 25 Jan 2019 21:24:10 GMT (envelope-from mckusick@FreeBSD.org) Received: (from mckusick@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0PLOAOE034857; Fri, 25 Jan 2019 21:24:10 GMT (envelope-from mckusick@FreeBSD.org) Message-Id: <201901252124.x0PLOAOE034857@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mckusick set sender to mckusick@FreeBSD.org using -f From: Kirk McKusick Date: Fri, 25 Jan 2019 21:24:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r343457 - in head/sys: kern sys X-SVN-Group: head X-SVN-Commit-Author: mckusick X-SVN-Commit-Paths: in head/sys: kern sys X-SVN-Commit-Revision: 343457 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 8DF21736D2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.94 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.94)[-0.939,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2019 21:24:11 -0000 Author: mckusick Date: Fri Jan 25 21:24:09 2019 New Revision: 343457 URL: https://svnweb.freebsd.org/changeset/base/343457 Log: Add printing of b_ioflags to DDB `show buffer' command. Sponsored by: Netflix Modified: head/sys/kern/vfs_bio.c head/sys/sys/bio.h Modified: head/sys/kern/vfs_bio.c ============================================================================== --- head/sys/kern/vfs_bio.c Fri Jan 25 20:54:18 2019 (r343456) +++ head/sys/kern/vfs_bio.c Fri Jan 25 21:24:09 2019 (r343457) @@ -5329,9 +5329,12 @@ DB_SHOW_COMMAND(buffer, db_show_buffer) } db_printf("buf at %p\n", bp); - db_printf("b_flags = 0x%b, b_xflags=0x%b, b_vflags=0x%b\n", - (u_int)bp->b_flags, PRINT_BUF_FLAGS, (u_int)bp->b_xflags, - PRINT_BUF_XFLAGS, (u_int)bp->b_vflags, PRINT_BUF_VFLAGS); + db_printf("b_flags = 0x%b, b_xflags=0x%b\n", + (u_int)bp->b_flags, PRINT_BUF_FLAGS, + (u_int)bp->b_xflags, PRINT_BUF_XFLAGS); + db_printf("b_vflags=0x%b b_ioflags0x%b\n", + (u_int)bp->b_vflags, PRINT_BUF_VFLAGS, + (u_int)bp->b_ioflags, PRINT_BIO_FLAGS); db_printf( "b_error = %d, b_bufsize = %ld, b_bcount = %ld, b_resid = %ld\n" "b_bufobj = (%p), b_data = %p, b_blkno = %jd, b_lblkno = %jd, " Modified: head/sys/sys/bio.h ============================================================================== --- head/sys/sys/bio.h Fri Jan 25 20:54:18 2019 (r343456) +++ head/sys/sys/bio.h Fri Jan 25 21:24:09 2019 (r343457) @@ -67,6 +67,9 @@ #define BIO_TRANSIENT_MAPPING 0x20 #define BIO_VLIST 0x40 +#define PRINT_BIO_FLAGS "\20\7vlist\6transient_mapping\5unmapped" \ + "\4ordered\3onqueue\2done\1error" + #ifdef _KERNEL struct disk; struct bio;