libtraceevent: Be able to handle some sizeof() calls
Parse sizeof() for known types as well as fields.
sizeof(int) is 4
sizeof(unsigned int) is 4
sizeof(long) is tep->long_size
sizeof(unsigned long) is tep->long_size
sizeof(long long) is 8
sizeof(unsigned long long) is 8
sizeof(REC->foo) is the field "foo" size value.
This will now parse the sample events of trace_events in the kernel.
Link: https://lore.kernel.org/linux-trace-devel/20221213233645.04fc15ed@gandalf.local.home
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 file changed