[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211129110755.616133df@gandalf.local.home>
Date: Mon, 29 Nov 2021 11:07:55 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Yafang Shao <laoar.shao@...il.com>
Cc: Sven Schnelle <svens@...ux.ibm.com>,
David Hildenbrand <david@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
netdev <netdev@...r.kernel.org>, bpf <bpf@...r.kernel.org>,
"linux-perf-use." <linux-perf-users@...r.kernel.org>,
linux-fsdevel@...r.kernel.org, Linux MM <linux-mm@...ck.org>,
LKML <linux-kernel@...r.kernel.org>,
kernel test robot <oliver.sang@...el.com>,
kbuild test robot <lkp@...el.com>,
Andrii Nakryiko <andrii@...nel.org>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Arnaldo Carvalho de Melo <arnaldo.melo@...il.com>,
Andrii Nakryiko <andrii.nakryiko@...il.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>,
Kees Cook <keescook@...omium.org>,
Petr Mladek <pmladek@...e.com>
Subject: Re: [PATCH v2 7/7] tools/testing/selftests/bpf: replace open-coded
16 with TASK_COMM_LEN
On Mon, 29 Nov 2021 23:33:33 +0800
Yafang Shao <laoar.shao@...il.com> wrote:
> > TBH, i would vote for reverting the change. defining an array size as
> > enum feels really odd.
> >
>
> We changed it to enum because the BTF can't parse macro while it can
> parse the enum type.
I wonder if BTF could take advantage of the tracing:
TRACE_DEFINE_ENUM() macros?
This is how they are converted for user space tooling.
Anyway, I'd have to go and look at why that trigger test failed. I don't
see how the size of the array caused it to change the signage of value.
-- Steve
> Anyway I don't insist on keeping this change if you think reverting it
> is better.
Powered by blists - more mailing lists