From patchwork Mon Apr 17 16:56:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9683961 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 11C37600F6 for ; Mon, 17 Apr 2017 16:57:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 022C41FE84 for ; Mon, 17 Apr 2017 16:57:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB22E1FFD7; Mon, 17 Apr 2017 16:57:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 692EB1FE84 for ; Mon, 17 Apr 2017 16:57:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755910AbdDQQ5G (ORCPT ); Mon, 17 Apr 2017 12:57:06 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:44558 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755770AbdDQQ5E (ORCPT ); Mon, 17 Apr 2017 12:57:04 -0400 X-IronPort-AV: E=Sophos;i="5.37,215,1488816000"; d="scan'208";a="11740388" Received: from mail-cys01nam02lp0049.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.49]) by ob1.hgst.iphmx.com with ESMTP; 18 Apr 2017 00:57:03 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VTMR4DHZJhx3yv/zRaHzSNKzmF8J/s7NxGYUzOvCB7Q=; b=Wy4rjTUWbGWp7A/SjAft6PJ2H8gazzUmvMWAwFCFDDQr28R9LxmL96SFrT5OmeCxGPrXGhyoHuw9MV4EkVrHrSGE8R+36jHxuZ2wpmCVrehODPjMSoTo49NDP+ojio4xzXpyuLyGkgUhSwKcBVlaZOV1jnKZmVYB77vHz0ETYhY= Received: from CY1PR04CA0008.namprd04.prod.outlook.com (10.166.187.18) by BY2PR04MB845.namprd04.prod.outlook.com (10.242.38.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Mon, 17 Apr 2017 16:57:00 +0000 Received: from CO1NAM04FT038.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::209) by CY1PR04CA0008.outlook.office365.com (2a01:111:e400:c5a5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10 via Frontend Transport; Mon, 17 Apr 2017 16:56:59 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by CO1NAM04FT038.mail.protection.outlook.com (10.152.91.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1019.14 via Frontend Transport; Mon, 17 Apr 2017 16:56:58 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id A2.4E.19026.9D3F4F85; Mon, 17 Apr 2017 09:56:58 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Mon, 17 Apr 2017 09:56:54 -0700 X-AuditID: 0ac94371-41ba798000004a52-ee-58f4f3d92294 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 22.D9.11415.6D3F4F85; Mon, 17 Apr 2017 09:56:54 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Hannes Reinecke Subject: [PATCH v2 6/8] blk-mq: Show operation, cmd_flags and rq_flags names Date: Mon, 17 Apr 2017 09:56:49 -0700 Message-ID: <20170417165651.12693-7-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170417165651.12693-1-bart.vanassche@sandisk.com> References: <20170417165651.12693-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsXCddJ5ke6tz18iDHaeZbNYfbefzWLBm71s FntvaTswe1w+W+qxfstVFo/Pm+QCmKO4bFJSczLLUov07RK4Mr6vdiw4JlUx9WYHewPjJLEu Rk4OCQETielTXzJ1MXJxCAksZZK4PHcNO4SzjVHix5R1QBkOsKrnTwsg4hsZJaa8nsMG0s0m YCTx7f1MFhBbREBBouf3SrA4s0CRxLXjbcwgtrCAj8STS81gNSwCqhK/9s0Ei/MK2Ev8PfKV FeIKeYmzW3aCxTkFHCQazreDxYWAatYtfc4GslhC4BOLxNdPh1ghmgUlTs58wgKxTELi4IsX zBAN6hInl8xnmsAoNAtJ2SwkZQsYmVYxiuVm5hTnpqcWGJroFSfmpWQWZ+sl5+duYoQEcOEO xte3vQ8xCnAwKvHwMhz8EiHEmlhWXJl7iFGCg1lJhPfoE6AQb0piZVVqUX58UWlOavEhRmkO FiVx3izZqRFCAumJJanZqakFqUUwWSYOTqkGRgtGJ2HNVd/TKzi0xJ/YeEzlFk1u6zNX81kY d9J19jmlxLk/XSI0823WTu4xqPPV2Hdxfzn3hb1xftsU1r1M26ppKljUL9h6w/L3/w1hmjO/ f1XyuGK6xW6r78HrijHx1/+29L2af/Ne4sNZt7ujtugkp4fHeTWvnmbVcXpB8MWePrHDi8Nl lFiKMxINtZiLihMBsPZ74VwCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBJMWRmVeSWpSXmKPExsXCtZGTTffa5y8RBrseqFisvtvPZnHwZxuj xYI3e9ks9t7SdmDxuHy21GPamvNMHuu3XGXx+LxJLoAlissmJTUnsyy1SN8ugSvj+2rHgmNS FVNvdrA3ME4S62Lk4JAQMJF4/rSgi5GLQ0hgPaPE7c+z2boYOTnYBIwkvr2fyQJiiwgoSPT8 XgkWZxYokvi2azVYXFjAR+LJpWYwm0VAVeLXvpnMIDavgL3Ev9cPWUFsCQF5ibNbdoLFOQUc JBrOt4PFhYBq1i19zjaBkXsBI8MqRrHczJzi3PTMAkNDveLEvJTM4my95PzcTYwQv0fuYHw6 0fwQIxMHp1QDY6FMzHnxezOFfft/WxldLDeamam2wWRl9wPp6R+Z5whPn6q5PS34JaP30sp3 xfUbX9bu+9dnteTT7lkfT3MWHjJy/Cv/x6vwhecV1lkyHids6+O9dl5ImlHzyHTJH/NMR4cP aU90etSfcJ86pWF5reJx831rq09/VDlO9ZvxKh3kMVi8OpHXSomlOCPRUIu5qDgRAIC9X+ur AQAA MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39840400002)(39860400002)(39400400002)(39850400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(1076002)(77096006)(2950100002)(54906002)(50226002)(53936002)(5660300001)(6916009)(48376002)(81166006)(8676002)(50466002)(305945005)(356003)(2906002)(6666003)(8936002)(33646002)(50986999)(76176999)(4326008)(86362001)(106466001)(47776003)(110136004)(38730400002)(36756003)(189998001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR04MB845; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT038; 1:Bu/GqFC6VDXYh7Zqhzz9Z6W0c95t03t4LIncGBY1Mdk3qMMciI2ew+FPT3TCxFwTaMV1HiQcE9N/1HAdGt6eNOvrO/I+Wtph5MzbZCF5HrXGEjo6NMfZqR7OOWOCasKyTIot8LCSW6I7nfnYjcrD2SxX2FQ4x7TUxqLSWsFKvQnpYxzFPrrHY/lMWrw5OnoUbzmKjoZJ5s6pqjxyS2zrdIpmuzVH8JDXJa6bdfJ4/9c77Rdh4R3sZLYA2l8rSORQ6aSJn0YSgVj89W67q+prR3NC82t/9HoUQ21RqjrO/lZtSkMscc1aMSnlAKYZO6EG1NkvokdlgPk12VJoddeHaC83d7W39smjDqdyMap0v9oogCVup6ObUhy6u+WTxjhQEXKzkvAViT8zJ4adq3Y+YeFq0SUV7kQ4a8ZtReaP9rmhjQ+Z4vKZmhG5auOEuSvElP3nm5cF6SxN9nK81RdIN0HFZ/RAN9l9c2cMa4TFHrL1POddnNcyT0zbQvpi5L+i/z/0YCc9bCQ7ZqMXUmT49F1lDNtuElQMpKeVcuiXYqo= X-MS-Office365-Filtering-Correlation-Id: f6caf375-235d-421e-9e58-08d485b2c33c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BY2PR04MB845; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04M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BsrxaO/Gr/2VpcWHQ3D6emSJPvfGaXrVtJ5o4XuGud3IUymWyCFmAWMnhkz5ySIwhH4ukIl7UZz6JdMr0C2YCwvfgdkne4Lqmg9cjMGRLznfTpsHdkTGPjp5jWfFqaNMwLudye47ijZAPyAoXsisX0VgZ/JfIDMbvTpv4om3kzHtcuJwbiyqqiXD9gwYxyYbuuTlYhNaiPxzmltxBE585oLVInglz9 WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB845; 20:4avg9UinXWOCHF5TK/UxyORkhlFpFrrmi+tKiC5Zo/2y2WJzvVYFnLKUyaIEsE7n1EtJkxSDCitLn2ZMu6N97bRCO02EPPLsb/z5Vy9Hd3j/+XGRy31oMRYMvctxbF/ftlUTvGblGmIX32KZckxqG3SoCzz8fyPTNGf5jHpTB7ZqJb4Wra1LxCcNSmXRr8PErKAjpsjii5WeIaGXpnyZ/cs/86iuGJ7FV71elo2qNKDh0vkkV0x01fJZ+lR2oxE5jLquVART9XC+6rk7jKSoazrvczICN0ZpA0MEB4KObq1h/NUf9cvO+6AxszT+miVqarY7V/YyX3M5Zbto8ikv/sg3zD/vUao4kaZeu1GF6r8giie4p59/o7Pqzv7qk6b1OXbIHfunRjRhq5sZo7JvuRoizRBqON0tQunAdW8U9ata2u72MjfQ5ZBXTU2U8BwuwrIVqZRSKWNpbwaUWXMsoJgC2W/PGIK8axRLjGUZPr4nmD/PMjczRMZ+lgmPgzEU X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13016025)(13018025)(8121501046)(5005006)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:BY2PR04MB845; BCL:0; PCL:0; RULEID:; SRVR:BY2PR04MB845; X-Microso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00VfD+uK4zg9nQ/pqELOTMvbQExUITM3raIk/kwPCxGxn4e+9I?= =?us-ascii?Q?M=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB845; 6:zjNKQ3bMJRtl/vWpFxXeSzxaSm+epFkvtwiWSRPEHfWIuSk0vpJMjr54QcGpwJpgiU0WRQIWFJMP3yxpNpnk/LBhkT7Qcgul5sRR7pCns2cS3ymnL7YROG/wJkIxfhW37/zvlMZydWt9VpZPNDhVEIXVRlfwwwUFPXBJBm1BznMsoZBfqEpvOVTss/je1DTccvkY6xLA0zMo4xOvZDfFjWITXMNa4D76sjMwqpws+2O1XfvHR4vNnOcPdSqYPvAw1ePPkHOB1aHaGric1PzKuix0mzhwMauZtM8OacZXMZQmUVHMoFxRUqTqyvDC887fSRmv3m97FL1NttuEA9pYEH42GwD5oVZWp3s97MUthLyWGpfQRBeU4cwPD5iqoihlXPDlrbLZDSKlBQIjC9Q1r5IptWCqfEgR1rzodqABlh7QhI2u2oEkGbTmy+atoy6er9YlNgQTnfuNVA1iRHnDapgIVtSg/LBF2XAcb4KKOos=; 5:V9HHgRYknZIC145oZtHsoAZaOeyzVaFVkgI4dfGt3Cx3tdGvEDmCoaLXbbVFQhkLQems6g0GOpDmzuKDndgil4bh+H8wO+1AzaQiq6fKclcCesaUI6JtvgGTNJZKf5MwleN5lwd/qhDmzGdoVvMC/g==; 24:IZxer06rzznwiu0BPF8qezp0mwSD3AD9b4z+jnPCOAb8KNNwFoNUrbN1c8cHcZwinV7+9Y2OmHmg1j4qZ2GEF/OGqW+aheJFBDaZp6a0aPY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB845; 7:+Ij0dXZbkI2lJCLuNKPg+eed7pyoO5rzhInPkC2EkZgXuRPOMZeHk9jdZ+mwZ1fv86fLqGwKrWKg/E/qG6hGyOR+YGoWqqDCRbmFqkjUqBV7xFViOncOrqI+Vwau068HnNmjrRzg+bujsaw54wOXA0vKf9tlHAgnt6cSvFsrgI2PGlEJwgDuUmZm63lPEEIksB6IMWlS0dujSmXbmNuJCeWnEudT0doAUKcmKiqSeeK63CjPd92/XotkOx7TpSH2ifyjrE9cuOwDNLmg0QizDQeB46FI1mHKlcKqWQSYI1z4281yhHmM3VV1qt/q+B1O95NgNKZjTboFWmyV7h02wg==; 20:ZhWmNwx4Bw7uNMeuKchNEv/+VSxIWfqbF+uObiTlxjuLW3fxib6twiR/iS3hF0wNEmBRLk8wf0BJwVavgtupDz0HdJlIU4xnjsXy0JU7canmaU75rwR+sjoLZDEvptclBHbXs4T4g/P5fC8l/NtVkikKRh5gnLI25ldnUhN5okM= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2017 16:56:58.9941 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR04MB845 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Show the operation name, .cmd_flags and .rq_flags as names instead of numbers. Signed-off-by: Bart Van Assche Reviewed-by: Omar Sandoval Cc: Hannes Reinecke --- block/blk-mq-debugfs.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 69 insertions(+), 3 deletions(-) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 27054293b37b..64b584ba576a 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -250,13 +250,79 @@ static const struct file_operations hctx_flags_fops = { .release = single_release, }; +static const char *const op_name[] = { + [REQ_OP_READ] = "READ", + [REQ_OP_WRITE] = "WRITE", + [REQ_OP_FLUSH] = "FLUSH", + [REQ_OP_DISCARD] = "DISCARD", + [REQ_OP_ZONE_REPORT] = "ZONE_REPORT", + [REQ_OP_SECURE_ERASE] = "SECURE_ERASE", + [REQ_OP_ZONE_RESET] = "ZONE_RESET", + [REQ_OP_WRITE_SAME] = "WRITE_SAME", + [REQ_OP_WRITE_ZEROES] = "WRITE_ZEROES", + [REQ_OP_SCSI_IN] = "SCSI_IN", + [REQ_OP_SCSI_OUT] = "SCSI_OUT", + [REQ_OP_DRV_IN] = "DRV_IN", + [REQ_OP_DRV_OUT] = "DRV_OUT", +}; + +static const char *const cmd_flag_name[] = { + [__REQ_FAILFAST_DEV] = "FAILFAST_DEV", + [__REQ_FAILFAST_TRANSPORT] = "FAILFAST_TRANSPORT", + [__REQ_FAILFAST_DRIVER] = "FAILFAST_DRIVER", + [__REQ_SYNC] = "SYNC", + [__REQ_META] = "META", + [__REQ_PRIO] = "PRIO", + [__REQ_NOMERGE] = "NOMERGE", + [__REQ_IDLE] = "IDLE", + [__REQ_INTEGRITY] = "INTEGRITY", + [__REQ_FUA] = "FUA", + [__REQ_PREFLUSH] = "PREFLUSH", + [__REQ_RAHEAD] = "RAHEAD", + [__REQ_BACKGROUND] = "BACKGROUND", + [__REQ_NR_BITS] = "NR_BITS", +}; + +static const char *const rqf_name[] = { + [ilog2(RQF_SORTED)] = "SORTED", + [ilog2(RQF_STARTED)] = "STARTED", + [ilog2(RQF_QUEUED)] = "QUEUED", + [ilog2(RQF_SOFTBARRIER)] = "SOFTBARRIER", + [ilog2(RQF_FLUSH_SEQ)] = "FLUSH_SEQ", + [ilog2(RQF_MIXED_MERGE)] = "MIXED_MERGE", + [ilog2(RQF_MQ_INFLIGHT)] = "MQ_INFLIGHT", + [ilog2(RQF_DONTPREP)] = "DONTPREP", + [ilog2(RQF_PREEMPT)] = "PREEMPT", + [ilog2(RQF_COPY_USER)] = "COPY_USER", + [ilog2(RQF_FAILED)] = "FAILED", + [ilog2(RQF_QUIET)] = "QUIET", + [ilog2(RQF_ELVPRIV)] = "ELVPRIV", + [ilog2(RQF_IO_STAT)] = "IO_STAT", + [ilog2(RQF_ALLOCED)] = "ALLOCED", + [ilog2(RQF_PM)] = "PM", + [ilog2(RQF_HASHED)] = "HASHED", + [ilog2(RQF_STATS)] = "STATS", + [ilog2(RQF_SPECIAL_PAYLOAD)] = "SPECIAL_PAYLOAD", +}; + static int blk_mq_debugfs_rq_show(struct seq_file *m, void *v) { struct request *rq = list_entry_rq(v); + const unsigned int op = rq->cmd_flags & REQ_OP_MASK; - seq_printf(m, "%p {.cmd_flags=0x%x, .rq_flags=0x%x, .tag=%d, .internal_tag=%d}\n", - rq, rq->cmd_flags, (__force unsigned int)rq->rq_flags, - rq->tag, rq->internal_tag); + seq_printf(m, "%p {.op=", rq); + if (op < ARRAY_SIZE(op_name) && op_name[op]) + seq_printf(m, "%s", op_name[op]); + else + seq_printf(m, "%d", op); + seq_puts(m, ", .cmd_flags="); + blk_flags_show(m, rq->cmd_flags & ~REQ_OP_MASK, cmd_flag_name, + ARRAY_SIZE(cmd_flag_name)); + seq_puts(m, ", .rq_flags="); + blk_flags_show(m, (__force unsigned int)rq->rq_flags, rqf_name, + ARRAY_SIZE(rqf_name)); + seq_printf(m, ", .tag=%d, .internal_tag=%d}\n", rq->tag, + rq->internal_tag); return 0; }