From patchwork Tue Apr 25 20:37:43 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: 9699709 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 B980E60224 for ; Tue, 25 Apr 2017 20:38:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8CDC2846B for ; Tue, 25 Apr 2017 20:38:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D51A284D4; Tue, 25 Apr 2017 20:38: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 EAF812846B for ; Tue, 25 Apr 2017 20:38:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1950370AbdDYUiB (ORCPT ); Tue, 25 Apr 2017 16:38:01 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:14175 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1950077AbdDYUh4 (ORCPT ); Tue, 25 Apr 2017 16:37:56 -0400 X-IronPort-AV: E=Sophos;i="5.37,251,1488816000"; d="scan'208";a="13114265" Received: from mail-cys01nam02lp0051.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.51]) by ob1.hgst.iphmx.com with ESMTP; 26 Apr 2017 04:37:56 +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=So1AwYBOx9kFDC/idXyVVtaak0WlybVEsmqQZyOOlUtit1coWghnbkz/Sn0lbQWLbLRIHX0ES1ciC4oYKMOxhITGDPTij8oqaftllx5yXc+K0iFB0AAhvRchZm7V/LlbqAPjy6PGzO9mBt5NSBk0WDJJwj+A+Fg8YP8VaUIO2bI= Received: from CO2PR04CA029.namprd04.prod.outlook.com (10.141.240.157) by DM2PR04MB896.namprd04.prod.outlook.com (10.141.158.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13; Tue, 25 Apr 2017 20:37:54 +0000 Received: from CO1NAM04FT023.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::201) by CO2PR04CA029.outlook.office365.com (2a01:111:e400:1428::29) 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; Tue, 25 Apr 2017 20:37:54 +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 CO1NAM04FT023.mail.protection.outlook.com (10.152.90.148) 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; Tue, 25 Apr 2017 20:37:53 +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 15.1F.29323.F93BFF85; Tue, 25 Apr 2017 13:37:51 -0700 (PDT) Received: from milsmgip12.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; Tue, 25 Apr 2017 13:37:48 -0700 X-AuditID: 0ac94369-548749800000728b-e2-58ffb39f9ed7 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id AA.2A.18148.C93BFF85; Tue, 25 Apr 2017 13:37:48 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche Subject: [PATCH v5 08/10] blk-mq: Show operation, cmd_flags and rq_flags names Date: Tue, 25 Apr 2017 13:37:43 -0700 Message-ID: <20170425203745.19946-9-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170425203745.19946-1-bart.vanassche@sandisk.com> References: <20170425203745.19946-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrALMWRmVeSWpSXmKPExsXCddJ5ke78zf8jDD6ckrBYfbefzWLvLW0H Jo/LZ0s9Pm+SC2CK4rJJSc3JLEst0rdL4Mo417WQreC0TMXR1YvYGhj/i3cxcnJICJhIHJ27 mK2LkYtDSGApk8SRNw/ZIZxtjBK9ExuZYKouznoKldjMKHH74C1GkASbgJHEt/czWUBsEQEF iZ7fK9lAbGaBQIllkz8wg9jCAn4SK/v+gNWzCKhK7O08DGbzCthLbNxyH2qBvMTZLTvB6jkF HCRWXOkGiwsB1XTt3MUKUfOYRaLhXiREr6DEyZlPWCB2SUgcfPGCGaJeXeLkkvlMExiFZiEp m4WkbAEj0ypGsdzMnOLc9NQCQ1O94sS8lMzibL3k/NxNjJBwzdzBePeJ9yFGAQ5GJR7eAI// EUKsiWXFlbmHGCU4mJVEeC8uAQrxpiRWVqUW5ccXleakFh9ilOZgURLnPSczNUJIID2xJDU7 NbUgtQgmy8TBKdXAGNHb8+GlSv5qG7tl+/71XlZ0Tp5WeNP6WWm2yubFD46W/OgSWh5/SMJx nZzi+Rc2X14U9mx5sujzkYszjm/TblCKPvxGpivMI110bvgUDgbGeuWExbUdZdO+63ww9K3o MpVJNXad/8PQ6uK1Y7ZM4UbZZj4/W3zTJAz/TPmU9IF5/j3uxjPzlViKMxINtZiLihMBs0TF sFMCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJMWRmVeSWpSXmKPExsXCtZEjRXfO5v8RBr1fdS1W3+1nszj4s43R Yu8tbQdmj8tnSz2mrTnP5PF5k1wAcxSXTUpqTmZZapG+XQJXxrmuhWwFp2Uqjq5exNbA+F+8 i5GTQ0LAROLirKfsXYxcHEICGxklTj59ywKSYBMwkvj2fiaYLSKgINHzeyUbiM0s4C+xf+E/ sLiwgJ/Eyr4/jCA2i4CqxN7Ow2A2r4C9xLrOg6wQC+Qlzm7ZyQxicwo4SKy40s0EYgsB1XTt 3MU6gZF7ASPDKkax3Myc4tz0zAJDI73ixLyUzOJsveT83E2MYD9zRu1gvD7R/BAjEwenVAOj b+OZMxvcQnU0uq4czP6+nuGWYvxGVcOPVZsK5t2dOXFLlvjkt9t+tEu7t1nLffFqmd00+3DV kelfa2dJTe/buoW70KzGMtlpv2zvr0vv9lfOOTirb8ouPk/esMSkF5mrL/EYCKzzFqy7yZN9 cKVWSb1co/Ck9Y/ZZj1eW2dpcbjNiLU0OeKREktxRqKhFnNRcSIA7oou8qMBAAA= 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)(39410400002)(39860400002)(39840400002)(39850400002)(39400400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(2906002)(356003)(106466001)(575784001)(86362001)(2950100002)(6666003)(1076002)(8936002)(81166006)(47776003)(8676002)(5003940100001)(6916009)(4326008)(5660300001)(107886003)(54906002)(38730400002)(110136004)(50226002)(53936002)(77096006)(189998001)(50466002)(33646002)(76176999)(36756003)(305945005)(50986999)(48376002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR04MB896; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT023; 1:Kyvx462jF9Rg80xWqRa0V92Tekf4CU/EKrUSA3L92PRhUo7wSVVAS9F7dl4Rm+WcIRanjTNu8wPwFxtvvA7UluV9Nbb+38ZDuPnBclg3t2izJwhNMpSjud8k62piAs9u1awXYMzoysn0eu8stSIdYy4UrasAFCUxT1L85G64THXAM8fmGcebUQjL770yQV5biM5vAuYmF+3Xcgwfm5CFuryxzcCSXCtGW7MY1x+EcACNHw40S55Pok9ouD2SR1et5uNz18rvutZoLVwFbToMAscscz1cSqe7UY+Yjy9p6zWgUYSB+aCbxS56MCZ3mkDSm/nszMm44zeA5edKDRke0MpOT2qQTFyt1GStZTUen4UQdqHhPSfFWhpDGYQ4/0XAvU66nwVdUpFmaTqAx/4fQporildWDh38Sd74HZnBlBcebOuTWcCEaYL2Z0L0jo7iBUoJys4CafL/waT2L7PTMSnPzX8hZbHgSjOouZQDpMC5BWUBij3ihHo3X9DbpqWM X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1bb7e61f-fe1f-4181-0fa8-08d48c1af2f1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM2PR04MB896; X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB896; 3:KweUIbcyrtAz9OvZZd5GrXH3T3+UlIFqfsTae4QjKc8aFz/154QOc2ZpLq9MXLl1hRVF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qMk3pIfZXP6x1VCM+HAmA2m0UBqSN/dkMnURqHTVfXmwg8nb9O1wywXTsZByHyFU+VhH+LmV5Wm6m5o9qpdMJyTo2Iio9BZvUpGnVIOPY8KeZ0B+yFfZj7G14ylpzBKOG/2JzUuwR6zw31d3dn3Ds7Tz9UFx5FY4L4w== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB896; 20:h0Vj1t30lZyBw+Hbho0waG2fFnhWlrBnCOvHZTUyAoEFR2l7b/p8VYm50Oy0oTgkEt4iTcTZhRbtu7GelFX5Fanuc5rE64sB2f1SrxCIl1exlHDLoIS5Me1l2NGP+q/0E/efeblr7rraCpHxRuskJQLOSm72IerItrICKI7EB45NNUfBVUadsnWeN3w/tvVRN0rNTFNnkSxeLUEDo/lzo8abgOGfvyKLK1uf5ey7dwg8ToEPL03d7x+fGhFt/mko32mFdhkhrRE4UXPvYVJ0CYYTq7FKVs5Dx8LD30nolpktBNG3zPkYiOF39heFwji627WFQB6TFJeecIFvY0oPxWB0nVwZuno0h+px+eEFjd29NHYB9i5KiV1SDniaxIkuuZmfPBlqoS04QCaVKPY9cYsF2qdFZXAuhvD7iXdE91/VszQ8qj8f+4JbTKywXHpOyCzV6QYT4eguNa+EEs1bEx0xYRfh+E/rgEoW3LZzeGGdDS/Aa3WIlC3xfSq97eCU 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)(8121501046)(5005006)(13016025)(13018025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:DM2PR04MB896; BCL:0; PCL:0; RULEID:; SRVR:DM2PR04MB896; X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB896; 4:Wr4NWulfJ9WYAU0hknHcmyYVjgV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zenfrzC6Z3zqIBYjd3f/NQ5V/b8YuVK+Tgr9xyGVH4oQYNNU7JTA3koGx4pBImOBK59zD/Wq67JFnMet7b6S5ht0cMsWHU6RpzlRducz48B5AjjwbPcvMSxCREUfqCW5sEeMgLkOr7qt9eoARD7nINB591ZcY9cDdQfATWUBVDTKg1Y2aZuGXmmqqa9qMZ+gNGGBumaVe1PKj5Pjeb1NpCD4KfgUTV9o8Z9dywquhIqLuE5Ta3CO+Tk2afc+8pTCK6jEuwLkiP47DTBIYckJO29+TQ9qgUZzF/hf5Zx+8JwmlVciNjjlJPS37cOA4xqKP/TTTfrMXkUjjF0ZRg==; 20:l+pXPUzxNLfHv6Oe6aifdxLqUE8n0RoJ5cjARn7hJEIIkfgGVPTj3eNkT7HWiJEa3fMCuC9zDAcGQfXGtjC5liKS0IPiDN+pxpwcmkYnlH0n0Zbv7P0BS+cEQht1CGZCMzzMBjxz6R5nMB9HFf2F0pBViCJKsNshCvK9OBKwocE= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2017 20:37:53.7286 (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: DM2PR04MB896 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; }