syzkaller/sys/perf_amd64.const
Dmitry Vyukov 0d0fbbe73f overhaul syscall description generation process
This splits generation process into two phases:
1. Extract values of constants from linux kernel sources.
2. Generate Go code.

Constant values are checked in.
The advantage is that the second phase is now completely independent
from linux source files, kernel version, presence of headers for
particular drivers, etc. This allows to change what Go code we generate
any time without access to all kernel headers (which in future won't be
limited to only upstream headers).

Constant extraction process does require proper kernel sources,
but this can be done only once by the person who added the driver
and has access to the required sources. Then the constant values
are checked in for others to use.
Consant extraction process is per-file/per-arch. That is,
if I am adding a driver that is not present upstream and that
works only on a single arch, I will check in constants only for
that driver and for that arch.
2016-08-26 07:09:25 +02:00

27 lines
676 B
Plaintext

# AUTOGENERATED FILE
HW_BREAKPOINT_EMPTY = 0
HW_BREAKPOINT_R = 1
HW_BREAKPOINT_W = 2
HW_BREAKPOINT_X = 4
PERF_EVENT_IOC_DISABLE = 9217
PERF_EVENT_IOC_ENABLE = 9216
PERF_EVENT_IOC_ID = 2148017159
PERF_EVENT_IOC_PERIOD = 1074275332
PERF_EVENT_IOC_REFRESH = 9218
PERF_EVENT_IOC_RESET = 9219
PERF_EVENT_IOC_SET_BPF = 1074013192
PERF_EVENT_IOC_SET_FILTER = 1074275334
PERF_EVENT_IOC_SET_OUTPUT = 9221
PERF_FLAG_FD_CLOEXEC = 8
PERF_FLAG_FD_NO_GROUP = 1
PERF_FLAG_FD_OUTPUT = 2
PERF_FLAG_PID_CGROUP = 4
PERF_TYPE_BREAKPOINT = 5
PERF_TYPE_HARDWARE = 0
PERF_TYPE_HW_CACHE = 3
PERF_TYPE_RAW = 4
PERF_TYPE_SOFTWARE = 1
PERF_TYPE_TRACEPOINT = 2
__NR_ioctl = 16
__NR_perf_event_open = 298