summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/futex
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-05-07 20:23:43 +0000
committergVisor bot <gvisor-bot@google.com>2020-05-07 20:23:43 +0000
commit03a34f6ddde4ba3c45ace56a6328bf85197625b4 (patch)
tree680396b6e1b7929a44632681eb89b18b19b458ab /pkg/sentry/kernel/futex
parent03daf4f9759e35beea2663b171f134fc48dde512 (diff)
parent1f4087e7cd6c3cc696e6b26446abd6c5214cfd67 (diff)
Merge release-20200422.0-51-g1f4087e (automated)
Diffstat (limited to 'pkg/sentry/kernel/futex')
-rwxr-xr-xpkg/sentry/kernel/futex/futex_state_autogen.go13
-rwxr-xr-xpkg/sentry/kernel/futex/futex_unsafe_state_autogen.go23
2 files changed, 23 insertions, 13 deletions
diff --git a/pkg/sentry/kernel/futex/futex_state_autogen.go b/pkg/sentry/kernel/futex/futex_state_autogen.go
index 68aa69daa..12a0788ff 100755
--- a/pkg/sentry/kernel/futex/futex_state_autogen.go
+++ b/pkg/sentry/kernel/futex/futex_state_autogen.go
@@ -6,18 +6,6 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *AtomicPtrBucket) beforeSave() {}
-func (x *AtomicPtrBucket) save(m state.Map) {
- x.beforeSave()
- var ptr *bucket = x.savePtr()
- m.SaveValue("ptr", ptr)
-}
-
-func (x *AtomicPtrBucket) afterLoad() {}
-func (x *AtomicPtrBucket) load(m state.Map) {
- m.LoadValue("ptr", new(*bucket), func(y interface{}) { x.loadPtr(y.(*bucket)) })
-}
-
func (x *bucket) beforeSave() {}
func (x *bucket) save(m state.Map) {
x.beforeSave()
@@ -71,7 +59,6 @@ func (x *waiterEntry) load(m state.Map) {
}
func init() {
- state.Register("pkg/sentry/kernel/futex.AtomicPtrBucket", (*AtomicPtrBucket)(nil), state.Fns{Save: (*AtomicPtrBucket).save, Load: (*AtomicPtrBucket).load})
state.Register("pkg/sentry/kernel/futex.bucket", (*bucket)(nil), state.Fns{Save: (*bucket).save, Load: (*bucket).load})
state.Register("pkg/sentry/kernel/futex.Manager", (*Manager)(nil), state.Fns{Save: (*Manager).save, Load: (*Manager).load})
state.Register("pkg/sentry/kernel/futex.waiterList", (*waiterList)(nil), state.Fns{Save: (*waiterList).save, Load: (*waiterList).load})
diff --git a/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go b/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go
new file mode 100755
index 000000000..7fc038fce
--- /dev/null
+++ b/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go
@@ -0,0 +1,23 @@
+// automatically generated by stateify.
+
+package futex
+
+import (
+ "gvisor.dev/gvisor/pkg/state"
+)
+
+func (x *AtomicPtrBucket) beforeSave() {}
+func (x *AtomicPtrBucket) save(m state.Map) {
+ x.beforeSave()
+ var ptr *bucket = x.savePtr()
+ m.SaveValue("ptr", ptr)
+}
+
+func (x *AtomicPtrBucket) afterLoad() {}
+func (x *AtomicPtrBucket) load(m state.Map) {
+ m.LoadValue("ptr", new(*bucket), func(y interface{}) { x.loadPtr(y.(*bucket)) })
+}
+
+func init() {
+ state.Register("pkg/sentry/kernel/futex.AtomicPtrBucket", (*AtomicPtrBucket)(nil), state.Fns{Save: (*AtomicPtrBucket).save, Load: (*AtomicPtrBucket).load})
+}