headers/vmlinux: Add more archs powerpc and arm64

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
Jesper Dangaard Brouer
2021-06-01 17:03:21 +02:00
parent 8d44091df0
commit ff5fef3dc9
5 changed files with 104 additions and 16 deletions

View File

@@ -18,23 +18,11 @@
#include "vmlinux/vmlinux_types.h"
#include "vmlinux/vmlinux_common.h"
#include "vmlinux/vmlinux_arch.h"
#include "vmlinux/vmlinux_net.h"
/*
* Notice: Defining __VMLINUX_H__ (or __KERNEL__) cause <bpf/bpf_tracing.h>
* header file to define architecture specific PT_REGS_PARM's.
*
* When using '-target bpf' the fallback mechanism doesn't detect right arch
* via compiler defines.
*
* Makefile system in lib/common.mk detect ARCH and defines the
* defines __TARGET_ARCH_$(ARCH) matched on below.
*/
#if defined(__TARGET_ARCH_x86)
#include "vmlinux/arch/x86/vmlinux.h"
#else
#warning "Makefile for BPF-tracing on this arch: not supported yet"
#endif
#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
#pragma clang attribute pop