projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ifdefs to net probe to support Linux 2.6.39
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
block.h
diff --git
a/instrumentation/events/lttng-module/block.h
b/instrumentation/events/lttng-module/block.h
index 1d5531c974fae249b0ecd382c7fc7c745667323e..42184f3d1e715555aa4eed32c30b27359949372c 100644
(file)
--- a/
instrumentation/events/lttng-module/block.h
+++ b/
instrumentation/events/lttng-module/block.h
@@
-58,7
+58,9
@@
DECLARE_EVENT_CLASS(block_rq_with_error,
__field( unsigned int, nr_sector )
__field( int, errors )
__field( unsigned int, rwbs )
__field( unsigned int, nr_sector )
__field( int, errors )
__field( unsigned int, rwbs )
- __dynamic_array_text( char, cmd, blk_cmd_buf_len(rq) )
+ __dynamic_array_hex( unsigned char, cmd,
+ (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
+ rq->cmd_len : 0)
),
TP_fast_assign(
),
TP_fast_assign(
@@
-69,7
+71,8
@@
DECLARE_EVENT_CLASS(block_rq_with_error,
0 : blk_rq_sectors(rq))
tp_assign(errors, rq->errors)
blk_fill_rwbs(rwbs, rq->cmd_flags, blk_rq_bytes(rq))
0 : blk_rq_sectors(rq))
tp_assign(errors, rq->errors)
blk_fill_rwbs(rwbs, rq->cmd_flags, blk_rq_bytes(rq))
- tp_memcpy_dyn(cmd, rq->cmd)
+ tp_memcpy_dyn(cmd, (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
+ rq->cmd : NULL);
),
TP_printk("%d,%d %s (%s) %llu + %u [%d]",
),
TP_printk("%d,%d %s (%s) %llu + %u [%d]",
@@
-145,7
+148,9
@@
DECLARE_EVENT_CLASS(block_rq,
__field( unsigned int, bytes )
__field( unsigned int, rwbs )
__array_text( char, comm, TASK_COMM_LEN )
__field( unsigned int, bytes )
__field( unsigned int, rwbs )
__array_text( char, comm, TASK_COMM_LEN )
- __dynamic_array_text( char, cmd, blk_cmd_buf_len(rq) )
+ __dynamic_array_hex( unsigned char, cmd,
+ (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
+ rq->cmd_len : 0)
),
TP_fast_assign(
),
TP_fast_assign(
@@
-157,7
+162,8
@@
DECLARE_EVENT_CLASS(block_rq,
tp_assign(bytes, (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
blk_rq_bytes(rq) : 0)
blk_fill_rwbs(rwbs, rq->cmd_flags, blk_rq_bytes(rq))
tp_assign(bytes, (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
blk_rq_bytes(rq) : 0)
blk_fill_rwbs(rwbs, rq->cmd_flags, blk_rq_bytes(rq))
- tp_memcpy_dyn(cmd, rq->cmd)
+ tp_memcpy_dyn(cmd, (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
+ rq->cmd : NULL);
tp_memcpy(comm, current->comm, TASK_COMM_LEN)
),
tp_memcpy(comm, current->comm, TASK_COMM_LEN)
),
This page took
0.031934 seconds
and
4
git commands to generate.