From: Jonathan Nell <crtrn13@gmail.com>
To: linux-scsi@vger.kernel.org
Subject: Re: scsi traffic sniffing
Date: Wed, 2 Sep 2009 07:20:28 +0300 [thread overview]
Message-ID: <48e952f40909012120y1d56bb6bha18330fa3266ed64@mail.gmail.com> (raw)
In-Reply-To: <d364733c0909012012s1c75434au6a2230e07af4241c@mail.gmail.com>
2009/9/2 谢纲 <xiegang112@gmail.com>:
> On Tue, Sep 1, 2009 at 6:40 PM, 谢纲<xiegang112@gmail.com> wrote:
>> On Tue, Sep 1, 2009 at 2:13 PM, Jonathan Nell<crtrn13@gmail.com> wrote:
>>> Is there any way to sniff the traffic of a scsi device? I need to
>>> debug a firmware update and need to see the traffic being passed to
>>> the drive
>> You may hook the queue_command function of the scsi host. It can sniff
>> all scsi request to scsi host driver.
>> Thanks,
>
> I developed a tool to dump all the SCSI cmds to SCSI device. The idea
> is, every SCSI host controller driver should give the queue_command
> fucntion. This is the entrance for SCSI request to SCSI host
> controller driver. I replace this function with my own dump methord
> and after dump, I restore this function.
>
> I do't know if it's what you need.
That would be great! Could you send the code to me? How does your tool
hook into queue_command?
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-09-02 4:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <48e952f40908312312w7765c2a1q3a4f022967735288@mail.gmail.com>
[not found] ` <48e952f40908312313u75e4d00cr3d934f1dbdd1cca9@mail.gmail.com>
2009-09-01 6:13 ` scsi traffic sniffing Jonathan Nell
2009-09-01 10:40 ` 谢纲
2009-09-01 11:19 ` Stefan Richter
2009-09-02 3:12 ` 谢纲
2009-09-02 4:20 ` Jonathan Nell [this message]
2009-09-02 4:49 ` 谢纲
2009-09-02 6:48 ` Jonathan Nell
2009-09-02 7:21 ` Xie Gang
2009-09-02 7:50 ` Jonathan Nell
2009-09-02 8:03 ` Xie Gang
2009-09-02 12:05 ` Jonathan Nell
2009-09-01 16:06 ` Grant Grundler
[not found] ` <48e952f40909010917n7590d364sc4a16317d5e7fb0a@mail.gmail.com>
2009-09-01 16:48 ` Grant Grundler
2009-09-01 16:57 ` Ric Wheeler
2009-09-01 17:13 ` Bart Van Assche
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=48e952f40909012120y1d56bb6bha18330fa3266ed64@mail.gmail.com \
--to=crtrn13@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox