Re: [PATCH v2 7/7] tools/testing/selftests/bpf: replace open-coded 16 with TASK_COMM_LEN

From
Steven Rostedt <rostedt@goodmis.org>
Date
2023-02-12 03:45:18
Also in
bpf, linux-fsdevel, linux-mm, linux-perf-users, lkml
Reply to
Yafang Shao, 2023-02-12
On Sun, 12 Feb 2023 11:38:52 +0800
Yafang Shao [off-list ref] wrote:
quoted
Actually, there are cases that this needs to be a number, as b3bc8547d3be6
("tracing: Have TRACE_DEFINE_ENUM affect trace event types as well") made
it update fields as well as the printk fmt.
 
It seems that TRACE_DEFINE_ENUM(TASK_COMM_LEN) in the trace events
header files would be a better fix.
NACK! I much prefer the proper fix that adds the length.

-- Steve
Thread (29 messages) 29 messages, 8 authors, last reply 2023-02-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help