* [Patch] blkparse: add hint for discarded drv_data traces
@ 2008-10-17 13:06 Martin Peschke
2008-10-17 13:08 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Martin Peschke @ 2008-10-17 13:06 UTC (permalink / raw)
To: linux-btrace
From: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Display an informational message on blkparse exit to notify users that
additional data was available which would require to be dumped to binary
output.
Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
---
blkparse.c | 7 +++++++
1 file changed, 7 insertions(+)
--- a/blkparse.c
+++ b/blkparse.c
@@ -292,6 +292,8 @@ static volatile int done;
struct timespec abs_start_time;
static unsigned long long start_timestamp;
+static int have_drv_data = 0;
+
#define JHASH_RANDOM (0x3af5f2ee)
#define CPUS_PER_LONG (8 * sizeof(unsigned long))
@@ -1584,6 +1586,7 @@ static void dump_trace_fs(struct blk_io_
log_generic(pci, t, "A");
break;
case __BLK_TA_DRV_DATA:
+ have_drv_data = 1;
/* dump to binary file only */
break;
default:
@@ -2844,6 +2847,10 @@ int main(int argc, char *argv[])
if (!ret)
show_stats();
+ if (have_drv_data && !dump_binary)
+ printf("\ndiscarded traces containing low-level device driver "
+ "specific data (only available in binary output)\n");
+
if (ofp_buffer) {
fflush(ofp);
free(ofp_buffer);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch] blkparse: add hint for discarded drv_data traces
2008-10-17 13:06 [Patch] blkparse: add hint for discarded drv_data traces Martin Peschke
@ 2008-10-17 13:08 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2008-10-17 13:08 UTC (permalink / raw)
To: linux-btrace
On Fri, Oct 17 2008, Martin Peschke wrote:
> From: Martin Peschke <mpeschke@linux.vnet.ibm.com>
>
> Display an informational message on blkparse exit to notify users that
> additional data was available which would require to be dumped to binary
> output.
>
> Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Thanks, applied!
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-17 13:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-17 13:06 [Patch] blkparse: add hint for discarded drv_data traces Martin Peschke
2008-10-17 13:08 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).