All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Hans de Goede <hdegoede@redhat.com>
Cc: SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: Logging of all scsi commands to a certain target?
Date: Sun, 24 Aug 2014 14:08:49 -0700	[thread overview]
Message-ID: <20140824210849.GA29246@infradead.org> (raw)
In-Reply-To: <53F8AB3F.50901@redhat.com>

On Sat, Aug 23, 2014 at 04:54:55PM +0200, Hans de Goede wrote:
> Hi,
> 
> Now that the UAS driver is no longer marked as CONFIG_BROKEN,
> I'm getting quite a few bug reports about issues with UAS drives.
> 
> Some of these seem to be related to the scsi core and/or the sd
> driver sending a command the device does not like.
> 
> As such I'm wondering if there us a way to get the kernel
> to log each scsi command ? Or at least is there a helper
> function to log scsi commands which I can add to the uas driver
> (under a verbose option) to allow this ?

Enable the scsi_dispatch_cmd_start tracepoint using trace-cmd or
debugfs, and filter using host_no/channel/id/lun for your specific
device.  See Documentation/trace/events.txt for details on setting
up filters.


      parent reply	other threads:[~2014-08-24 21:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-23 14:54 Logging of all scsi commands to a certain target? Hans de Goede
2014-08-23 15:48 ` Douglas Gilbert
2014-08-24 21:08 ` Christoph Hellwig [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=20140824210849.GA29246@infradead.org \
    --to=hch@infradead.org \
    --cc=hdegoede@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.