[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220701122400.5a0f367e@gandalf.local.home>
Date: Fri, 1 Jul 2022 12:24:00 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Christoph Hellwig <hch@....de>
Cc: Jens Axboe <axboe@...com>, LKML <linux-kernel@...r.kernel.org>
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
Powered by blists - more mailing lists