Re: [PATCH v1 0/4] Add tracing for SDHCI register access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v1 0/4] Add tracing for SDHCI register access
- From: Adrian Hunter <adrian.hunter@xxxxxxxxx>
- Date: Thu, 18 Apr 2019 09:24:16 +0300
- Cc: linux-trace-devel@xxxxxxxxxxxxxxx, linux-mmc@xxxxxxxxxxxxxxx, djkurtz@xxxxxxxxxxxx, zwisler@xxxxxxxxxxxx, Ludovic Barre <ludovic.barre@xxxxxx>, Steven Rostedt <rostedt@xxxxxxxxxxx>, Jisheng Zhang <Jisheng.Zhang@xxxxxxxxxxxxx>, Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>, Faiz Abbas <faiz_abbas@xxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Oleksij Rempel <linux@xxxxxxxxxxxxxxxx>, Liming Sun <lsun@xxxxxxxxxxxx>, Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Prabu Thangamuthu <Prabu.T@xxxxxxxxxxxx>, Chunyan Zhang <chunyan.zhang@xxxxxxxxxx>, Ulf Hansson <ulf.hansson@xxxxxxxxxx>
- In-reply-to: <20190412145012.GA101407@google.com>
- Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki
- References: <20190411220822.81845-1-rrangel@chromium.org> <7b77ebcb-b42b-2d14-f5f1-b37e07b88469@intel.com> <20190412145012.GA101407@google.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
On 12/04/19 5:50 PM, Raul Rangel wrote:
> On Fri, Apr 12, 2019 at 09:26:44AM +0300, Adrian Hunter wrote:
>> On 12/04/19 1:08 AM, Raul E Rangel wrote:
>>> I was debugging a SDHC hardware bug and got tired of having to
>>> translate the register values by hand. This patch set makes it so all
>>> SDHC register read and write operations can be traced and easily read by
>>> a human.
>>
>> While this might be useful for people unfamiliar with SDHCI, I am not sure
>> it should be in the upstream kernel.
> Can you help me understand your hesitation? Would you prefer removing the
> pretty printing? Or would you prefer not having any trace events at all?
It is just cost/benefit. I am not sure the cost of maintaining it is worth
the benefit of having it upstream.
> The xhci driver has a bunch of pretty print trace events that make it
> invaluable when debugging.
> https://github.com/torvalds/linux/blob/d7563ca5bfca53398e100eb74345c5d3ef06bf9d/drivers/usb/host/xhci.h#L2160
>
>> Also, it doesn't seem ideal for every
>> driver to add its own plumbing for such a feature.
> What do you mean by every driver having to add it's own plumbing? Any
> driver that uses sdhci_readX or sdhci_writeX get the functionality for
> free.
I/O memory mappings are recorded for devices. e.g. /proc/iomem so it could
be possible to add tracing for all I/O memory accesses via readx/writex etc,
configurable / filterable by device id.
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]