2 * Kernel API extracted from Linux kernel headers.
17 #define DECLARE_IMV(type, name) extern __typeof__(type) name##__imv
18 #define DEFINE_IMV(type, name) __typeof__(type) name##__imv
20 #define likely(x) __builtin_expect(!!(x), 1)
21 #define unlikely(x) __builtin_expect(!!(x), 0)
24 * imv_read - read immediate variable
25 * @name: immediate value name
27 * Reads the value of @name.
29 #define imv_read(name) _imv_read(name)
32 * _imv_read - Read immediate value with standard memory load.
33 * @name: immediate value name
35 * Force a data read of the immediate value instead of the immediate value
36 * based mechanism. Useful for __init and __exit section data read.
38 #define _imv_read(name) (name##__imv)
41 #define __NR_marker 333
42 #define __NR_trace 334
43 #elif defined(__x86_64__)
44 #define __NR_marker 295
45 #define __NR_trace 296
47 #error "Unsupported architecture for userspace markers"
50 #define sys_marker(...) syscall(__NR_marker, __VA_ARGS__)
51 #define sys_trace(...) syscall(__NR_trace, __VA_ARGS__)
54 } /* end of extern "C" */
This page took 0.030016 seconds and 4 git commands to generate.