__dynamic_array() of 1 in blktrace?

From: Steven Rostedt
Date: Fri Jul 01 2022 - 12:24:07 EST


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