Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1373045
| Path | csiph.com!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Baolin Wang <baolin.wang@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mmc: Remove some redundant debug prints |
| Date | Thu, 07 Apr 2016 05:20:01 +0200 |
| Message-ID | <rl8E9-5Yo-3@gated-at.bofh.it> (permalink) |
| References | <rkTYv-387-39@gated-at.bofh.it> <rkUrx-3zX-13@gated-at.bofh.it> <rl7f4-4BO-5@gated-at.bofh.it> |
| X-Original-To | Jaehoon Chung <jh80.chung@samsung.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=QS+C7Ukt4sQMAFOH8J3OqQaFI97qLV+51a1iIr0R8x0=; b=GM1XpOulX0+n3G2bzT/zlQyNsoJgjKx5TJ0Ub0aH7tbmJ5KEYH5QxDobKx0vTiYyr0 vcUGEyBI2JHBig581Fs1DPuHPXUi6dad3HhhJU3s57t4tZj5FjStZKMrORgbq7BL8/TO nUUpXuwBfJaf7tmvnbPAphadFS0MOZPTXY/7g= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=QS+C7Ukt4sQMAFOH8J3OqQaFI97qLV+51a1iIr0R8x0=; b=WxCqgzaPxlSSX3nrXWWyN4SaCEZ0FHl963ewsUArtTHkA0MavAOrfeHF84Au0FagcS 3q4QM5JCjjDg4O98Fqx0HdxCAjrCrDBmx4vTeng5oXc8E8+L4jkByGtZRky5Rbl0KoAH UeA/jOOCN/pB0Zy0rhvIOsJZ96cXCDYeHmkA6QSksGxbZPBkQ4xBlpPWQ3IiXqeiyn2Y ma/fgHsUAMav/QcpyLlVcj//+UVS4h7baV9E7SnDSe0HIP9gGCWZ6aNITg+eCovqQYQj DwnmXiLcQycZajIePUdz/pcmxxYYKdz1TbmpxIko2SDzMIgSxu+OeRJF/z3VbrKrx2Gh CHjQ== |
| X-Gm-Message-State | AD7BkJIx2IXI+KYb2520+w8KuCCg3we6It15tDviQOKNWPD2Rdd9IRh/YbH7YCxBLheCewWHRDvFSsyCQ2Y0cZSJ |
| MIME-Version | 1.0 |
| X-Received | by 10.129.75.138 with SMTP id y132mr376406ywa.32.1459998942538; Wed, 06 Apr 2016 20:15:42 -0700 (PDT) |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 115 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Jisheng Zhang <jszhang@marvell.com>, Ulf Hansson <ulf.hansson@linaro.org>, Adrian Hunter <adrian.hunter@intel.com>, rmk+kernel@arm.linux.org.uk, Shawn Lin <shawn.lin@rock-chips.com>, Douglas Anderson <dianders@chromium.org>, David Jander <david@protonic.nl>, Mark Brown <broonie@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Takahiro Akashi <takahiro.akashi@linaro.org>, LKML <linux-kernel@vger.kernel.org>, linux-mmc <linux-mmc@vger.kernel.org> |
| X-Original-Date | Thu, 7 Apr 2016 11:15:42 +0800 |
| X-Original-Message-ID | <CAMz4kuKNA54v7tGM=zWE5h4J6Gwfzay8sqFEXpmooU8MVjWY3A@mail.gmail.com> |
| X-Original-References | <5cddc2f870eccf8cf50d463c72d2908dad9e1017.1459942344.git.baolin.wang@linaro.org> <20160406195732.67430c96@xhacker> <5705BA9A.6050300@samsung.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1373045 |
Show key headers only | View raw
On 7 April 2016 at 09:40, Jaehoon Chung <jh80.chung@samsung.com> wrote:
> On 04/06/2016 08:57 PM, Jisheng Zhang wrote:
>>
>>
>> On Wed, 6 Apr 2016 19:38:30 +0800 Baolin Wang wrote:
>>
>>> This patch removes some redundant debug prints, since we have added some
>>> tracepoints to help with performance analysis of MMC subsystem.
>>
>> I think the debug prints you removed are useful for debugging mmc err, how is
>> this purpose achieved by tracepoints? From another side, why should I enable
>> tracepoints to debug mmc err?
>
> I agreed Jisheng's opinion. tracepoint is helpful for analyzing performance and debugging something.
> But I think it's more easier to check the mmc error at booting time or some time.
OK. Sounds reasonable.
>
> Best Regards,
> Jaehoon Chung
>
>>
>> Thanks
>>
>>>
>>> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
>>> ---
>>> drivers/mmc/core/core.c | 52 -----------------------------------------------
>>> 1 file changed, 52 deletions(-)
>>>
>>> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
>>> index f80b3ab..3f1362a 100644
>>> --- a/drivers/mmc/core/core.c
>>> +++ b/drivers/mmc/core/core.c
>>> @@ -157,33 +157,6 @@ void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq)
>>>
>>> led_trigger_event(host->led, LED_OFF);
>>>
>>> - if (mrq->sbc) {
>>> - pr_debug("%s: req done <CMD%u>: %d: %08x %08x %08x %08x\n",
>>> - mmc_hostname(host), mrq->sbc->opcode,
>>> - mrq->sbc->error,
>>> - mrq->sbc->resp[0], mrq->sbc->resp[1],
>>> - mrq->sbc->resp[2], mrq->sbc->resp[3]);
>>> - }
>>> -
>>> - pr_debug("%s: req done (CMD%u): %d: %08x %08x %08x %08x\n",
>>> - mmc_hostname(host), cmd->opcode, err,
>>> - cmd->resp[0], cmd->resp[1],
>>> - cmd->resp[2], cmd->resp[3]);
>>> -
>>> - if (mrq->data) {
>>> - pr_debug("%s: %d bytes transferred: %d\n",
>>> - mmc_hostname(host),
>>> - mrq->data->bytes_xfered, mrq->data->error);
>>> - }
>>> -
>>> - if (mrq->stop) {
>>> - pr_debug("%s: (CMD%u): %d: %08x %08x %08x %08x\n",
>>> - mmc_hostname(host), mrq->stop->opcode,
>>> - mrq->stop->error,
>>> - mrq->stop->resp[0], mrq->stop->resp[1],
>>> - mrq->stop->resp[2], mrq->stop->resp[3]);
>>> - }
>>> -
>>> if (mrq->done)
>>> mrq->done(mrq);
>>> }
>>> @@ -236,31 +209,6 @@ static int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
>>> if (mmc_card_removed(host->card))
>>> return -ENOMEDIUM;
>>>
>>> - if (mrq->sbc) {
>>> - pr_debug("<%s: starting CMD%u arg %08x flags %08x>\n",
>>> - mmc_hostname(host), mrq->sbc->opcode,
>>> - mrq->sbc->arg, mrq->sbc->flags);
>>> - }
>>> -
>>> - pr_debug("%s: starting CMD%u arg %08x flags %08x\n",
>>> - mmc_hostname(host), mrq->cmd->opcode,
>>> - mrq->cmd->arg, mrq->cmd->flags);
>>> -
>>> - if (mrq->data) {
>>> - pr_debug("%s: blksz %d blocks %d flags %08x "
>>> - "tsac %d ms nsac %d\n",
>>> - mmc_hostname(host), mrq->data->blksz,
>>> - mrq->data->blocks, mrq->data->flags,
>>> - mrq->data->timeout_ns / 1000000,
>>> - mrq->data->timeout_clks);
>>> - }
>>> -
>>> - if (mrq->stop) {
>>> - pr_debug("%s: CMD%u arg %08x flags %08x\n",
>>> - mmc_hostname(host), mrq->stop->opcode,
>>> - mrq->stop->arg, mrq->stop->flags);
>>> - }
>>> -
>>> WARN_ON(!host->claimed);
>>>
>>> mrq->cmd->error = 0;
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>>
>
--
Baolin.wang
Best Regards
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] mmc: Remove some redundant debug prints Baolin Wang <baolin.wang@linaro.org> - 2016-04-06 13:40 +0200
Re: [PATCH] mmc: Remove some redundant debug prints Jisheng Zhang <jszhang@marvell.com> - 2016-04-06 14:10 +0200
Re: [PATCH] mmc: Remove some redundant debug prints Jaehoon Chung <jh80.chung@samsung.com> - 2016-04-07 03:50 +0200
Re: [PATCH] mmc: Remove some redundant debug prints Baolin Wang <baolin.wang@linaro.org> - 2016-04-07 05:20 +0200
Re: [PATCH] mmc: Remove some redundant debug prints Baolin Wang <baolin.wang@linaro.org> - 2016-04-07 05:20 +0200
csiph-web