From: minwoo.im.dev@gmail.com (Minwoo Im)
Subject: [PATCH V2 2/2] nvme-trace: Add support to trace fabrics command
Date: Wed, 8 May 2019 17:26:55 +0900 [thread overview]
Message-ID: <47dbbe1d-0f47-1197-17dd-16553ba645a4@gmail.com> (raw)
In-Reply-To: <20190508072531.GD21823@lst.de>
On 5/8/19 4:25 PM, Christoph Hellwig wrote:
>> + if (likely(!nvme_is_fabrics(cmd)))
>> + trace_nvme_setup_cmd(req, cmd);
>> + else
>> + trace_nvme_setup_fabrics_cmd(req, cmd);
>> +
>
> I wonder if we really need this. My idea would have been to just
> branch out to the fabrics command parser from parse_nvme_cmd(). Or did
> I miss something why that might not work?
You didn't miss anything. I was trying to separate fabrics commands out
of it because they have a little bit different "common" SQE fields than
the existing one. That's why I made it separated.
If you want parse_nvme_cmd() branch out to something like
nvme_parse_fabrics_cmd(), it would be easier to go. Actually that was
my second try, but I thought people wanted to show the exact fields for
fabrics commands in traces.
Anyway, If it's okay to go with common fields in common, and from the
cdw10 position, I'l prepare a V3 patch.
> The benefit is that we don't have an additional branch in the
> non-tracing fast path (and also make it look a little nicer).
100% agreed. As Chaitanya was worried about this part, I'm now also.
>> +#define show_fabric_type_name(type) \
>> + show_nvm_fabrics_type_name(type)
>
> Why do we need this #define to the same name/signature?
Oh, I was just trying to form it like existing one. I was referring
show_opcode_name(), but, That just needs to branch out by a given "qid".
This #define has no need to define like this. Thanks for your review.
prev parent reply other threads:[~2019-05-08 8:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-06 19:46 [PATCH V2 0/2] nvme-trace: Add support for fabrics command Minwoo Im
2019-05-06 19:46 ` [PATCH 1/2] nvme: Introduce nvme_is_fabrics to check fabrics cmd Minwoo Im
2019-05-06 22:41 ` Chaitanya Kulkarni
2019-05-06 22:59 ` Minwoo Im
2019-05-08 7:23 ` Christoph Hellwig
2019-05-06 19:46 ` [PATCH V2 2/2] nvme-trace: Add support to trace fabrics command Minwoo Im
2019-05-06 22:38 ` Chaitanya Kulkarni
2019-05-06 22:56 ` Minwoo Im
2019-05-07 1:37 ` Chaitanya Kulkarni
2019-05-07 10:43 ` Minwoo Im
2019-05-08 7:25 ` Christoph Hellwig
2019-05-08 8:26 ` Minwoo Im [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47dbbe1d-0f47-1197-17dd-16553ba645a4@gmail.com \
--to=minwoo.im.dev@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox