From patchwork Fri Apr 21 23:40:24 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: 9693991 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 DC4EA60328 for ; Fri, 21 Apr 2017 23:42:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDFB12866D for ; Fri, 21 Apr 2017 23:42:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2B0828687; Fri, 21 Apr 2017 23:42:45 +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 C19502866D for ; Fri, 21 Apr 2017 23:42:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1426871AbdDUXlv (ORCPT ); Fri, 21 Apr 2017 19:41:51 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:59725 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1426870AbdDUXky (ORCPT ); Fri, 21 Apr 2017 19:40:54 -0400 X-IronPort-AV: E=Sophos;i="5.37,231,1488816000"; d="scan'208";a="12913172" Received: from mail-sn1nam01lp0113.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.113]) by ob1.hgst.iphmx.com with ESMTP; 22 Apr 2017 07:40:53 +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=R7VT3ZpfHg3RsypXFiB2BX5nz519iHoLrSL9ORonWWc=; b=lbVPw0MLcOkvQw4/0yMcJkccDg1oWbo/Kq+XrIKtVvSlzrBrJly2Xccvzjr7+TRNTPma9KTItr701zgkFQTlidrkx3VF1fSxa52SZof5V72PjVjxmjt6M86RqPGVjA2iUiCdymI9V+XpTBjqU+g1K5MQgji9OvrUzOEklTsv6ck= Received: from MWHPR04CA0041.namprd04.prod.outlook.com (10.172.163.27) by BY2PR04MB885.namprd04.prod.outlook.com (10.141.218.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Fri, 21 Apr 2017 23:40:36 +0000 Received: from BN3NAM04FT030.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::208) by MWHPR04CA0041.outlook.office365.com (2603:10b6:300:ee::27) 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; Fri, 21 Apr 2017 23:40:35 +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 BN3NAM04FT030.mail.protection.outlook.com (10.152.92.164) 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; Fri, 21 Apr 2017 23:40:35 +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 9C.22.29323.1789AF85; Fri, 21 Apr 2017 16:40:33 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Fri, 21 Apr 2017 16:40:30 -0700 X-AuditID: 0ac94369-548749800000728b-bd-58fa98710db6 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id A3.66.18148.E689AF85; Fri, 21 Apr 2017 16:40:30 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Hannes Reinecke Subject: [PATCH v4 08/10] blk-mq: Show operation, cmd_flags and rq_flags names Date: Fri, 21 Apr 2017 16:40:24 -0700 Message-ID: <20170421234026.18970-9-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170421234026.18970-1-bart.vanassche@sandisk.com> References: <20170421234026.18970-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBLMWRmVeSWpSXmKPExsXCddJ5kW7hjF8RBh/361msvtvPZrHgzV42 i723tB2YPS6fLfVYv+Uqi8fnTXIBzFFcNimpOZllqUX6dglcGX03HAqOSVVs35XSwDhJrIuR k0NCwETi54dbTF2MXBxCAkuZJNZOW80O4exglPj0ZQszTNWK6U8YIRKbGSU2Nn5lAUmwCRhJ fHs/E8wWEVCQ6Pm9kg3EZhYokrh2vA2omYNDWMBPYvLOYpAwi4CqxMwLH8DKeQXsJd7tW84G MV9e4uyWnWC7OAUcJJa3HwWzhYBqrnX3ge2VEPjEIvH1wVFGiGZBiZMzn7BA7JKQOPjiBVSD usTJJfOZJjAKzUJSNgtJ2QJGplWMYrmZOcW56akFhqZ6xYl5KZnF2XrJ+bmbGCHhm7mD8e4T 70OMAhyMSjy8K1h+RQixJpYVV+YeYpTgYFYS4T0+DSjEm5JYWZValB9fVJqTWnyIUZqDRUmc 95zM1AghgfTEktTs1NSC1CKYLBMHp1QDo+nT0yK/1DIy/dOS8+75G/oVqbW0LXmn3jnFLP3l S43772b9ZcnIj57N/kz+V0D3hXaeX9+CZ2Qa9XYnexeYt3corww+fmSLbarmmjnP0luCp20p s4v9s/VCl+XtLR6/qo/tLHrlvsis41wE/89lnR8spBseSH57li7xS+/klAcVJQE/fDcvVWIp zkg01GIuKk4EAOxGuU5bAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOJMWRmVeSWpSXmKPExsXCtZEjRTdvxq8Ig38XWCxW3+1nszj4s43R YsGbvWwWe29pO7B4XD5b6jFtzXkmj/VbrrJ4fN4kF8ASxWWTkpqTWZZapG+XwJXRd8Oh4JhU xfZdKQ2Mk8S6GDk5JARMJFZMf8LYxcjFISSwkVHi/PILbCAJNgEjiW/vZ7KA2CICChI9v1eC xZkFiiS+7VoNFOfgEBbwk5i8sxgkzCKgKjHzwgewcl4Be4kFf2YyQcyXlzi7ZScziM0p4CCx vP0omC0EVHOtu49xAiP3AkaGVYxiuZk5xbnpmQWGRnrFiXkpmcXZesn5uZsYwV7njNrBeH2i +SFGJg5OqQZGu+879Wa8MmMwi9idImgmNilXLZnn66+Zm7sYIpxvPuUPKDsbXSURk7GpN+3j 1/OSZZIiHzjfmS2fIMl1JY07f8fHObubKyQjtqoFBp79NtW//JLoXLEoy5iVhqdZxbwcueT+ Vdzy592kMdvz45PZF7zktKeVMGzkcQl2OGjYsUdJUMr5t7QSS3FGoqEWc1FxIgDANyDrqgEA AA== 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)(39850400002)(39400400002)(39860400002)(39410400002)(39840400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(77096006)(54906002)(1076002)(50986999)(5003940100001)(2906002)(76176999)(33646002)(6666003)(2950100002)(6916009)(36756003)(5660300001)(38730400002)(110136004)(50226002)(48376002)(305945005)(53936002)(356003)(8676002)(575784001)(86362001)(81166006)(106466001)(8936002)(4326008)(189998001)(50466002)(47776003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR04MB885; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT030; 1:Egig6u25DwQBXe+Shz8SzZnXkYrOEpbQzF4WvFd2eICc9v7BYlctrcswVBlGfzTKZJvAbFOAGaSlKG0coMXeWiPKsNd+adECZxHiMfoLKzNoYUk9U29BbUA6c4qvDW8F3ZpAj7ybuJkeQl8sLKnkTiTxaescg3uwPAr6LBnQ1N3t3IrekQ+M8usktxecaBSWXmPMJiTsoDzv7SwHSM82HMGSq6pVC7rf9fJj8AGSePKP6FCMF2FmA5lZ0WZK4vQfffAdggmJnqVXPpDM9kF1+i7Jx5KrI3ocVnGLBd5jlkkmTg4s7sksoP6kZomCziDKj5l4g8EelGdaS/4koRo9LXZKruh+E98hQZLZJqPTfuaSMQ6OUkrEKuf6t2EuSD2BNLZCbc5tilRlu7mvXLm+z0Tq7IUz1uw4/5PGJKIqusxbB/xO/7mKBHTT7FzOMCbXBjkGW3Vrff2fA+yMzRoEfEF9g1k6uHdnc645UzUL0e2hrudaNiB+hMN1XKGr3f/h X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6ed85746-88c9-4282-c552-08d4890fcf02 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BY2PR04MB885; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB885; 3:JmiWlYyIlTOyvZMDoQFrKVD74xarcA3pVGUkAphX20OhW98Q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uxSuYH/gD8bgn8AsDDADxO+ctSQ+MQljTILkoZaeHgOxLtscl1m5Z534OpgZ8J7NBncDiB0gwhHu7Y36gRgilCI6ZHVH3UZnZaGFV6YwU2PBmO5xl7LVrw0OhFykeoqRnMw0VKSKnHtvGCQajiGE19Se5FLCBo3FOTFXX+KyucaFtF WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB885; 20:uPYVNrkUMP2VrBylk4rPlwi7Fs4r/Cjgp60tiCYFRFN1ks6MHI6Tlekbyz24LDPtsL6Uk0RBsSKyZBjPC6Kp8jtMI+g+20DzHYL3pAjzZhZmOoFdTUNCqtjDlPm7n0eJCAd/EbRiHJ4h5Bm8NilGqTgsL1b13A4AMTOcISh/MqLNQTAxCTVGyFn1rWRG6Kzx4FZTD/lQz2rwoNSlNbEg59i38+PhPWqXKhhrJHGi0feHXy4vI2BfVtep07P16p0rep415fRjwvGGOVmyiOmpyhz55a03JeWWnM4LQEjdL6g5OoKoXleyZopkMK+umsfT4j6ZGknChfNmtopC6hgHNXcKN274P9njNisOTMlPhsPFBIIx1b+niwngRBaYToKIG0VYU48PmLYS3vDqiv3uUvge9H7xKNGENK3SeiJ+NUAyKOP9XHBFehvvN7wWhZLMxn/sND9+RA5XUKxhrEygqul7gpVd+yGv1FG7wJ5ehS5vBCztWmOuLU83brg/HOIw 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)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123555025)(20161123564025)(6072148); SRVR:BY2PR04MB885; BCL:0; PCL:0; RULEID:; SRVR:BY2PR04MB885; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB885; 4:G3mcDkaNZNqaWYRVXYVtx8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ijmU2TiMMh?= =?us-ascii?Q?J3VebXF1cQTXml0Ikaq40eIwBpc2FRvshLC8rNSoasBttaZi2QZJqaSs6Ud3?= =?us-ascii?Q?fsWcSz/O4lDFIVb7ifijvH1NEt?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB885; 6:UTUF4WmVjrNzphlz1ZRO5CiHYXrplEluR20CljWZIXHN5vQBWpBBpcDoeEsCzPuux5Yn5ACB8lEd8AwW+ruJIHvuYChfu3wzXRQ1Vxc/xh+aBGso9nr2RObOTbcw+Gnj5F/NrZV+9snYzB8AQ3cS3R0AE/PTG8SY33Cc3h98bss01CGOjonbFNrwQJXsQ+DrX/rorNsPIl405Q9lB6XvLCY3YaLUnaZpRpT5UkzGysQiOX7YR6NjF64GnWsQglb9bf5P5pj9hKTdHr2nl3Itae/PNWLYouplJONP2W5AvnHrjCMG0DnMMpFj6q4unWb0DA0keVKUUYiq7dZOrUlfEf9JklGbBB7OZrshL7FySBd3nj/FmC7b5D0YiqV0pYfu5nphvdIv2zhus8JSrcAzYWPieasqERzo0c9WnxXu8aNuYNLAxrGQ8k6NPvVPj0I8QQYHyn+vkgOubRSH+zTvmJo/XpiqEf0weG4rO0iuVPzXYHAuN2CZMu5eIzRxMx0uvV2WiKYzIvR3iQowKNRJ4ThDQv9fZN7VXg2RiVN6A6M=; 5:+x5e+pxHPkOQeCX6rZmPXekeDVZtJCMOcF191XZAxvGIdtEePdL4kFHAI1bFwlabKgvuxaDX7o90781XQzZiMRIXBpJORG8vGpfuxSq6izvYo0TFS/x092LlHNKUvks7Kr/QdtFtXSgmv+g6aZxOpw==; 24:Rwy4KrF8LDIuOTsp4Btc6dijTH60lz8olhf93zzedXsoypLab9bXPb/fuLOHx3QbSycDHx2pQEZiVzoXcczrcaqvpAzDcA7hCDMB9Cp1GF0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB885; 7:VLbYYAeiw9Q2tlNaS1OgUU2yBOT3SobF55QNSNOYGT2eNRZR33OBpU45B/1wDaWvWMMMAcvPbcVVpcWkU/40vtoBK0gjQ1HjWNwlc80MHMKT5v5S3+xQAxgJEPWfKYHYOhax31mu6ktHUq0iHxdt3zMAxA2ygA1EJMdBMpgrh5COuHCwaKz2LZylQU59bOg884hv6Ip+wDUzVHI7zwr0xoY0TOhmfFnq+K18KZI0invoH45ft4WaKUHIca4ceKRCECYr35MuMWKKLnBdxNobDOyecSXsMB+g8Z+KtI7AY1cvA+srGBhxeExRuhNMCxhaXbGq6gYnd9XIq2tv+9Sryw==; 20:dK0PBwYQTFTTpkpA2RJ+AiCfKJSPzJNPH+2Zwlckkh6nM+/+Zi30NoAjBmPJuUbGtXdOQusZR1w9N76/obHFbr4+ZEuJTkdHCEYz/MGbyA4PS7MtqLn5IQRW1fsDItLWnfLYV/PCQmTCiXQ0hX0oyMa20M8Khr7TQOT8QYv99Cg= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2017 23:40:35.3225 (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: BY2PR04MB885 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 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..3a99146ece39 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(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; }