From: Li Zefan Date: Thu, 16 Jul 2009 02:54:02 +0000 (+0800) Subject: tracing/events: record the size of dynamic arrays X-Git-Tag: v2.6.32-rc1~718^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d536cb3fb9993bdcd5a2fbaa6b0670ded4e101c;p=pandora-kernel.git tracing/events: record the size of dynamic arrays When a dynamic array is defined, we add __data_loc_foo in trace_entry to record the offset of the array, but the size of the array is not recorded, which causes 2 problems: - the event filter just compares the first 2 chars of the strings. - parsers can't parse dynamic arrays. So we encode the size of each dynamic array in the higher 16 bits of __data_loc_foo, while the offset is in lower 16 bits. Signed-off-by: Li Zefan LKML-Reference: <4A5E964A.9000403@cn.fujitsu.com> Acked-by: Frederic Weisbecker Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed