mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
29 lines
778 B
C
29 lines
778 B
C
/*
|
|
* WARNING: This file shadow vmlinux.h that you can generate yourself
|
|
*
|
|
* Cmdline to generate vmlinux.h
|
|
* bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h
|
|
*
|
|
* This vmlinux.h shadow contains kernel headers reduced to that were
|
|
* needed in this project.
|
|
*/
|
|
#ifndef __VMLINUX_H__
|
|
#define __VMLINUX_H__
|
|
|
|
#include <linux/types.h> /* Needed for __uNN in vmlinux/vmlinux_types.h */
|
|
|
|
#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
|
|
#pragma clang attribute push (__attribute__((preserve_access_index)), apply_to = record)
|
|
#endif
|
|
|
|
#include "vmlinux/vmlinux_types.h"
|
|
#include "vmlinux/vmlinux_common.h"
|
|
#include "vmlinux/vmlinux_arch.h"
|
|
#include "vmlinux/vmlinux_net.h"
|
|
|
|
#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
|
|
#pragma clang attribute pop
|
|
#endif
|
|
|
|
#endif /* __VMLINUX_H__ */
|