On Mon, Jul 06, 2020 at 05:56:09PM -0700, Andrii Nakryiko wrote: > On Fri, Jul 3, 2020 at 2:53 AM Jiri Olsa <jolsa@xxxxxxxxxx> wrote: > > > > It will be needed by bpf selftest for resolve_btfids tool. > > > > Also adding __PASTE macro as btf_ids.h dependency, which is > > defined in: > > > > include/linux/compiler_types.h > > > > but because tools/include do not have this header, I'm putting > > the macro into linux/compiler.h header. > > > > Acked-by: Andrii Nakryiko <andriin@xxxxxx> > > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx> > > --- > > tools/include/linux/btf_ids.h | 87 ++++++++++++++++++++++++++++++++++ > > tools/include/linux/compiler.h | 4 ++ > > 2 files changed, 91 insertions(+) > > create mode 100644 tools/include/linux/btf_ids.h > > > > diff --git a/tools/include/linux/btf_ids.h b/tools/include/linux/btf_ids.h > > new file mode 100644 > > index 000000000000..d317150bc9e3 > > --- /dev/null > > +++ b/tools/include/linux/btf_ids.h > > @@ -0,0 +1,87 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > + > > +#ifndef _LINUX_BTF_IDS_H > > +#define _LINUX_BTF_IDS_H > > + > > +#include <linux/compiler.h> /* for __PASTE */ > > + > > +/* > > + * Following macros help to define lists of BTF IDs placed > > + * in .BTF_ids section. They are initially filled with zeros > > One more inconsistency with .BTF_ids vs .BTF.ids (probably same in the > original header, which I missed). ok > > > + * (during compilation) and resolved later during the > > + * linking phase by btfid tool. > > typo: resolve_btfids tool will fix thanks, jirka > > > + * > > + * Any change in list layout must be reflected in btfid > > + * tool logic. > > + */ > > + > > [...] >