From patchwork Wed Apr 26 20:47:55 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: 9701991 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 0C2326032C for ; Wed, 26 Apr 2017 20:48:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0A1728404 for ; Wed, 26 Apr 2017 20:48:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E59C728619; Wed, 26 Apr 2017 20:48:13 +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 6048328404 for ; Wed, 26 Apr 2017 20:48:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937429AbdDZUsM (ORCPT ); Wed, 26 Apr 2017 16:48:12 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:51313 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754346AbdDZUsJ (ORCPT ); Wed, 26 Apr 2017 16:48:09 -0400 X-IronPort-AV: E=Sophos;i="5.37,255,1488816000"; d="scan'208";a="115857043" Received: from mail-by2nam03lp0053.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.53]) by ob1.hgst.iphmx.com with ESMTP; 27 Apr 2017 04:48:08 +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=90Kpsz33CsUO7/tfHLylpEBHyF+2fJEkMORe5GSDB3c=; b=KBYRdOSKQR9oTGMxS9f3a8lbWqrGx8zhn2aBUgRY/N4hzp4faxZ2x+42QAG9dee6X87ul2gMdrwWVXmNVZrBPAo+I8plGws09Zoq1KvmODFfvj4JTfmpFyzzInzNA+HXcZiWg2pjulZXz4pYNYmgumzJ3LVZUTENWOHJZK7a4fA= Received: from CY1PR04CA0025.namprd04.prod.outlook.com (10.166.187.35) by DM5PR04MB0682.namprd04.prod.outlook.com (10.172.187.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12; Wed, 26 Apr 2017 20:48:07 +0000 Received: from SN1NAM04FT012.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::201) by CY1PR04CA0025.outlook.office365.com (2a01:111:e400:c5a5::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13 via Frontend Transport; Wed, 26 Apr 2017 20:48:07 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by SN1NAM04FT012.mail.protection.outlook.com (10.152.88.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Wed, 26 Apr 2017 20:48:07 +0000 Received: from MILHUBIP04.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 55.23.29323.58701095; Wed, 26 Apr 2017 13:48:05 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Wed, 26 Apr 2017 13:48:01 -0700 X-AuditID: 0ac94369-548749800000728b-60-5901078543bb Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 36.F9.11415.18701095; Wed, 26 Apr 2017 13:48:01 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche Subject: [PATCH v6 08/10] blk-mq: Show operation, cmd_flags and rq_flags names Date: Wed, 26 Apr 2017 13:47:55 -0700 Message-ID: <20170426204757.18910-9-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170426204757.18910-1-bart.vanassche@sandisk.com> References: <20170426204757.18910-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsXCddJ5kW4rO2OkQfNtcYvVd/vZLPbe0nZg 8rh8ttTj8ya5AKYoLpuU1JzMstQifbsEroxzXQvZCk7LVBxdvYitgfG/eBcjJ4eEgInEzL49 zF2MXBxCAkuZJFr+PWSCcLYxSkz4/p8Fpmpa50Y2iMRGRonrr5eAJdgEjCS+vZ8JZosIKEj0 /F7JBmIzCwRKLJv8gRnEFhbwkzj88RcriM0ioCqxfU03YxcjBwevgL3Eib1BEPPlJc5u2QlW zingIHF572NmkBIhoJKrJ6RB1koIPGaRWLb6OxNIDa+AoMTJmU9YIFZJSBx88QKsV0hAXeLk kvlMExiFZiEpm4WkbAEj0ypGsdzMnOLc9NQCQ1O94sS8lMzibL3k/NxNjJBgzdzBePeJ9yFG AQ5GJR5eh40MkUKsiWXFlbmHGCU4mJVEeDVeAoV4UxIrq1KL8uOLSnNSiw8xSnOwKInznpOZ GiEkkJ5YkpqdmlqQWgSTZeLglGpgnDmn4WS7z51dAqo3Tlxfysz3tCyNyW7d169vrj7kW6qe +3iusqqjaDSz8KZd0glJ919k1Wi+82xlOfssT2PPHVcx3owk65am8wXRi7VuObK4TJ4hdNW6 KVr7lV/optNZJW7pn7yfnBAxFglME2osM3dnvMnrzFzn38W03Xh/7MldXRyTGGYosRRnJBpq MRcVJwIA9600KFICAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkuLIzCtJLcpLzFFi42Lh2sjJptvIzhhpcHyhrMXqu/1sFgd/tjFa 7L2l7cDscflsqce0NeeZPD5vkgtgjuKySUnNySxLLdK3S+DKONe1kK3gtEzF0dWL2BoY/4t3 MXJySAiYSEzr3MjWxcjFISSwnlFi/873rCAJNgEjiW/vZ7KA2CICChI9v1eygdjMAv4S+xf+ A4sLC/hJHP74C6yeRUBVYvuabkYQm1fAXqLp1ANmiAXyEme37ASzOQUcJC7vfQxkcwAts5e4 ekJ6AiP3AkaGVYxiuZk5xbnpmQWGhnrFiXkpmcXZesn5uZsYIV6O3MH4dKL5IUYmDk6pBkZT hZePFuXUKmg7qTb9ZN0Wt29X7TP2SA/HHO3PXol3a74Vt3++9uzaI5nuzxfOc2m/1Q+1/zPR 8sHNlvgH4X2+4kUXRFZn75rLtuVH4gbPAFsr/kjPU2lMlRcE/05f8/W3Uai60c/t7f3zDR5t aW24EeLDMEUqqN7a/uqytOqdle+dGp027lNiKc5INNRiLipOBAC0jaeXogEAAA== MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(39410400002)(39400400002)(39450400003)(39840400002)(39850400002)(2980300002)(438002)(199003)(189002)(9170700003)(1076002)(50466002)(305945005)(4326008)(50986999)(5660300001)(54906002)(575784001)(110136004)(36756003)(53936002)(86362001)(107886003)(47776003)(38730400002)(8936002)(2906002)(106466001)(189998001)(6916009)(77096006)(76176999)(6666003)(2950100002)(356003)(5003940100001)(81166006)(33646002)(50226002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0682; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT012; 1:Ds9Ul3xSXT7oGD3sCi9PLmEOTIgFFdJ4merIxoHA5Q5roAv1R8mHxLq35M3ldKdy5WjGcUltnBQ/Q3JzaE3YmXrm7Hho+iOdAqDaGztrGO/CCEltqPOzdlV7z/hCe7GwWjxpPyqARmOa2jGo3Zqst6UjTl8TlxBI9wYqxwPOIoYXklUsDfVCj8ooJGvhtN8MR+0S5sIUO6SpstirMf9ScVMBzTAZ3cSvkpdKDUfDnp9xmg9Zk63C5gmwWJceC8mzhH3trL4m6wri0cO9MsDBmyGfGOhAngs5/cihGj74aUNNoT3KAZCDcz9+S0EcU6aMjW4kXTv+1QxG4NA3z4dTbUWMzIFoVVwHwmqYhp5O0GybrpFWhhmYo5Po8HCBFvRu3MFghBtCm41BIt/uNYeVk1LlD4PRr/sxy/M85wYrhisXj6WYkWbuzG0yUVzUy7DCZtCmeIV1Im5JHXYAyV6g4x0OTYas55BPQmZ68ViEOzSA26j78GbhSc2vdJc1wvgW X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a0d8d4bb-edad-4922-643a-08d48ce58b0a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0682; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0682; 3:+DlN0kLzhi5/0+a8StjXkMEd8rOEWnVcT+fy4kFMUDIct/PjNYVkWemCd9Hx0Brg2BiGUzT+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0sOA/4ivX9J+/b1fcANxWe84lQ9dVGhghdT0IO8LZ/Xyz9C+uuY/Kx3TsTL5M2vR4fRAgLi6YJAWvBLTSd/+uQeOlTQ29t5LKHl1wLKzV57efwsVd9T1gmq+ial9BMqio+P//6XmXJ2uaYCQ3glEN5hA== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0682; 20:FpzMyTRYkOsoQsiEUSLbW79KIsNFdlwni6KjrIbHDAwgugctfYUSw/nWbC6iOe51YMzoqikrHsebb1V60I+jiKkDADhqKctxiG3jpip9Q7QQ9GugWweUE7elQbP5kgQA+34h6KtqtfRGyl4es9gp/BQB8rAWBYIUa79CUWuq6lzgqpzrPahnhdcJa6WVgd0MoRlmPyub2YaPO3hJ4kditwRz2qgzifzRi1Qg1nzN9QBDE36uwA6CLm31qUe+NBViEVrnJeW8pVdFlYg8GrWe/cU1A8/cn/zYWYtZvMQ1nQztwxGiv/VNbojxG1yG1CSzhlGYUdN0llLylgFOJgxa6e4wV+xLdDR0bnxMR8q+Qsk4daQEK3UWT8x075uVEMz/FANHt1U1Gb3C80khJy3Won2WXL8Y30I2YU2Mtp+pXZWmokfRnUr7nNSjnATdSX351u9jw0GpMe3Gyy1A17SfPxAAws4XUYVKXF5cFEuC4LSFIMu2zNmsfI/DFGiDckm7 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)(13018025)(5005006)(8121501046)(13016025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123562025)(20161123564025)(20161123558100)(6072148); SRVR:DM5PR04MB0682; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0682; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0682; 4:qz5yDAGPg4Dggu5KN3U05Ru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ics: 1; DM5PR04MB0682; 7:JbIjpy1tTbWt2fstWlvIhc0FK3nBbAU9ehaG5r7wsSbzee57zyKsy2oqx4kRYNbp9cGmOQId4qUOruIcJWkefOT2Iej8h/fB+Mnl9Zm2261bDfLxNjYhFFSHms3Idxjf5IrQ4I5khnYl5lTobhmEIUK/nfjT42w6wLw+SVX9TlgNN7Diec9TxdtjDfhxbKSphryAYGxdwWYyCtvLS2JwZEV9ZZ2UBIZebdYdKzQsI0SGhBRFDZVKnRoeXbdanGXw7ymOwo2YE+2mPWNbCuye2aOyEipx1Ub2Jcap8qOW2GvQz5ghImi2fLoTx0EIsRei5Tpgb9ct6Mz1PwMVlmkRxg==; 20:b6TYq8rK5EoWk6k1kpZPGjsL9RFzF8RS+n9k9XjV+UCeF+jtEJaK5GDLn4gxYDzvXjpWnA82TMszDnOTg8UqlY7D4YvlkdTDGtjqYDIzmN31O5Vhxmsd3un1PWyWvfGnvi9psYrjpk1m4utL7iA73r6BseYVTlnH4RHBEL59Lyk= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2017 20:48:07.1695 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB0682 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 Reviewed-by: 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 ccc7b0f71230..ac39093c4ef7 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -253,13 +253,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((__force u32)RQF_SORTED)] = "SORTED", + [ilog2((__force u32)RQF_STARTED)] = "STARTED", + [ilog2((__force u32)RQF_QUEUED)] = "QUEUED", + [ilog2((__force u32)RQF_SOFTBARRIER)] = "SOFTBARRIER", + [ilog2((__force u32)RQF_FLUSH_SEQ)] = "FLUSH_SEQ", + [ilog2((__force u32)RQF_MIXED_MERGE)] = "MIXED_MERGE", + [ilog2((__force u32)RQF_MQ_INFLIGHT)] = "MQ_INFLIGHT", + [ilog2((__force u32)RQF_DONTPREP)] = "DONTPREP", + [ilog2((__force u32)RQF_PREEMPT)] = "PREEMPT", + [ilog2((__force u32)RQF_COPY_USER)] = "COPY_USER", + [ilog2((__force u32)RQF_FAILED)] = "FAILED", + [ilog2((__force u32)RQF_QUIET)] = "QUIET", + [ilog2((__force u32)RQF_ELVPRIV)] = "ELVPRIV", + [ilog2((__force u32)RQF_IO_STAT)] = "IO_STAT", + [ilog2((__force u32)RQF_ALLOCED)] = "ALLOCED", + [ilog2((__force u32)RQF_PM)] = "PM", + [ilog2((__force u32)RQF_HASHED)] = "HASHED", + [ilog2((__force u32)RQF_STATS)] = "STATS", + [ilog2((__force u32)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; }