[RFC PATCH v5 1/3] tracing/events: Fix wrong sample output by storing array length instead of size

2015-07-13 Thread He Kuang
The output result of trace_foo_bar event in traceevent samples is wrong. This problem can be reproduced as following: (Build kernel with SAMPLE_TRACE_EVENTS=m) $ insmod trace-events-sample.ko $ echo 1 > /sys/kernel/debug/tracing/events/sample-trace/foo_bar/enable $ cat

[RFC PATCH v5 1/3] tracing/events: Fix wrong sample output by storing array length instead of size

2015-07-13 Thread He Kuang
The output result of trace_foo_bar event in traceevent samples is wrong. This problem can be reproduced as following: (Build kernel with SAMPLE_TRACE_EVENTS=m) $ insmod trace-events-sample.ko $ echo 1 /sys/kernel/debug/tracing/events/sample-trace/foo_bar/enable $ cat