From: Jens Axboe <axboe@fb.com>
To: Baolin Wang <baolin.wang@linaro.org>,
ulf.hansson@linaro.org, rostedt@goodmis.org, mingo@redhat.com
Cc: adrian.hunter@intel.com, yangbo.lu@freescale.com,
akpm@linux-foundation.org, JBottomley@Odin.com,
lporzio@micron.com, jonathanh@nvidia.com, grundler@chromium.org,
fabf@skynet.be, yunpeng.gao@intel.com, dan.j.williams@intel.com,
rabin.vincent@axis.com, chuanxiao.dong@intel.com,
shawn.lin@rock-chips.com, heiko@sntech.de, dianders@chromium.org,
david@protonic.nl, broonie@kernel.org, linus.walleij@linaro.org,
takahiro.akashi@linaro.org, linux-kernel@vger.kernel.org,
linux-mmc@vger.kernel.org
Subject: Re: [PATCH v2] mmc: Provide tracepoints for request processing
Date: Fri, 25 Mar 2016 08:10:29 -0600 [thread overview]
Message-ID: <56F546D5.5090107@fb.com> (raw)
In-Reply-To: <7dff940d08f26e9994557d94652f581ad84899e0.1458893798.git.baolin.wang@linaro.org>
On 03/25/2016 02:19 AM, Baolin Wang wrote:
> diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
> index fe207e5..d372a2d 100644
> --- a/drivers/mmc/card/block.c
> +++ b/drivers/mmc/card/block.c
> @@ -46,6 +46,9 @@
>
> #include "queue.h"
>
> +#define CREATE_TRACE_POINTS
> +#include <trace/events/mmc.h>
> +
> MODULE_ALIAS("mmc:block");
> #ifdef MODULE_PARAM_PREFIX
> #undef MODULE_PARAM_PREFIX
> @@ -1709,6 +1712,7 @@ static u8 mmc_blk_prep_packed_list(struct mmc_queue *mq, struct request *req)
> if (phys_segments > max_phys_segs)
> break;
>
> + trace_mmc_block_packed_req(next);
> list_add_tail(&next->queuelist, &mqrq->packed->list);
> cur = next;
> reqs++;
This looks like the only valid trace point in the block part.
> @@ -1870,6 +1874,7 @@ static int mmc_blk_end_packed_req(struct mmc_queue_req *mq_rq)
> }
> list_del_init(&prq->queuelist);
> blk_end_request(prq, 0, blk_rq_bytes(prq));
> + trace_mmc_block_req_done(prq);
We just logged a complete event through blk_end_request() here.
> @@ -1985,6 +1990,7 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *rqc)
> } else {
> ret = blk_end_request(req, 0,
> brq->data.bytes_xfered);
> + trace_mmc_block_req_done(req);
> }
Ditto
> diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c
> index 6f4323c..d0388cf 100644
> --- a/drivers/mmc/card/queue.c
> +++ b/drivers/mmc/card/queue.c
> @@ -16,6 +16,7 @@
> #include <linux/kthread.h>
> #include <linux/scatterlist.h>
> #include <linux/dma-mapping.h>
> +#include <trace/events/mmc.h>
>
> #include <linux/mmc/card.h>
> #include <linux/mmc/host.h>
> @@ -64,6 +65,9 @@ static int mmc_queue_thread(void *d)
> mq->mqrq_cur->req = req;
> spin_unlock_irq(q->queue_lock);
>
> + if (req)
> + trace_mmc_queue_fetch(req);
Issue event was just logged here, if req != NULL. So also redundant.
Basically only your core mmc events would potentially have merit, the
rest are all dupes. So nak.
--
Jens Axboe
next prev parent reply other threads:[~2016-03-25 14:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-25 8:19 [PATCH v2] mmc: Provide tracepoints for request processing Baolin Wang
2016-03-25 14:10 ` Jens Axboe [this message]
2016-03-28 5:53 ` Baolin Wang
2016-03-25 20:05 ` kbuild test robot
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=56F546D5.5090107@fb.com \
--to=axboe@fb.com \
--cc=JBottomley@Odin.com \
--cc=adrian.hunter@intel.com \
--cc=akpm@linux-foundation.org \
--cc=baolin.wang@linaro.org \
--cc=broonie@kernel.org \
--cc=chuanxiao.dong@intel.com \
--cc=dan.j.williams@intel.com \
--cc=david@protonic.nl \
--cc=dianders@chromium.org \
--cc=fabf@skynet.be \
--cc=grundler@chromium.org \
--cc=heiko@sntech.de \
--cc=jonathanh@nvidia.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=lporzio@micron.com \
--cc=mingo@redhat.com \
--cc=rabin.vincent@axis.com \
--cc=rostedt@goodmis.org \
--cc=shawn.lin@rock-chips.com \
--cc=takahiro.akashi@linaro.org \
--cc=ulf.hansson@linaro.org \
--cc=yangbo.lu@freescale.com \
--cc=yunpeng.gao@intel.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