Received: by 10.192.165.148 with SMTP id m20csp2543253imm; Thu, 26 Apr 2018 12:50:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr4RRspBiiSUc4DfRW2tkyoEaMagoLATdnYIEbtonA+9AA74ANKmxKHtkHF3VnuRRInFVbU X-Received: by 10.101.93.81 with SMTP id e17mr4845777pgt.100.1524772257764; Thu, 26 Apr 2018 12:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524772257; cv=none; d=google.com; s=arc-20160816; b=g67h2Hyae62k7QP9a7DyLFKqBcDzsimKia3oooZOV7EW095fd0OK0zBLqYYKGVOb5A QuZKhpsvudgDYrEGERBS1mpI0eqsF6oKhn/AoRkBLSs9PHD74fuA7x0gloxZdsRvOond 2tBbi07KH/5ip17gavNqyS3/Q1uH+gm3hVVCcpHq/5iSVOxfBX3svAHiBAQ8F+Z4hD/R KA7uhdHQF51BdeHh3ux5dywWj+yHWZxMxzAMn9RY5f7wggSaftJEFaysG+0DXtCtGigK KOX6kCJ6QxhFWAGQB2+1tqtK8DdqcvsNUcV+o+dHw5p48/Ue6Mjnsz6pURB3bY5PaaLN Pk7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=FEdHSKNtud3++lRLNG+8H9k373taw7FEpCJuNw2rZ08=; b=g1yAHIUhMpoRez5KaFw7icTQFohKHeSWJDFcCb0IM5EmwbdOTxd8XaAznsBTZKzp50 8DZ5+kWBgQ4JXNkueJpwv/OILlEcvQ0nbMFCTis5gbQbZqrF12V+Obg1dcPz3jByzbSM L4pKyPH6any8zHoPXZyImXbSc2xNqNTnanxZHcp/yNDVnTqWw5U1o+hvF/EtB/8gAKN7 tSMf+2/o/Upbpvl4j9NwcCCkxgKLKtvS9JMp+Zd/DCwYxEWIBU7uyXLbBzwfZw4fX/Mq OWW3Zit4lKFNVHjwosZLQurRdUpmuQxGch8f9HZJW2QnTKuApoRoKoQc7XYgHtM9EpZD 4M0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8-v6si1223841plk.441.2018.04.26.12.50.42; Thu, 26 Apr 2018 12:50:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753003AbeDZTtd (ORCPT + 99 others); Thu, 26 Apr 2018 15:49:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:40763 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751615AbeDZTtc (ORCPT ); Thu, 26 Apr 2018 15:49:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B9CD0AEDD; Thu, 26 Apr 2018 19:49:31 +0000 (UTC) From: Johannes Thumshirn To: Keith Busch Cc: Linux NVMe Mailinglist , Linux Kernel Mailinglist , Christoph Hellwig , Sagi Grimberg , Johannes Thumshirn Subject: [PATCH] nvme: change order of qid and cmdid in completion trace Date: Thu, 26 Apr 2018 13:49:26 -0600 Message-Id: <20180426194926.18767-1-jthumshirn@suse.de> X-Mailer: git-send-email 2.16.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Keith reported that command submission and command completion tracepoints have the order of the cmdid and qid fileds swapped. While it isn't easily possible to change the command submission tracepoint, as there is a regression test parsing it in blktests we can swap the command completion tracepoint to have the fileds aligned. Signed-off-by: Johannes Thumshirn Reported-by: Keith Busch --- drivers/nvme/host/trace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvme/host/trace.h b/drivers/nvme/host/trace.h index ea91fccd1bc0..01390f0e1671 100644 --- a/drivers/nvme/host/trace.h +++ b/drivers/nvme/host/trace.h @@ -148,8 +148,8 @@ TRACE_EVENT(nvme_complete_rq, __entry->flags = nvme_req(req)->flags; __entry->status = nvme_req(req)->status; ), - TP_printk("cmdid=%u, qid=%d, res=%llu, retries=%u, flags=0x%x, status=%u", - __entry->cid, __entry->qid, __entry->result, + TP_printk("qid=%d, cmdid=%u, res=%llu, retries=%u, flags=0x%x, status=%u", + __entry->qid, __entry->cid, __entry->result, __entry->retries, __entry->flags, __entry->status) ); -- 2.16.3