[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFxAay8y8eFbykzTFQG8MzXJ63LyE14XEuYkemq=99zqRA@mail.gmail.com>
Date: Fri, 23 Mar 2018 19:01:35 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Alexei Starovoitov <ast@...com>
Cc: Daniel Borkmann <daniel@...earbox.net>,
David Miller <davem@...emloft.net>,
Peter Zijlstra <peterz@...radead.org>,
Steven Rostedt <rostedt@...dmis.org>,
Network Development <netdev@...r.kernel.org>,
kernel-team <kernel-team@...com>,
Linux API <linux-api@...r.kernel.org>
Subject: Re: [PATCH v2 bpf-next 5/8] bpf: introduce BPF_RAW_TRACEPOINT
On Fri, Mar 23, 2018 at 6:43 PM, Alexei Starovoitov <ast@...com> wrote:
>
> it's not the limit I'm hitting, but self referential issue.
> Exactly half gets expanded.
> I don't think there is an easy workaround other
> than duplicating the whole chain of REPEAT macro twice
> with slightly different name.
Take a look at the __MAP() macro in include/linux/syscalls.h.
It basically takes a "transformation" as its argument, and does it <n>
times, where 'n' is the first argument (but could be self-counting).
Maybe it will give you some ideas.
... and maybe it will just drive you mad and make you gouge out your
eyes with a spoon. Don't blame the messenger.
Linus
Powered by blists - more mailing lists