summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/futex
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/kernel/futex')
-rw-r--r--pkg/sentry/kernel/futex/futex_state_autogen.go44
-rw-r--r--pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go18
2 files changed, 31 insertions, 31 deletions
diff --git a/pkg/sentry/kernel/futex/futex_state_autogen.go b/pkg/sentry/kernel/futex/futex_state_autogen.go
index f36f5ccfc..f31e571f4 100644
--- a/pkg/sentry/kernel/futex/futex_state_autogen.go
+++ b/pkg/sentry/kernel/futex/futex_state_autogen.go
@@ -54,56 +54,56 @@ func (m *Manager) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &m.sharedBucket)
}
-func (w *waiterList) StateTypeName() string {
+func (l *waiterList) StateTypeName() string {
return "pkg/sentry/kernel/futex.waiterList"
}
-func (w *waiterList) StateFields() []string {
+func (l *waiterList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (w *waiterList) beforeSave() {}
+func (l *waiterList) beforeSave() {}
-func (w *waiterList) StateSave(stateSinkObject state.Sink) {
- w.beforeSave()
- stateSinkObject.Save(0, &w.head)
- stateSinkObject.Save(1, &w.tail)
+func (l *waiterList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (w *waiterList) afterLoad() {}
+func (l *waiterList) afterLoad() {}
-func (w *waiterList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &w.head)
- stateSourceObject.Load(1, &w.tail)
+func (l *waiterList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
-func (w *waiterEntry) StateTypeName() string {
+func (e *waiterEntry) StateTypeName() string {
return "pkg/sentry/kernel/futex.waiterEntry"
}
-func (w *waiterEntry) StateFields() []string {
+func (e *waiterEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (w *waiterEntry) beforeSave() {}
+func (e *waiterEntry) beforeSave() {}
-func (w *waiterEntry) StateSave(stateSinkObject state.Sink) {
- w.beforeSave()
- stateSinkObject.Save(0, &w.next)
- stateSinkObject.Save(1, &w.prev)
+func (e *waiterEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (w *waiterEntry) afterLoad() {}
+func (e *waiterEntry) afterLoad() {}
-func (w *waiterEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &w.next)
- stateSourceObject.Load(1, &w.prev)
+func (e *waiterEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
func init() {
diff --git a/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go b/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go
index 6a9953ffa..19e23104f 100644
--- a/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go
+++ b/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go
@@ -6,28 +6,28 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (a *AtomicPtrBucket) StateTypeName() string {
+func (p *AtomicPtrBucket) StateTypeName() string {
return "pkg/sentry/kernel/futex.AtomicPtrBucket"
}
-func (a *AtomicPtrBucket) StateFields() []string {
+func (p *AtomicPtrBucket) StateFields() []string {
return []string{
"ptr",
}
}
-func (a *AtomicPtrBucket) beforeSave() {}
+func (p *AtomicPtrBucket) beforeSave() {}
-func (a *AtomicPtrBucket) StateSave(stateSinkObject state.Sink) {
- a.beforeSave()
- var ptrValue *bucket = a.savePtr()
+func (p *AtomicPtrBucket) StateSave(stateSinkObject state.Sink) {
+ p.beforeSave()
+ var ptrValue *bucket = p.savePtr()
stateSinkObject.SaveValue(0, ptrValue)
}
-func (a *AtomicPtrBucket) afterLoad() {}
+func (p *AtomicPtrBucket) afterLoad() {}
-func (a *AtomicPtrBucket) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.LoadValue(0, new(*bucket), func(y interface{}) { a.loadPtr(y.(*bucket)) })
+func (p *AtomicPtrBucket) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.LoadValue(0, new(*bucket), func(y interface{}) { p.loadPtr(y.(*bucket)) })
}
func init() {