diff --git a/docs/d3d12_command_objects.md b/docs/d3d12_command_objects.md index 5a214e325..aed38ec23 100644 --- a/docs/d3d12_command_objects.md +++ b/docs/d3d12_command_objects.md @@ -764,6 +764,12 @@ Queues and fences are wrapped the same way. object implements but the proxy does not model is logged once and refused. - **The refused tail.** A slot past the public chain, up to the end of the proxy's own table (128 queue and 64 fence slots, every one a thunk), logs its first four argument words once and returns `E_NOTIMPL`. +- **Fence slot 12.** The one served slot past the chain. The retail executable calls it as + `(value, descriptor, flags)` and reads the return as a pointer to the fence's 64-bit completed value: it + compares that value with `~0` (device removed) and subtracts the value it waits for. The proxy returns a + per-fence mirror. A wait on the real fence (`SetEventOnCompletion(completed + 1)`, re-armed after each + completion) keeps it current without another call, and slot 12 and the CPU `Signal` (10) refresh it at + once. The descriptor's second word is a code pointer, which is not called. - **The guard region.** Each table sits at the end of the first page of a 64 KiB reservation, and the rest of that reservation is never committed. A slot past the table therefore faults on the vtable read itself, inside the reservation, and a vectored handler logs the slot before the fault goes on. A vtable read that diff --git a/runtime/shims/d3d12_xs_device.cpp b/runtime/shims/d3d12_xs_device.cpp index e17a80353..d8a3586af 100644 --- a/runtime/shims/d3d12_xs_device.cpp +++ b/runtime/shims/d3d12_xs_device.cpp @@ -621,7 +621,8 @@ HRESULT create_heap_proxy(ID3D12DescriptorHeap* real, DeviceProxy* device, REFII // Device slots 8 (CreateCommandQueue), 75 (CreateCommandQueue1), 36 (CreateFence) and 32 (OpenSharedHandle, for a // fence) wrap what they create, so a title never holds a PC or Vulkan-layer queue or fence. The proxies forward // the public chain in PC order, exactly like the device proxy, and a slot past the PC vtable is logged and refused -// with E_NOTIMPL. PresentX, SuspendX and ResumeX are queue methods past the public chain +// with E_NOTIMPL. The one exception is fence slot 12, which returns the address of the completed value (its section +// below). PresentX, SuspendX and ResumeX are queue methods past the public chain // (docs/d3d12_command_objects.md §5.3). Their slots are not known and nothing is guessed: the first run of the // executable names them in the log. // @@ -675,6 +676,12 @@ static_assert(kQueueSlots * sizeof(void*) <= 4096 && kFenceSlots * sizeof(void*) "a table must fit in the first page of its reservation"); constexpr unsigned kQueueSignal = 14, kQueueWait = 15; // (ID3D12Fence*, UINT64) +constexpr unsigned kFenceSignal = 10; // ID3D12Fence::Signal(UINT64), from the CPU +constexpr unsigned kFenceCompletedValueSlot = 12; // one past ID3D12Fence1: the completed value's address +static_assert(kFenceCompletedValueSlot >= kFence1PublicSlots && kFenceCompletedValueSlot < kFenceSlots, + "fence slot 12 is past the public chain and inside the table"); + +struct FenceMirror; struct ChildProxy { void** vtable; // offset 0: the caller's ID3D12CommandQueue* / ID3D12Fence* points here @@ -683,6 +690,7 @@ struct ChildProxy { void** real_vtable; unsigned slot_count; // public slots the real object implements; the rest of the table is refused std::atomic refs; + std::atomic mirror{nullptr}; // fence: slot 12's completed value, made on its first call }; template @@ -774,12 +782,109 @@ void reset_child_stats() { S::overruns.store(0, std::memory_order_relaxed); } -// Frees a proxy whose last reference is gone, with the real object and the device reference it held. +// ---- Fence slot 12: the completed value at an address ---- +// +// Measured on the retail executable (a run past the PC chain, #6982): fence slot 12, one past ID3D12Fence1, is called +// as (value, descriptor, flags), where the descriptor is four words whose second is a code pointer, and the title +// reads the return as a pointer to the fence's 64-bit completed value. It compares that value with ~0 (device +// removed) and subtracts the value it waits for. Refused with E_NOTIMPL, the title dereferences 0x80004001. +// +// A console fence keeps that value in memory the GPU writes. Here each fence gets a mirror that stays live without +// the title calling anything: a wait-thread callback reads the real fence's completed value into the mirror and +// re-arms SetEventOnCompletion(value + 1, event) on the real fence, so the mirror follows every completion, from a +// queue or the CPU. Slot 12 itself and the proxy's CPU Signal (slot 10) also refresh it at once, so a title that +// signals from the CPU and reads straight away sees its own value. Refreshes take a lock, so the mirror never goes +// back to a value read before the one already stored. After device removal the real fence reports ~0, which is what +// the title tests for, and the callback stops re-arming. +// +// The descriptor's code pointer is not called: the measured run goes on without it, and its contract (when it runs, +// on which thread, with what) is not known. The first call is logged with its arguments. +struct FenceMirror { + alignas(8) volatile std::uint64_t completed = 0; // what the title reads through slot 12's pointer + ID3D12Fence* fence = nullptr; // the real fence; the proxy holds the reference + SRWLOCK lock = SRWLOCK_INIT; // orders refreshes + HANDLE event = nullptr; // auto-reset; the real fence sets it at the armed value + HANDLE wait = nullptr; // the registered wait on `event`; null when the mirror is not kept live + std::atomic arm_failed{false}; +}; + +std::uint64_t refresh_mirror(FenceMirror* m) { + AcquireSRWLockExclusive(&m->lock); + const std::uint64_t value = m->fence->GetCompletedValue(); + m->completed = value; + ReleaseSRWLockExclusive(&m->lock); + return value; +} + +// Runs on the wait thread (WT_EXECUTEINWAITTHREAD): two calls on the real fence, neither of which blocks. +VOID CALLBACK on_fence_progress(PVOID context, BOOLEAN /*timed_out*/) { + auto* m = static_cast(context); + const std::uint64_t value = refresh_mirror(m); + if (value == ~std::uint64_t{0}) return; // device removed: the mirror stays ~0 + const HRESULT hr = m->fence->SetEventOnCompletion(value + 1, m->event); + if (FAILED(hr) && !m->arm_failed.exchange(true, std::memory_order_relaxed)) + std::fprintf(stderr, "[rt] d3d12_xs: fence slot 12: SetEventOnCompletion failed (0x%08lX); the completed " + "value at the returned address now moves only on slot 12 and Signal\n", + static_cast(hr)); +} + +// The fence's mirror, made on the first slot 12 call. Null only when it cannot be allocated. +FenceMirror* fence_mirror(ChildProxy* self) { + if (FenceMirror* m = self->mirror.load(std::memory_order_acquire)) return m; + static SRWLOCK create_lock = SRWLOCK_INIT; + AcquireSRWLockExclusive(&create_lock); + FenceMirror* m = self->mirror.load(std::memory_order_relaxed); + if (!m && (m = new (std::nothrow) FenceMirror)) { + m->fence = reinterpret_cast(self->real); + refresh_mirror(m); + m->event = CreateEventW(nullptr, FALSE, FALSE, nullptr); + if (m->event && RegisterWaitForSingleObject(&m->wait, m->event, &on_fence_progress, m, INFINITE, + WT_EXECUTEINWAITTHREAD)) { + SetEvent(m->event); // the callback makes the first SetEventOnCompletion + } else { + std::fprintf(stderr, "[rt] d3d12_xs: fence slot 12: no wait for the completed value (error %lu); it " + "moves only on slot 12 and Signal\n", GetLastError()); + if (m->event) CloseHandle(m->event); + m->event = nullptr; + m->wait = nullptr; + } + self->mirror.store(m, std::memory_order_release); + } + ReleaseSRWLockExclusive(&create_lock); + return m; +} + +// Fence slot 12 (value, descriptor, flags): the address of the fence's completed value, refreshed now. +std::uint64_t fence_completed_value_address(ChildProxy* self, std::uint64_t value, std::uint64_t descriptor, + std::uint64_t flags) { + static std::atomic logged{false}; + if (!logged.exchange(true, std::memory_order_relaxed)) + std::fprintf(stderr, "[rt] d3d12_xs: fence slot 12 (value %llu, descriptor 0x%llx, flags 0x%llx): returns " + "the address of the fence's completed value, kept live; the descriptor is not used\n", + static_cast(value), static_cast(descriptor), + static_cast(flags)); + FenceMirror* m = fence_mirror(self); + if (!m) { + std::fprintf(stderr, "[rt] d3d12_xs: fence slot 12: out of memory for the completed value\n"); + return 0; + } + refresh_mirror(m); + return reinterpret_cast(&m->completed); +} + +// Frees a proxy whose last reference is gone, with the real object and the device reference it held. A fence's +// mirror wait is unregistered first, waiting for a callback in flight, so none runs on a released fence. void destroy_child(ChildProxy* self) { IUnknown* real = self->real; DeviceProxy* device = self->device; + FenceMirror* mirror = self->mirror.load(std::memory_order_acquire); + if (mirror && mirror->wait) UnregisterWaitEx(mirror->wait, INVALID_HANDLE_VALUE); delete self; if (real) real->Release(); + if (mirror) { + if (mirror->event) CloseHandle(mirror->event); + delete mirror; + } if (device) proxy_release(device); } @@ -987,6 +1092,11 @@ std::uint64_t WINAPI child_slot(ChildProxy* self, std::uint64_t a1, std::uint64_ d3d12_trace::record(child_trace_name(Slot)); return hr_to_u64(child_get_device(self, reinterpret_cast(a1), reinterpret_cast(a2))); + } else if constexpr (K == ChildKind::fence && Slot == kFenceCompletedValueSlot) { + // Past ID3D12Fence1, so whether the real fence has Fence1 does not matter here. + note_child_slot(Slot); + d3d12_trace::record(child_trace_name(Slot)); + return fence_completed_value_address(self, a1, a2, a3); } else { note_child_slot(Slot); if (Slot >= self->slot_count) { @@ -1013,6 +1123,11 @@ std::uint64_t WINAPI child_slot(ChildProxy* self, std::uint64_t a1, std::uint64_ std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t); auto fn = reinterpret_cast(self->real_vtable[Slot]); + if constexpr (K == ChildKind::fence && Slot == kFenceSignal) { + const std::uint64_t result = fn(self->real, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); + if (FenceMirror* m = self->mirror.load(std::memory_order_acquire)) refresh_mirror(m); + return result; + } return fn(self->real, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); } } diff --git a/runtime/shims/d3d12_xs_device.h b/runtime/shims/d3d12_xs_device.h index 0019ec506..b93bd8c8e 100644 --- a/runtime/shims/d3d12_xs_device.h +++ b/runtime/shims/d3d12_xs_device.h @@ -36,15 +36,18 @@ // Command queues and fences (device slots 8, 75, 36, and 32 for a shared fence) come back wrapped in queue and fence // proxies of the same kind: the public chain (19 queue slots, 11 or 12 fence slots in SDK 10.0.26100) is forwarded // in PC order, and a slot past it, up to the end of the proxy's table (128 queue, 64 fence slots), is logged with its -// first four argument words and refused with E_NOTIMPL. A slot past the table faults on the vtable read inside a -// reserved, never-committed region, and the fault is logged with the slot. That is where the console's queue methods -// (PresentX, SuspendX, ResumeX) will show up; their slots are not known and are not guessed, and that the console -// keeps the public slots is an assumption (docs/d3d12_command_objects.md §5.2). Heap, queue and fence proxies are -// unwrapped wherever a device or queue method hands them to the real runtime: queue Signal/Wait (14/15), device -// CreateSharedHandle (31), MakeResident/Evict (34/35), SetEventOnMultipleFenceCompletion (45), SetResidencyPriority -// (46) and EnqueueMakeResident (50). Command lists are not wrapped, so ExecuteCommandLists passes them through and a -// heap proxy given to a list's SetDescriptorHeaps reaches the real list as it is. QueryInterface answers only the -// modelled interfaces; one the real object has but the proxy does not model is logged once and refused. +// first four argument words and refused with E_NOTIMPL. Fence slot 12 is served instead: the retail executable reads +// its return as the address of the fence's 64-bit completed value, so it returns a per-fence mirror that a wait on +// the real fence keeps current (d3d12_xs_device.cpp, "Fence slot 12"). A slot past the table faults on the vtable +// read inside a reserved, never-committed region, and the fault is logged with the slot. That is where the console's +// queue methods (PresentX, SuspendX, ResumeX) will show up; their slots are not known and are not guessed, and that +// the console keeps the public slots is an assumption (docs/d3d12_command_objects.md §5.2). Heap, queue and fence +// proxies are unwrapped wherever a device or queue method hands them to the real runtime: queue Signal/Wait +// (14/15), device CreateSharedHandle (31), MakeResident/Evict (34/35), SetEventOnMultipleFenceCompletion (45), +// SetResidencyPriority (46) and EnqueueMakeResident (50). Command lists are not wrapped, so ExecuteCommandLists passes +// them through and a heap proxy given to a list's SetDescriptorHeaps reaches the real list as it is. QueryInterface +// answers only the modelled interfaces; one the real object has but the proxy does not model is logged once and +// refused. #pragma once #include diff --git a/runtime/test/queue_proxy_test.cpp b/runtime/test/queue_proxy_test.cpp index 3f46567f8..54cfd9e48 100644 --- a/runtime/test/queue_proxy_test.cpp +++ b/runtime/test/queue_proxy_test.cpp @@ -389,13 +389,30 @@ int check_slots(const Backend& b) { } } - // The refused tail: every slot from the end of the public chain to the end of the table. + // Fence slot 12 (value, descriptor, flags): the address of the completed value, which follows a queue's + // signal without another call (a wait on the real fence refreshes it). + { + before = fhits(12); + const auto* completed = reinterpret_cast(raw_call(fence.p, 12, 9, 0, 0)); + EXPECT(completed && *completed == fence->GetCompletedValue() && fhits(12) == before + 1); + EXPECT(SUCCEEDED(queue->Signal(fence.p, 9))); + bool seen = false; + for (int i = 0; i < 5000 && !seen; ++i) { + seen = *completed == 9; + if (!seen) Sleep(1); + } + EXPECT(seen); + EXPECT(raw_call(fence.p, 12, 9, 0, 0) == reinterpret_cast(completed)); + } + + // The refused tail: every slot from the end of the public chain to the end of the table, but fence slot 12. for (unsigned slot = 19; slot < xs::queue_proxy_table_size(); ++slot) { before = qhits(slot); EXPECT(as_hr(call_slot(queue.p, slot)) == E_NOTIMPL); EXPECT(qhits(slot) == before + 1 && xs::queue_slot_first_call_seen(slot)); } for (unsigned slot = fence_slots; slot < xs::fence_proxy_table_size(); ++slot) { + if (slot == 12) continue; before = fhits(slot); EXPECT(as_hr(call_slot(fence.p, slot)) == E_NOTIMPL); EXPECT(fhits(slot) == before + 1 && xs::fence_slot_first_call_seen(slot)); @@ -406,7 +423,8 @@ int check_slots(const Backend& b) { EXPECT(xs::command_object_proxy_ref_count(queue.p) == 1 && xs::command_object_proxy_ref_count(fence.p) == 1); } EXPECT(xs::device_proxy_ref_count(device) == device_refs); // every queue and fence gave its reference back - std::printf("%s: every public queue and fence slot forwarded and counted; tail refused\n", label); + std::printf("%s: every public queue and fence slot forwarded and counted; fence slot 12 follows a queue " + "signal; tail refused\n", label); return 0; } diff --git a/runtime/test/xs_proxy_mock_test.cpp b/runtime/test/xs_proxy_mock_test.cpp index f0030116b..dabf7d281 100644 --- a/runtime/test/xs_proxy_mock_test.cpp +++ b/runtime/test/xs_proxy_mock_test.cpp @@ -2,6 +2,8 @@ // - devices that stop at ID3D12Device, Device1, Device3 and Device9: the slots of a missing interface (45/46, // 50, 75) are refused without reaching the device, the others get the real objects behind the proxies; // - fences with and without ID3D12Fence1: 11 or 12 public slots, QueryInterface and slot 11 to match; +// - fence slot 12: the address of a completed value that follows the real fence, from a CPU Signal through the +// proxy and from a signal the proxy never sees, up to device removal, with the descriptor's code pointer unused; // - creation that fails, that returns S_OK with no object, a null IID or output, and an interface the real object // has but the proxy does not model; // - OpenSharedHandle of a fence (as ID3D12Fence, IUnknown, Fence1), of a non-fence object, of an invalid handle, @@ -88,6 +90,10 @@ struct Mock { bool create_null; // device: creation returns create_result with no object HRESULT create_result; // device: what creation returns (S_OK makes the object) Mock* last_child; // device: the object its last creation or open made + SRWLOCK lock; // fence: guards completed, armed_value and armed_event (zeroed = SRWLOCK_INIT) + std::uint64_t completed; // fence: what GetCompletedValue (slot 8) returns + std::uint64_t armed_value; // fence: the value SetEventOnCompletion (slot 9) waits for + HANDLE armed_event; // fence: the event it sets then, or null unsigned calls[kMockSlots]; std::uint64_t args[kMockSlots][5]; std::uint64_t array[kMockSlots][4]; // device: the first entries of the array argument, as received @@ -107,9 +113,42 @@ Mock* new_mock(Kind kind) { std::memset(m, 0, sizeof(*m)); m->vtable = mock_vtable(); m->kind = kind; + if (kind == Kind::fence) m->completed = kCompletedValue; return m; } +// A mock fence's completed value, read and written under its lock: the proxy's wait thread calls slots 8 and 9 while +// the test signals. Signal sets the one armed event once the value reaches it, as the PC fence does. +std::uint64_t fence_completed(Mock* m) { + AcquireSRWLockExclusive(&m->lock); + const std::uint64_t value = m->completed; + ReleaseSRWLockExclusive(&m->lock); + return value; +} + +void fence_signal(Mock* m, std::uint64_t value) { + AcquireSRWLockExclusive(&m->lock); + m->completed = value; + if (m->armed_event && value >= m->armed_value) { + SetEvent(m->armed_event); + m->armed_event = nullptr; + } + ReleaseSRWLockExclusive(&m->lock); +} + +HRESULT fence_set_event(Mock* m, std::uint64_t value, HANDLE event) { + if (!event) return S_OK; // the PC fence would block until `value`; no caller here does that + AcquireSRWLockExclusive(&m->lock); + if (m->completed >= value) { + SetEvent(event); + } else { + m->armed_value = value; + m->armed_event = event; + } + ReleaseSRWLockExclusive(&m->lock); + return S_OK; +} + bool mock_has(const Mock* m, REFIID iid) { if (IsEqualIID(iid, __uuidof(IUnknown)) || IsEqualIID(iid, __uuidof(ID3D12Object))) return true; if (m->kind == Kind::device) { @@ -201,7 +240,14 @@ std::uint64_t mock_call(Mock* m, unsigned slot, const std::uint64_t* words) { } return S_OK; } - if (m->kind == Kind::fence && slot == 8) return kCompletedValue; // GetCompletedValue + if (m->kind == Kind::fence) { + switch (slot) { + case 8: return fence_completed(m); // GetCompletedValue + case 9: return static_cast(fence_set_event(m, a1, reinterpret_cast(a2))); + case 10: fence_signal(m, a1); return S_OK; // Signal + default: break; + } + } return S_OK; } @@ -436,6 +482,88 @@ int check_fence1() { return 0; } +// ---- Fence slot 12: the completed value at an address ---- + +std::atomic g_descriptor_calls{0}; +void WINAPI descriptor_callback() { g_descriptor_calls.fetch_add(1); } + +// True once *completed reads `value`, within five seconds (the proxy's wait thread writes it). +bool reads_within(const volatile std::uint64_t* completed, std::uint64_t value) { + for (int i = 0; i < 5000; ++i) { + if (*completed == value) return true; + Sleep(1); + } + return *completed == value; +} + +int check_fence_completed_value() { + for (const bool fence1 : {false, true}) { // past ID3D12Fence1 either way + Mock* mock = nullptr; + void* device = make_device(mock, 9, fence1); + EXPECT(device); + void* fence = make_fence(device); + Mock* const fence_mock = mock->last_child; + void* other = make_fence(device); + Mock* const other_mock = mock->last_child; + EXPECT(fence && other && fence_mock != other_mock); + + // The title's shape: (value, descriptor with a code pointer in its second word, flags). + const std::uint64_t descriptor[4] = {0, reinterpret_cast(&descriptor_callback), 0, 0}; + const auto* completed = + reinterpret_cast(raw(fence, 12, 9, word(descriptor), 1)); + EXPECT(completed && *completed == kCompletedValue); + EXPECT(xs::fence_slot_first_call_seen(12)); + EXPECT(raw(fence, 12, 9, word(descriptor), 1) == word(completed)); // one address per fence + const auto* other_completed = reinterpret_cast(raw(other, 12, 0, 0, 0)); + EXPECT(other_completed && other_completed != completed); + + // A CPU Signal through the proxy shows at once. + EXPECT(hr_of(raw(fence, 10, 9)) == S_OK && fence_mock->completed == 9); + EXPECT(*completed == 9 && *other_completed == kCompletedValue); + // A signal the proxy never sees (a queue's, on the GPU) shows without another call, and again after it. + fence_signal(fence_mock, 12); + EXPECT(reads_within(completed, 12)); + fence_signal(fence_mock, 40); + EXPECT(reads_within(completed, 40)); + fence_signal(other_mock, 8); + EXPECT(reads_within(other_completed, 8) && *completed == 40); + // Device removal: the real fence reports ~0, which the title tests for, and nothing is armed after it. + fence_signal(fence_mock, ~std::uint64_t{0}); + EXPECT(reads_within(completed, ~std::uint64_t{0})); + Sleep(50); + AcquireSRWLockExclusive(&fence_mock->lock); + const bool rearmed = fence_mock->armed_event != nullptr; + ReleaseSRWLockExclusive(&fence_mock->lock); + EXPECT(!rearmed); + EXPECT(g_descriptor_calls.load() == 0); // the descriptor's code pointer is not called + + // Release waits out the wait thread; both fences and the device go back to zero references. + EXPECT(release(fence) == 0 && fence_mock->refs == 0); + EXPECT(release(other) == 0 && other_mock->refs == 0); + + // A fence whose slot 12 is never called arms nothing on the real fence. + void* quiet = make_fence(device); + Mock* const quiet_mock = mock->last_child; + EXPECT(quiet && hr_of(raw(quiet, 10, 3)) == S_OK && raw(quiet, 8) == 3 && quiet_mock->calls[9] == 0); + EXPECT(release(quiet) == 0 && quiet_mock->refs == 0); + + // Out of memory for the mirror: slot 12 returns null, and the next call works. + void* starved = make_fence(device); + EXPECT(starved); + g_fail_news = 1; + const std::uint64_t none = raw(starved, 12, 0, 0, 0); + g_fail_news = 0; + EXPECT(none == 0); + const auto* later = reinterpret_cast(raw(starved, 12, 0, 0, 0)); + EXPECT(later && *later == kCompletedValue); + EXPECT(release(starved) == 0); + EXPECT(release(device) == 0 && mock->refs == 0); + } + std::printf("%s: fence slot 12 returns one address per fence whose completed value follows CPU and unseen " + "signals up to device removal; the descriptor is not called\n", g_label); + return 0; +} + // ---- 3. Creation failures and refused interfaces ---- int check_create_failures() { @@ -837,7 +965,8 @@ int check_tail(bool want_guarded) { queue_mock->args[14][0] == word(xs::fence_proxy_real_fence(fence)) && queue_mock->args[14][1] == 5); for (unsigned slot = 19; slot < xs::queue_proxy_table_size(); ++slot) EXPECT(hr_of(raw(queue, slot)) == E_NOTIMPL && queue_mock->calls[slot] == 0); - for (unsigned slot = 12; slot < xs::fence_proxy_table_size(); ++slot) EXPECT(hr_of(raw(fence, slot)) == E_NOTIMPL); + EXPECT(raw(fence, 12) != 0); // the completed value's address (check_fence_completed_value) + for (unsigned slot = 13; slot < xs::fence_proxy_table_size(); ++slot) EXPECT(hr_of(raw(fence, slot)) == E_NOTIMPL); EXPECT(xs::queue_table_overruns() == 0 && xs::fence_table_overruns() == 0); EXPECT(release(queue) == 0 && release(fence) == 0 && release(device) == 0 && mock->refs == 0); return 0; @@ -947,8 +1076,9 @@ int main(int argc, char** argv) { return run_fault_mode(argv[1]); } if (argc != 1) return 2; - if (check_tail(true) || check_levels() || check_fence1() || check_create_failures() || check_open_shared() || - check_alloc_failures() || check_allocators() || check_xbox_slots()) + if (check_tail(true) || check_levels() || check_fence1() || check_fence_completed_value() || + check_create_failures() || check_open_shared() || check_alloc_failures() || check_allocators() || + check_xbox_slots()) return 1; std::printf("xs_proxy_mock_test: PASS (%d allocations refused on purpose)\n", g_failed_news); return 0;