split up constants.h some
[trinity.git] / syscalls / ia64 / perfmonctl.c
blob0ee538cd0cd93e658e82976900aedfb921d47529
1 /*
2 sys_perfmonctl (int fd, int cmd, void __user *arg, int count)
3 */
5 #include <unistd.h>
6 #include <asm/perfmon.h>
8 #ifndef PFM_CREATE_EVTSETS
9 #define PFM_CREATE_EVTSETS 0
10 #endif
12 #ifndef PFM_DELETE_EVTSETS
13 #define PFM_DELETE_EVTSETS 0
14 #endif
16 #ifndef PFM_GETINFO_EVTSETS
17 #define PFM_GETINFO_EVTSETS 0
18 #endif
20 #include "trinity.h"
21 #include "sanitise.h"
23 struct syscall syscall_perfmonctl = {
24 .name = "perfmonctl",
25 .num_args = 4,
26 .arg1name = "fd",
27 .arg1type = ARG_FD,
28 .arg2name = "cmd",
29 .arg2type = ARG_LIST,
30 .arg2list = {
31 .num = 12,
32 .values = { PFM_CREATE_CONTEXT, PFM_WRITE_PMCS, PFM_WRITE_PMDS,
33 PFM_READ_PMDS, PFM_START, PFM_STOP, PFM_LOAD_CONTEXT,
34 PFM_UNLOAD_CONTEXT, PFM_RESTART, PFM_CREATE_EVTSETS,
35 PFM_DELETE_EVTSETS, PFM_GETINFO_EVTSETS },
37 .arg3name = "arg",
38 .arg3type = ARG_ADDRESS,
39 .arg4name = "count",