diff options
author | Jamie Liu <jamieliu@google.com> | 2020-10-08 16:21:14 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-08 16:23:04 -0700 |
commit | 6bad4851d4a04b5f56ade1f8ba68bd9c16471533 (patch) | |
tree | 4487fa50c8ea63fe79264861d8523777a407dd4d /pkg/abi/linux | |
parent | 6768e6c59ec252854a1633e184b69dc5723ac3f3 (diff) |
Implement MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ.
cf. 2a36ab717e8f "rseq/membarrier: Add MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ"
PiperOrigin-RevId: 336186795
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r-- | pkg/abi/linux/membarrier.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkg/abi/linux/membarrier.go b/pkg/abi/linux/membarrier.go index 0f3c03e63..4f6021a1d 100644 --- a/pkg/abi/linux/membarrier.go +++ b/pkg/abi/linux/membarrier.go @@ -14,7 +14,7 @@ package linux -// membarrier(2) commands, from include/uapi/linux/membarrier.h +// membarrier(2) commands, from include/uapi/linux/membarrier.h. const ( MEMBARRIER_CMD_QUERY = 0 MEMBARRIER_CMD_GLOBAL = (1 << 0) @@ -24,4 +24,11 @@ const ( MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = (1 << 4) MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = (1 << 5) MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = (1 << 6) + MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = (1 << 7) + MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = (1 << 8) +) + +// membarrier(2) flags, from include/uapi/linux/membarrier.h. +const ( + MEMBARRIER_CMD_FLAG_CPU = (1 << 0) ) |