]> git.baikalelectronics.ru Git - kernel.git/commit
tools headers: Adopt verbatim copy of btf_ids.h from kernel sources
authorJiri Olsa <jolsa@kernel.org>
Sat, 11 Jul 2020 21:53:28 +0000 (23:53 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 13 Jul 2020 17:42:03 +0000 (10:42 -0700)
commit219033d952575d18d6d34d030c0a1fe7d6bd5042
treeec98e40e43922f3c43a35232dce59a068597aa2f
parentd7b92deb2a44ea03ee66ece3683537246cafbdc3
tools headers: Adopt verbatim copy of btf_ids.h from kernel sources

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.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Tested-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200711215329.41165-9-jolsa@kernel.org
tools/include/linux/btf_ids.h [new file with mode: 0644]
tools/include/linux/compiler.h