<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/scsi/scsi_trace.c, branch linux-4.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-01-23T07:18:41Z</updated>
<entry>
<title>scsi: core: scsi_trace: Use get_unaligned_be*()</title>
<updated>2020-01-23T07:18:41Z</updated>
<author>
<name>Bart Van Assche</name>
</author>
<published>2019-11-01T21:14:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6f6007cfb429f381215ef04660dc66f4932cb790'/>
<id>urn:sha1:6f6007cfb429f381215ef04660dc66f4932cb790</id>
<content type='text'>
commit b1335f5b0486f61fb66b123b40f8e7a98e49605d upstream.

This patch fixes an unintended sign extension on left shifts. From Colin
King: "Shifting a u8 left will cause the value to be promoted to an
integer. If the top bit of the u8 is set then the following conversion to
an u64 will sign extend the value causing the upper 32 bits to be set in
the result."

Fix this by using get_unaligned_be*() instead.

Fixes: bf8162354233 ("[SCSI] add scsi trace core functions and put trace points")
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Hannes Reinecke &lt;hare@suse.com&gt;
Cc: Douglas Gilbert &lt;dgilbert@interlog.com&gt;
Link: https://lore.kernel.org/r/20191101211447.187151-1-bvanassche@acm.org
Reported-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Bart Van Assche &lt;bvanassche@acm.org&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>scsi: tracing: Fix handling of TRANSFER LENGTH == 0 for READ(6) and WRITE(6)</title>
<updated>2020-01-04T12:34:28Z</updated>
<author>
<name>Bart Van Assche</name>
</author>
<published>2019-11-05T21:55:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=37c20c9721fbee51b68c0c072e6f7492eb83dcb9'/>
<id>urn:sha1:37c20c9721fbee51b68c0c072e6f7492eb83dcb9</id>
<content type='text'>
[ Upstream commit f6b8540f40201bff91062dd64db8e29e4ddaaa9d ]

According to SBC-2 a TRANSFER LENGTH field of zero means that 256 logical
blocks must be transferred. Make the SCSI tracing code follow SBC-2.

Fixes: bf8162354233 ("[SCSI] add scsi trace core functions and put trace points")
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Hannes Reinecke &lt;hare@suse.com&gt;
Cc: Douglas Gilbert &lt;dgilbert@interlog.com&gt;
Link: https://lore.kernel.org/r/20191105215553.185018-1-bvanassche@acm.org
Signed-off-by: Bart Van Assche &lt;bvanassche@acm.org&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>scsi: print single-character strings with seq_putc</title>
<updated>2015-02-02T17:57:46Z</updated>
<author>
<name>Rasmus Villemoes</name>
</author>
<published>2014-12-02T23:10:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f50332ff2574130903356e800913c1a73cc6c1dc'/>
<id>urn:sha1:f50332ff2574130903356e800913c1a73cc6c1dc</id>
<content type='text'>
Using seq_putc to print a single character saves at least a strlen()
call and a memory access, and may also give a small .text reduction.

Signed-off-by: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Reviewed-by: Finn Thain &lt;fthain@telegraphics.com.au&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>scsi: replace seq_printf with seq_puts</title>
<updated>2015-02-02T17:57:45Z</updated>
<author>
<name>Rasmus Villemoes</name>
</author>
<published>2014-12-02T23:10:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=91c40f24faadd977ee9209fee6a760e72a50d19c'/>
<id>urn:sha1:91c40f24faadd977ee9209fee6a760e72a50d19c</id>
<content type='text'>
Using seq_printf to print a simple string is a lot more expensive than
it needs to be, since seq_puts exists. Replace seq_printf with
seq_puts when possible.

Signed-off-by: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Reviewed-by: Finn Thain &lt;fthain@telegraphics.com.au&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>scsi: rename SERVICE_ACTION_IN to SERVICE_ACTION_IN_16</title>
<updated>2014-11-24T19:01:40Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2014-11-17T13:25:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eb846d9f147455e4e5e1863bfb5e31974bb69b7c'/>
<id>urn:sha1:eb846d9f147455e4e5e1863bfb5e31974bb69b7c</id>
<content type='text'>
SPC-3 defines SERVICE ACTION IN(12) and SERVICE ACTION IN(16).
So rename SERVICE_ACTION_IN to SERVICE_ACTION_IN_16 to be
consistent with SPC and to allow for better distinction.

Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Tested-by: Robert Elliott &lt;elliott@hp.com&gt;
Reviewed-by: Robert Elliott &lt;elliott@hp.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>tracing: Add trace_seq_buffer_ptr() helper function</title>
<updated>2014-07-01T11:13:39Z</updated>
<author>
<name>Steven Rostedt (Red Hat)</name>
</author>
<published>2014-06-26T13:42:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7b039cb4c5a90d8ea576b17e096f7334457aeb57'/>
<id>urn:sha1:7b039cb4c5a90d8ea576b17e096f7334457aeb57</id>
<content type='text'>
There's several locations in the kernel that open code the calculation
of the next location in the trace_seq buffer. This is usually done with

  p-&gt;buffer + p-&gt;len

Instead of having this open coded, supply a helper function in the
header to do it for them. This function is called trace_seq_buffer_ptr().

Link: http://lkml.kernel.org/p/20140626220129.452783019@goodmis.org

Acked-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi_trace: Decode UNMAP bit in WRITE SAME(10)</title>
<updated>2011-05-24T16:38:36Z</updated>
<author>
<name>Martin K. Petersen</name>
</author>
<published>2011-05-18T04:46:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c498bf1a1bd4e4a9140045b747cafe6386bc59a5'/>
<id>urn:sha1:c498bf1a1bd4e4a9140045b747cafe6386bc59a5</id>
<content type='text'>
As of SBC3r26 WRITE SAME(10) supports the UNMAP bit.

Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: James Bottomley &lt;jbottomley@parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi_trace: Enhance SCSI command tracing</title>
<updated>2010-04-30T17:52:08Z</updated>
<author>
<name>Martin K. Petersen</name>
</author>
<published>2010-03-23T05:16:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c446c1f9907e84d014edb0bf3501f30cb512e06a'/>
<id>urn:sha1:c446c1f9907e84d014edb0bf3501f30cb512e06a</id>
<content type='text'>
Various SCSI trace enhancements:

 - Display data and protection information scatterlist lengths in the
   trace output

 - Add support for VERIFY and WRITE SAME commands and decode the UNMAP
   bit if applicable

 - Add decoding of the PROTECT field for READ/VERIFY/WRITE/WRITE SAME
   commands as well as the EXPECTED INITIAL REFERENCE TAG field for
   their 32-byte variants

 - Decode READ CAPACITY(16), GET LBA STATUS, and UNMAP

Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
<entry>
<title>[SCSI] add scsi trace core functions and put trace points</title>
<updated>2010-04-30T17:51:10Z</updated>
<author>
<name>Kei Tokunaga</name>
</author>
<published>2010-04-01T11:41:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bf81623542332bc2cedf3db49cbb2edb724780d2'/>
<id>urn:sha1:bf81623542332bc2cedf3db49cbb2edb724780d2</id>
<content type='text'>
Signed-off-by: Xiao Guangrong &lt;xiaoguangrong@cn.fujitsu.com&gt;
Signed-off-by: Tomohiro Kusumi &lt;kusumi.tomohiro@jp.fujitsu.com&gt;
Signed-off-by: Kei Tokunaga &lt;tokunaga.keiich@jp.fujitsu.com&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
</feed>
