blob: 783a7083e5648915332a588132c00cbd801a00e8 [file] [log] [blame]
Dmitry V. Levin2aec1e62015-11-15 02:29:29 +00001#include "defs.h"
2
3#include "xlat/membarrier_cmds.h"
4
5SYS_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}