7adb5a2f9e
* perf.c (fetch_perf_event_attr, print_perf_event_attr): Remove "static" qualifier. * defs.h (fetch_perf_event_attr, print_perf_event_attr): New declarations. * perf_event_struct.h (struct perf_event_query_bpf): New type definition. * perf_ioctl.c: New file. * Makefile.am (strace_SOURCES): Add it. * xlat/perf_ioctl_cmds.in: New file. * xlat/perf_ioctl_flags.in: Likewise. * ioctl.c (ioctl_decode) <case '$'>: Call perf_ioctl. * tests/gen_tests.in (ioctl_perf): New test. * tests/ioctl_perf.c: New file. * tests/pure_executables.list: ioctl_perf. * tests/.gitignore: Likewise. Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
13 lines
574 B
Plaintext
13 lines
574 B
Plaintext
PERF_EVENT_IOC_ENABLE _IO ('$', 0)
|
|
PERF_EVENT_IOC_DISABLE _IO ('$', 1)
|
|
PERF_EVENT_IOC_REFRESH _IO ('$', 2)
|
|
PERF_EVENT_IOC_RESET _IO ('$', 3)
|
|
PERF_EVENT_IOC_PERIOD _IOW('$', 4, uint64_t)
|
|
PERF_EVENT_IOC_SET_OUTPUT _IO ('$', 5)
|
|
PERF_EVENT_IOC_SET_FILTER _IOW('$', 6, char *)
|
|
PERF_EVENT_IOC_ID _IOR('$', 7, uint64_t *)
|
|
PERF_EVENT_IOC_SET_BPF _IOW('$', 8, uint32_t)
|
|
PERF_EVENT_IOC_PAUSE_OUTPUT _IOW('$', 9, uint32_t)
|
|
PERF_EVENT_IOC_QUERY_BPF _IOWR('$', 10, struct perf_event_query_bpf *)
|
|
PERF_EVENT_IOC_MODIFY_ATTRIBUTES _IOW('$', 11, struct perf_event_attr *)
|