e03b53eae767766286b050838ca99dad515bab24
[linux-2.6-microblaze.git] / tools / bpf / bpftool / skeleton / profiler.h
1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2 #ifndef __PROFILER_H
3 #define __PROFILER_H
4
5 /* useful typedefs from vmlinux.h */
6
7 typedef signed char __s8;
8 typedef unsigned char __u8;
9 typedef short int __s16;
10 typedef short unsigned int __u16;
11 typedef int __s32;
12 typedef unsigned int __u32;
13 typedef long long int __s64;
14 typedef long long unsigned int __u64;
15
16 typedef __s8 s8;
17 typedef __u8 u8;
18 typedef __s16 s16;
19 typedef __u16 u16;
20 typedef __s32 s32;
21 typedef __u32 u32;
22 typedef __s64 s64;
23 typedef __u64 u64;
24
25 enum {
26         false = 0,
27         true = 1,
28 };
29
30 #ifdef __CHECKER__
31 #define __bitwise__ __attribute__((bitwise))
32 #else
33 #define __bitwise__
34 #endif
35 #define __bitwise __bitwise__
36
37 typedef __u16 __bitwise __le16;
38 typedef __u16 __bitwise __be16;
39 typedef __u32 __bitwise __le32;
40 typedef __u32 __bitwise __be32;
41 typedef __u64 __bitwise __le64;
42 typedef __u64 __bitwise __be64;
43
44 typedef __u16 __bitwise __sum16;
45 typedef __u32 __bitwise __wsum;
46
47 #endif /* __PROFILER_H */