Dmitry V. Levin | 2aec1e6 | 2015-11-15 02:29:29 +0000 | [diff] [blame] | 1 | #include "defs.h" |
2 | |||||
3 | #include "xlat/membarrier_cmds.h" | ||||
4 | |||||
5 | SYS_FUNC(membarrier) | ||||
6 | { | ||||
7 | if (entering(tcp)) { | ||||
8 | int cmd = tcp->u_arg[0], flags = tcp->u_arg[1]; | ||||
9 | |||||
10 | printxval(membarrier_cmds, cmd, "MEMBARRIER_CMD_???"); | ||||
11 | tprintf(", %d", flags); | ||||
12 | |||||
13 | return cmd ? RVAL_DECODED : 0; | ||||
14 | } | ||||
15 | |||||
16 | if (syserror(tcp) || !tcp->u_rval) | ||||
17 | return 0; | ||||
18 | |||||
19 | tcp->auxstr = sprintflags("", membarrier_cmds, tcp->u_rval); | ||||
20 | return RVAL_HEX | RVAL_STR; | ||||
21 | } |