Messages in this thread | | | Date | Fri, 1 Jul 2022 12:24:00 -0400 | From | Steven Rostedt <> | Subject | __dynamic_array() of 1 in blktrace? |
| |
Hi,
I'm adding a __vstring() to remove all the open coded vsprintf() calls in events, and came across several of theses in include/trace/events/block:
__dynamic_array( char, cmd, 1)
[..]
__get_str(cmd)[0] = '\0';
Is this to keep backward compatibility with user space?
does it need to be a dynamic array?
-- Steve
| |