Fix: incorrect rwbs field type in block_bio_queue
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 5 May 2014 14:32:44 +0000 (10:32 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 5 May 2014 14:41:44 +0000 (10:41 -0400)
commitdccb4f4aca9a8504618934dde7df13570ec06ee8
tree1060a76ea0181f17fa3d45f674e5cc56da3d96cc
parent4d05fa52af60a6ca88f32c45a1cb7069f105492d
Fix: incorrect rwbs field type in block_bio_queue

Within lttng-modules instrumentation starting from kernel 3.9.0, the
block_bio_queue instrumentation has incorrect rwbs field type, and does
not print "comm" as an array of text.

The result is that we are writing values to what we believe to be an
"unsigned int", which is actually described as an array of RWBS_LEN byte
(8 bytes). This discrepancy between type description and the actual
tp_assign() incrementing the write offset leads to what appears as
corruption of the following "comm" field in the trace viewer output: the
viewer will skip the first bytes of the "comm" field, erroneously
thinking they belong the the previous "rwbs" field.

Fixes #794

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/block.h
This page took 0.025526 seconds and 4 git commands to generate.