<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/block/blktrace.c, branch linux-2.6.28.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2008-10-09T06:56:20+00:00</updated>
<entry>
<title>blktrace: use BLKTRACE_BDEV_SIZE as the name size for setup structure</title>
<updated>2008-10-09T06:56:20+00:00</updated>
<author>
<name>Jens Axboe</name>
<email>jens.axboe@oracle.com</email>
</author>
<published>2008-10-01T14:16:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0497b345e7d067109e0dd9bf9f4978a6847ee13b'/>
<id>urn:sha1:0497b345e7d067109e0dd9bf9f4978a6847ee13b</id>
<content type='text'>
Define as 32, which is is what BDEVNAME_SIZE is/was as well. This keeps
the user interface the same and gets rid of the difference between
kernel and user api here.

Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>blktrace: simplify flags handling in __blk_add_trace</title>
<updated>2008-10-09T06:56:01+00:00</updated>
<author>
<name>David Woodhouse</name>
<email>David.Woodhouse@intel.com</email>
</author>
<published>2008-08-10T11:33:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=35ba8f7083e87602b695d6eaca38a6464d5b74db'/>
<id>urn:sha1:35ba8f7083e87602b695d6eaca38a6464d5b74db</id>
<content type='text'>
Let the compiler see what's going on, and it can all get a lot simpler.
On PPC64 this reduces the size of the code calculating these bits by
about 60%. On x86_64 it's less of a win -- only 40%.

Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>blktrace: support discard requests</title>
<updated>2008-10-09T06:56:01+00:00</updated>
<author>
<name>David Woodhouse</name>
<email>David.Woodhouse@intel.com</email>
</author>
<published>2008-08-10T10:21:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=27b29e86bf3d4b3cf6641a0efd78ed11a9b633b2'/>
<id>urn:sha1:27b29e86bf3d4b3cf6641a0efd78ed11a9b633b2</id>
<content type='text'>
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>Added in user-injected messages into blk traces</title>
<updated>2008-07-03T11:21:12+00:00</updated>
<author>
<name>Alan D. Brunelle</name>
<email>Alan.Brunelle@hp.com</email>
</author>
<published>2008-06-11T07:12:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=02c62304e6af60f1963695c6bc1bbffe619aa585'/>
<id>urn:sha1:02c62304e6af60f1963695c6bc1bbffe619aa585</id>
<content type='text'>
This allows a user to annotate the blk trace stream: writing a suitable
message to {/sys/kernel/debug}/block/&lt;dsf&gt;/msg will have it propagated
into the trace stream.

Signed-off-by: Alan D. Brunelle &lt;alan.brunelle@hp.com&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>block: disable IRQs until data is written to relay channel</title>
<updated>2008-06-12T18:20:57+00:00</updated>
<author>
<name>Carl Henrik Lunde</name>
<email>chlunde@ping.uio.no</email>
</author>
<published>2008-06-12T18:13:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=14a73f54798f39854e521fb596da7d50b7566bbd'/>
<id>urn:sha1:14a73f54798f39854e521fb596da7d50b7566bbd</id>
<content type='text'>
As we may run relay_reserve from interrupt context we must always disable
IRQs.  This is because a call to relay_reserve may expose previously written
data to use space.

Updated new message code and an old but related comment.

Signed-off-by: Carl Henrik Lunde &lt;chlunde@ping.uio.no&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>block: make blktrace use per-cpu buffers for message notes</title>
<updated>2008-05-28T12:49:27+00:00</updated>
<author>
<name>Jens Axboe</name>
<email>jens.axboe@oracle.com</email>
</author>
<published>2008-05-28T12:45:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=64565911cdb57c2f512a9715b985b5617402cc67'/>
<id>urn:sha1:64565911cdb57c2f512a9715b985b5617402cc67</id>
<content type='text'>
Currently it uses a single static char array, but that risks
being corrupted when multiple users issue message notes at the
same time. Make the buffers dynamically allocated when the trace
is setup and make them per-cpu instead.

The default max message size of 1k is also very large, the
interface is mainly for small text notes. So shrink it to 128 bytes.

Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>Added in MESSAGE notes for blktraces</title>
<updated>2008-05-28T12:49:27+00:00</updated>
<author>
<name>Alan D. Brunelle</name>
<email>Alan.Brunelle@hp.com</email>
</author>
<published>2008-05-27T12:54:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9d5f09a424a67ddb959829894efb4c71cbf6d600'/>
<id>urn:sha1:9d5f09a424a67ddb959829894efb4c71cbf6d600</id>
<content type='text'>
Allows messages to be inserted into blktrace streams.

Signed-off-by: Alan D. Brunelle &lt;alan.brunelle@hp.com&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>Fix misuses of bdevname()</title>
<updated>2008-05-13T15:02:26+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2008-05-12T21:02:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f36f21ecca9ee688301174e5f2e0827827a7a7ff'/>
<id>urn:sha1:f36f21ecca9ee688301174e5f2e0827827a7a7ff</id>
<content type='text'>
bdevname() fills the buffer that it is given as a parameter, so calling
strcpy() or snprintf() on the returned value is redundant (and probably not
guaranteed to work - I don't think strcpy and snprintf support overlapping
buffers.)

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: Stephen Tweedie &lt;sct@redhat.com&gt;
Cc: Jens Axboe &lt;axboe@kernel.dk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>blktrace: Add blktrace ioctls to SCSI generic devices</title>
<updated>2008-01-28T09:04:46+00:00</updated>
<author>
<name>Christof Schmitt</name>
<email>christof.schmitt@de.ibm.com</email>
</author>
<published>2008-01-11T09:09:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6da127ad0918f93ea93678dad62ce15ffed18797'/>
<id>urn:sha1:6da127ad0918f93ea93678dad62ce15ffed18797</id>
<content type='text'>
Since the SCSI layer uses the request queues from the block layer, blktrace can
also be used to trace the requests to all SCSI devices (like SCSI tape drives),
not only disks. The only missing part is the ioctl interface to start and stop
tracing.

This patch adds the SETUP, START, STOP and TEARDOWN ioctls from blktrace to the
sg device files. With this change, blktrace can be used for SCSI devices like
for disks, e.g.: blktrace -d /dev/sg1 -o - | blkparse -i -

Signed-off-by: Christof Schmitt &lt;christof.schmitt@de.ibm.com&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>blktrace: kill the unneeded initcall</title>
<updated>2008-01-11T12:37:01+00:00</updated>
<author>
<name>Jens Axboe</name>
<email>jens.axboe@oracle.com</email>
</author>
<published>2008-01-11T12:37:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=11a57153e3377ffdf8cfca2eda9a99063f66b957'/>
<id>urn:sha1:11a57153e3377ffdf8cfca2eda9a99063f66b957</id>
<content type='text'>
It just inits the mutex, we can do that with DEFINE_MUTEX() instead.

Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
</feed>
