[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAADnVQJnkTYXZhmEg50HOwN3FP2S6uK_TRJD+oUP7V=OzAn30Q@mail.gmail.com>
Date: Sat, 4 Dec 2021 08:45:45 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Yafang Shao <laoar.shao@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Steven Rostedt <rostedt@...dmis.org>,
Kees Cook <keescook@...omium.org>,
Petr Mladek <pmladek@...e.com>, david@...hat.com,
Arnaldo Carvalho de Melo <arnaldo.melo@...il.com>,
Andrii Nakryiko <andrii.nakryiko@...il.com>,
linux-mm <linux-mm@...ck.org>, bpf <bpf@...r.kernel.org>,
linux-perf-users@...r.kernel.org,
Linux-Fsdevel <linux-fsdevel@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Michal Miroslaw <mirq-linux@...e.qmqm.pl>,
Peter Zijlstra <peterz@...radead.org>,
Matthew Wilcox <willy@...radead.org>,
Al Viro <viro@...iv.linux.org.uk>
Subject: Re: [PATCH -mm 3/5] samples/bpf/tracex2: replace hard-coded 16 with TASK_COMM_LEN
On Sat, Dec 4, 2021 at 1:53 AM Yafang Shao <laoar.shao@...il.com> wrote:
> diff --git a/samples/bpf/tracex2_user.c b/samples/bpf/tracex2_user.c
> index 1626d51dfffd..b728a946d83d 100644
> --- a/samples/bpf/tracex2_user.c
> +++ b/samples/bpf/tracex2_user.c
> @@ -12,6 +12,7 @@
>
> #define MAX_INDEX 64
> #define MAX_STARS 38
> +#define TASK_COMM_LEN 16
>
> /* my_map, my_hist_map */
> static int map_fd[2];
> @@ -28,7 +29,7 @@ static void stars(char *str, long val, long max, int width)
> }
>
> struct task {
> - char comm[16];
> + char comm[TASK_COMM_LEN];
Also Nack.
Powered by blists - more mailing lists