🔥 Delete the behaviour-lock suite and its make targets
The suite drove apple-gfx's C API as QEMU did and recorded what the paravirt device did; the owner's ruling deletes apple-gfx and everything of it, the suite with it, so make test, bless and coverage go too. Its shader fixtures are the platforms', the graphics device's and the guest bundle's tests too: they move to tests/shaders. guest/bundle's Makefile, an input of the prebuilt kexts, still names tests/suite/fixtures/shaders, which stays as a link to tests/shaders until the kexts are next built. A worktree no longer clones the suite's 257 MiB, so new-worktree.sh adds it plainly.
This commit is contained in:
1 parent
cb35f314b9
commit
dae3e6b13d
6670 files changed
+74
-1551470
No files matched your search
@@ -1,6 +1,5 @@
|
||||
# The Rust library and its tooling. The Cargo workspace is at the
|
||||
# repository root; the behaviour-lock suite (tests/suite) records what it
|
||||
# does in expected files, recorded from the checkout's own build.
|
||||
# repository root.
|
||||
#
|
||||
# make the library as a plain library (cargo xtask dist) in
|
||||
# target/dist: libreims_vgpu.a and .dylib, reims_vgpu.h,
|
||||
@@ -8,20 +7,6 @@
|
||||
# make smoke a guest workload linked with the library as QEMU links it,
|
||||
# with an isolated guest task, against its expected values
|
||||
# (cargo xtask smoke)
|
||||
# make test the behaviour-lock suite (tests/suite) on the library in
|
||||
# target/dist, compared with its expected files;
|
||||
# TEST=<patterns> selects scenarios or modules, e.g.
|
||||
# TEST='fifo_*,display'
|
||||
# make bless record expected files from the library this checkout builds:
|
||||
# those missing (a new scenario, or a new host key after an OS
|
||||
# update) or recorded from other input (a changed scenario);
|
||||
# ARGS=--update records the selected cases again for a
|
||||
# deliberate change of behaviour, whose expected-file diff is
|
||||
# reviewed in the same commit
|
||||
# make coverage the suite on the library built instrumented into
|
||||
# build/cov/dist, with a line report per crate file
|
||||
# (pgtest/coverage.py); ARGS=--per-case maps each line to the
|
||||
# cases that reach it
|
||||
# make qemu the library as a plain library (cargo xtask dist), then
|
||||
# vendor/qemu's qemu-system-aarch64 with apple-gfx on its C API,
|
||||
# linked statically through pkg-config, in build/qemu
|
||||
@@ -32,10 +17,8 @@
|
||||
# VM's volume) (scripts/internal/run_vmapple.sh)
|
||||
# make clean remove build/, QEMU's build included
|
||||
#
|
||||
# ARGS adds options to pgtest in test, bless and coverage, e.g.
|
||||
# ARGS='-j 8 --setup isolate'. QEMU_CONFIGURE adds options to QEMU's configure
|
||||
# and runs it again. CARGO_TARGET_DIR moves the build, and with it
|
||||
# RUST_TARGET, out of target.
|
||||
# QEMU_CONFIGURE adds options to QEMU's configure and runs it again.
|
||||
# CARGO_TARGET_DIR moves the build, and with it RUST_TARGET, out of target.
|
||||
|
||||
BUILD := build
|
||||
# $(BUILD) made absolute without abspath, which splits a path with spaces.
|
||||
@@ -44,13 +27,13 @@ QEMU_CONFIGURE ?=
|
||||
QEMU_BUILD := $(BUILD_DIR)/qemu
|
||||
QEMU_SRC := $(CURDIR)/vendor/qemu
|
||||
# Cargo's target directory, made absolute the same way: the dist tree is
|
||||
# under it, which the suite's runner and QEMU's config.status record, and
|
||||
# cargo resolves a relative one against the directory it runs in.
|
||||
# under it, which QEMU's config.status records, and cargo resolves a
|
||||
# relative one against the directory it runs in.
|
||||
RUST_TARGET_REL := $(or $(CARGO_TARGET_DIR),target)
|
||||
RUST_TARGET := $(if $(filter /%,$(RUST_TARGET_REL)),$(RUST_TARGET_REL),$(CURDIR)/$(RUST_TARGET_REL))
|
||||
RUST_DIST := $(RUST_TARGET)/dist
|
||||
|
||||
.PHONY: all smoke test bless coverage qemu vm clean
|
||||
.PHONY: all smoke qemu vm clean
|
||||
|
||||
all:
|
||||
CARGO_TARGET_DIR="$(RUST_TARGET)" cargo xtask dist
|
||||
@@ -58,21 +41,6 @@ all:
|
||||
smoke: all
|
||||
CARGO_TARGET_DIR="$(RUST_TARGET)" cargo xtask smoke
|
||||
|
||||
TEST ?=
|
||||
ARGS ?=
|
||||
PGTEST = cd tests/suite && python3 -m pgtest
|
||||
|
||||
test: all
|
||||
$(PGTEST) run -k "$(TEST)" --dist "$(RUST_DIST)" $(ARGS)
|
||||
|
||||
# bless records from the library make builds, the one make test runs.
|
||||
bless: all
|
||||
$(PGTEST) bless -k "$(TEST)" --dist "$(RUST_DIST)" $(ARGS)
|
||||
|
||||
# pgtest cov builds its own instrumented dist tree, in build/cov/dist.
|
||||
coverage:
|
||||
$(PGTEST) cov -k "$(TEST)" $(ARGS)
|
||||
|
||||
vendor/qemu/configure:
|
||||
@echo "vendor/qemu is empty: git submodule update --init vendor/qemu" >&2
|
||||
@exit 1
|
||||
|
||||
@@ -1939,7 +1939,7 @@ pub(crate) mod tests {
|
||||
.starts_with("Error Domain=MTLLibraryErrorDomain"),
|
||||
"{e:?}"
|
||||
);
|
||||
let bytes = include_bytes!("../../../../tests/suite/fixtures/shaders/kernel.metallib");
|
||||
let bytes = include_bytes!("../../../../tests/shaders/kernel.metallib");
|
||||
let lib = d.new_library(bytes).unwrap().unwrap().unwrap();
|
||||
assert_eq!(lib.get().functionNames().count(), 1);
|
||||
}
|
||||
|
||||
@@ -345,8 +345,8 @@ mod tests {
|
||||
use crate::gpu::device::tests::dev;
|
||||
use crate::gpu::resource::VulkanRenderPipeline;
|
||||
|
||||
const VERT: &[u8] = include_bytes!("../../../../../tests/suite/fixtures/shaders/vert.metallib");
|
||||
const FRAG: &[u8] = include_bytes!("../../../../../tests/suite/fixtures/shaders/frag.metallib");
|
||||
const VERT: &[u8] = include_bytes!("../../../../../tests/shaders/vert.metallib");
|
||||
const FRAG: &[u8] = include_bytes!("../../../../../tests/shaders/frag.metallib");
|
||||
|
||||
/// `tri_vert` and `tri_frag` into `BGRA8Unorm`, with indirect command buffer support: its
|
||||
/// vertex function writes no `[[point_size]]`, of no input primitive topology class.
|
||||
|
||||
@@ -2399,9 +2399,9 @@ pub(crate) mod tests {
|
||||
.expect("CARGO_MANIFEST_DIR: run the tests with cargo or nextest")
|
||||
}
|
||||
|
||||
/// The directory of the suite's shader fixtures, `tests/suite/fixtures/shaders`.
|
||||
/// The directory of the test shaders, `tests/shaders`.
|
||||
pub(crate) fn fixture_shaders() -> std::path::PathBuf {
|
||||
crate_dir().join("../../tests/suite/fixtures/shaders")
|
||||
crate_dir().join("../../tests/shaders")
|
||||
}
|
||||
|
||||
/// The build script's `OUT_DIR`, which cargo and nextest give a test process of a package
|
||||
@@ -3334,7 +3334,7 @@ pub(crate) mod tests {
|
||||
assert!(
|
||||
dev()
|
||||
.new_library(include_bytes!(
|
||||
"../../../../tests/suite/fixtures/shaders/kernel.metallib"
|
||||
"../../../../tests/shaders/kernel.metallib"
|
||||
))
|
||||
.unwrap()
|
||||
.unwrap()
|
||||
@@ -3351,7 +3351,7 @@ pub(crate) mod tests {
|
||||
let d = dev();
|
||||
let library = d
|
||||
.new_library(include_bytes!(
|
||||
"../../../../tests/suite/fixtures/shaders/kernel.metallib"
|
||||
"../../../../tests/shaders/kernel.metallib"
|
||||
))
|
||||
.unwrap()
|
||||
.unwrap()
|
||||
@@ -3483,7 +3483,7 @@ pub(crate) mod tests {
|
||||
(12, Some("ab"))
|
||||
);
|
||||
let vert = fixture_function(include_bytes!(
|
||||
"../../../../tests/suite/fixtures/shaders/vert.metallib"
|
||||
"../../../../tests/shaders/vert.metallib"
|
||||
));
|
||||
let refused = |blob| {
|
||||
d.new_compute_pipeline_state(Some(&descriptor(&vert, blob)), 0)
|
||||
@@ -3519,7 +3519,7 @@ pub(crate) mod tests {
|
||||
use crate::gpu::serialized::tests::{Resolve, fixture_function, hex};
|
||||
let d = dev();
|
||||
let vert = fixture_function(include_bytes!(
|
||||
"../../../../tests/suite/fixtures/shaders/vert.metallib"
|
||||
"../../../../tests/shaders/vert.metallib"
|
||||
));
|
||||
let mut resolve = Resolve::answering(Some(vert));
|
||||
let desc = d
|
||||
|
||||
@@ -522,11 +522,11 @@ mod tests {
|
||||
const ICB_ENCODE: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/icb_encode.metallib"));
|
||||
|
||||
const ADD: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/compute_add.metallib");
|
||||
include_bytes!("../../../../tests/shaders/compute_add.metallib");
|
||||
const TGMEM: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/compute_tgmem.metallib");
|
||||
include_bytes!("../../../../tests/shaders/compute_tgmem.metallib");
|
||||
const SAMPLE: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/compute_sample.metallib");
|
||||
include_bytes!("../../../../tests/shaders/compute_sample.metallib");
|
||||
|
||||
/// `MTLCommandBufferStatusCompleted`.
|
||||
const COMPLETED: u64 = 4;
|
||||
|
||||
@@ -6,13 +6,13 @@ use reims_vgpu_metal::MetalPlatform;
|
||||
use super::*;
|
||||
|
||||
const TGSTATIC: &[u8] =
|
||||
include_bytes!("../../../../../../tests/suite/fixtures/shaders/compute_tgstatic.metallib");
|
||||
include_bytes!("../../../../../../tests/shaders/compute_tgstatic.metallib");
|
||||
|
||||
const CONSTANT: &[u8] =
|
||||
include_bytes!("../../../../../../tests/suite/fixtures/shaders/fc.metallib");
|
||||
include_bytes!("../../../../../../tests/shaders/fc.metallib");
|
||||
|
||||
const TRUNCATED: &[u8] =
|
||||
include_bytes!("../../../../../../tests/suite/fixtures/shaders/kernel_trunc.metallib");
|
||||
include_bytes!("../../../../../../tests/shaders/kernel_trunc.metallib");
|
||||
|
||||
/// A pipeline's answers, in the trait's order but the ID: ID, imageblock length of 8×8,
|
||||
/// largest threadgroup, resource index, static threadgroup memory, ICB support, execution
|
||||
|
||||
@@ -6874,9 +6874,9 @@ pub(crate) mod tests {
|
||||
use reims_vgpu_core::platform::values::IcbDesc;
|
||||
|
||||
const VERT: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/vert.metallib");
|
||||
include_bytes!("../../../../tests/shaders/vert.metallib");
|
||||
const FRAG: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/frag.metallib");
|
||||
include_bytes!("../../../../tests/shaders/frag.metallib");
|
||||
let p = platform();
|
||||
let d = dev();
|
||||
let function = |bytes, name| {
|
||||
@@ -6985,9 +6985,9 @@ pub(crate) mod tests {
|
||||
};
|
||||
|
||||
const TESS: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/render_tess.metallib");
|
||||
include_bytes!("../../../../tests/shaders/render_tess.metallib");
|
||||
const FRAG: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/frag.metallib");
|
||||
include_bytes!("../../../../tests/shaders/frag.metallib");
|
||||
let p = platform();
|
||||
let d = dev();
|
||||
let function = |bytes, name| {
|
||||
@@ -7192,9 +7192,9 @@ pub(crate) mod tests {
|
||||
use reims_vgpu_core::platform::values::IcbDesc;
|
||||
|
||||
const VERT: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/vert.metallib");
|
||||
include_bytes!("../../../../tests/shaders/vert.metallib");
|
||||
const FRAG: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/frag.metallib");
|
||||
include_bytes!("../../../../tests/shaders/frag.metallib");
|
||||
let p = platform();
|
||||
let d = dev();
|
||||
let function = |bytes, name| {
|
||||
@@ -7376,9 +7376,9 @@ pub(crate) mod tests {
|
||||
use reims_vgpu_core::platform::values::IcbDesc;
|
||||
|
||||
const VERT: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/vert.metallib");
|
||||
include_bytes!("../../../../tests/shaders/vert.metallib");
|
||||
const FRAG: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/frag.metallib");
|
||||
include_bytes!("../../../../tests/shaders/frag.metallib");
|
||||
let p = platform();
|
||||
let d = dev();
|
||||
let function = |bytes, name| {
|
||||
@@ -7521,9 +7521,9 @@ pub(crate) mod tests {
|
||||
};
|
||||
|
||||
const VERT: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/vert.metallib");
|
||||
include_bytes!("../../../../tests/shaders/vert.metallib");
|
||||
const FRAG: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/mutdec_fwrite.metallib");
|
||||
include_bytes!("../../../../tests/shaders/mutdec_fwrite.metallib");
|
||||
/// `MTLPixelFormatDepth32Float`, `MTLCompareFunctionAlways`.
|
||||
const DEPTH32F: u64 = 252;
|
||||
const ALWAYS: u64 = 7;
|
||||
|
||||
@@ -1828,7 +1828,7 @@ mod tests {
|
||||
use crate::gpu::resource::{VulkanBuffer, VulkanComputePipeline};
|
||||
|
||||
const ADD: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/compute_add.metallib");
|
||||
include_bytes!("../../../../tests/shaders/compute_add.metallib");
|
||||
|
||||
/// `MTLCommandBufferStatusCompleted`.
|
||||
const COMPLETED: u64 = 4;
|
||||
|
||||
@@ -2474,10 +2474,10 @@ mod tests {
|
||||
|
||||
/// `inc_k`: one thread adds 1 to `c[0]`, and marks `c[n]` with `n * 0x11` below 16.
|
||||
const INC: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/compute_inc.metallib");
|
||||
include_bytes!("../../../../tests/shaders/compute_inc.metallib");
|
||||
/// `double_gid`: `out[gid] = gid * 2`, so one thread zeroes `out[0]`.
|
||||
const DOUBLE: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/kernel.metallib");
|
||||
include_bytes!("../../../../tests/shaders/kernel.metallib");
|
||||
|
||||
/// `MTLCommandBufferStatusCompleted`.
|
||||
const COMPLETED: u64 = 4;
|
||||
|
||||
@@ -15,7 +15,7 @@ use crate::os::OsSurface;
|
||||
fn kernel_states<P: Platform>(d: &P::Device) -> [(bool, u64, u64); 2] {
|
||||
use reims_vgpu_core::platform::resource::{ComputePipeline as _, Library as _};
|
||||
use reims_vgpu_core::rt::Hold;
|
||||
let kernel = include_bytes!("../../../../../../tests/suite/fixtures/shaders/kernel.metallib");
|
||||
let kernel = include_bytes!("../../../../../../tests/shaders/kernel.metallib");
|
||||
let library = d.new_library(kernel).unwrap().unwrap().unwrap();
|
||||
let name = library.function_names()[0].clone();
|
||||
let f = library
|
||||
|
||||
@@ -1602,9 +1602,9 @@ pub(crate) mod tests {
|
||||
}
|
||||
|
||||
pub(crate) const KERNEL: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/kernel.metallib");
|
||||
include_bytes!("../../../../tests/shaders/kernel.metallib");
|
||||
pub(crate) const STAGEIN: &[u8] =
|
||||
include_bytes!("../../../../tests/suite/fixtures/shaders/compute_stagein.metallib");
|
||||
include_bytes!("../../../../tests/shaders/compute_stagein.metallib");
|
||||
|
||||
/// A resolver answering `f` for every ref, and the refs it was asked for.
|
||||
pub(crate) struct Resolve {
|
||||
|
||||
@@ -1394,10 +1394,10 @@ mod tests {
|
||||
use crate::gpu::serialized::tests::fixture_function;
|
||||
(
|
||||
fixture_function(include_bytes!(
|
||||
"../../../../tests/suite/fixtures/shaders/render_vdesc.metallib"
|
||||
"../../../../tests/shaders/render_vdesc.metallib"
|
||||
)),
|
||||
fixture_function(include_bytes!(
|
||||
"../../../../tests/suite/fixtures/shaders/render_color.metallib"
|
||||
"../../../../tests/shaders/render_color.metallib"
|
||||
)),
|
||||
)
|
||||
}
|
||||
@@ -1946,10 +1946,10 @@ mod tests {
|
||||
use crate::gpu::serialized::tests::fixture_function;
|
||||
(
|
||||
fixture_function(include_bytes!(
|
||||
"../../../../tests/suite/fixtures/shaders/vert.metallib"
|
||||
"../../../../tests/shaders/vert.metallib"
|
||||
)),
|
||||
fixture_function(include_bytes!(
|
||||
"../../../../tests/suite/fixtures/shaders/frag.metallib"
|
||||
"../../../../tests/shaders/frag.metallib"
|
||||
)),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1121,7 +1121,7 @@ fn indirect_states_of_direct_arguments_are_metals_nserror() {
|
||||
macro_rules! shader {
|
||||
($name:literal) => {
|
||||
&include_bytes!(concat!(
|
||||
"../../../../../../tests/suite/fixtures/shaders/",
|
||||
"../../../../../../tests/shaders/",
|
||||
$name,
|
||||
".metallib"
|
||||
))[..]
|
||||
@@ -1321,7 +1321,7 @@ fn unrasterized_states_are_metals() {
|
||||
macro_rules! shader {
|
||||
($name:literal) => {
|
||||
&include_bytes!(concat!(
|
||||
"../../../../../../tests/suite/fixtures/shaders/",
|
||||
"../../../../../../tests/shaders/",
|
||||
$name,
|
||||
".metallib"
|
||||
))[..]
|
||||
@@ -1401,7 +1401,7 @@ fn an_input_no_vertex_output_writes_is_metals() {
|
||||
macro_rules! shader {
|
||||
($name:literal) => {
|
||||
&include_bytes!(concat!(
|
||||
"../../../../../../tests/suite/fixtures/shaders/",
|
||||
"../../../../../../tests/shaders/",
|
||||
$name,
|
||||
".metallib"
|
||||
))[..]
|
||||
|
||||
@@ -27,7 +27,7 @@ use reims_vgpu_core::platform::values::{RenderPipelineDesc, SamplerDesc, Texture
|
||||
use reims_vgpu_core::raise::OnFault;
|
||||
use zerocopy::IntoBytes;
|
||||
|
||||
use super::draw_cost::{counts, fixture, spread, suite_shaders};
|
||||
use super::draw_cost::{counts, fixture, spread, test_shaders};
|
||||
use super::{GraphicsDecoder, ObjHandle};
|
||||
use crate::platform::ApiPlatform;
|
||||
|
||||
@@ -121,7 +121,7 @@ fn made<P: ApiPlatform>(kind: Kind, n: u64) -> (GraphicsDecoder<P>, P::Device) {
|
||||
_ => None,
|
||||
};
|
||||
let kernel = matches!(kind, Kind::ComputePipeline).then(|| {
|
||||
let path = suite_shaders().join("compute_add.metallib");
|
||||
let path = test_shaders().join("compute_add.metallib");
|
||||
let library = device
|
||||
.new_library(&std::fs::read(path).unwrap())
|
||||
.unwrap()
|
||||
|
||||
@@ -507,20 +507,20 @@ fn command_buffer(shape: Shape, cb: usize, cb_obj_id: u64) -> Vec<u8> {
|
||||
message
|
||||
}
|
||||
|
||||
/// The suite's committed shaders, `tests/suite/fixtures/shaders`, under the manifest directory
|
||||
/// The committed test shaders, `tests/shaders`, under the manifest directory
|
||||
/// cargo or nextest gives the test as it runs, which a run of a nextest archive on another host
|
||||
/// remaps to that host's tree.
|
||||
pub(super) fn suite_shaders() -> std::path::PathBuf {
|
||||
pub(super) fn test_shaders() -> std::path::PathBuf {
|
||||
std::path::PathBuf::from(
|
||||
std::env::var_os("CARGO_MANIFEST_DIR")
|
||||
.expect("CARGO_MANIFEST_DIR: run the tests with cargo or nextest"),
|
||||
)
|
||||
.join("../../tests/suite/fixtures/shaders")
|
||||
.join("../../tests/shaders")
|
||||
}
|
||||
|
||||
/// A function of the suite's fixture `name`.
|
||||
pub(super) fn fixture<P: Platform>(d: &P::Device, name: &str) -> P::Function {
|
||||
let path = suite_shaders().join(format!("{name}.metallib"));
|
||||
let path = test_shaders().join(format!("{name}.metallib"));
|
||||
let library = d
|
||||
.new_library(&std::fs::read(path).unwrap())
|
||||
.unwrap()
|
||||
|
||||
@@ -81,7 +81,7 @@ do_corpus() { # the decode streams and references, copied again wherever their
|
||||
}
|
||||
do_stage() { # the candidate's tree, and vendor/qemu's source where the host has none yet
|
||||
rm -rf "$MSI_GATE/stage" && mkdir -p "$MSI_GATE/stage"
|
||||
git -C "$WS" archive --format=tar "$SHA" -- . ':(exclude)tests/suite/expected' | tar -C "$MSI_GATE/stage" -xmf -
|
||||
git -C "$WS" archive --format=tar "$SHA" -- . | tar -C "$MSI_GATE/stage" -xmf -
|
||||
local Q=$MSI_GATE/qemu/$QC G=$MSI_GATE/qemu-git
|
||||
if [[ ! -f $Q/src/configure ]]; then
|
||||
# A bare clone sharing MSI_QEMU_SEED's objects, with the commits it lacks from the bundle.
|
||||
|
||||
@@ -1,38 +1,17 @@
|
||||
#!/bin/bash
|
||||
# A new worktree whose large tracked files are APFS clones of the main checkout's, so git writes
|
||||
# only the files that differ. Its builds run in its own target/ (no CARGO_TARGET_DIR), in the
|
||||
# A new worktree on a new branch. Its builds run in its own target/ (no CARGO_TARGET_DIR), in the
|
||||
# environment of scripts/internal/dev-env.sh, which builds through kache where it is installed
|
||||
# (docs/development.md).
|
||||
#
|
||||
# scripts/internal/new-worktree.sh PATH BRANCH [START]
|
||||
#
|
||||
# BRANCH is a new branch at START (default: the main checkout's HEAD). tests/suite holds 257 of
|
||||
# the tree's 278 MiB (its expected and generated files), and a plain `git worktree add` writes
|
||||
# every byte of it again. Here the main checkout's tests/suite is cloned into PATH first (on
|
||||
# macOS cp -c, which writes nothing until a file changes; on Linux cp --reflink=auto, a copy
|
||||
# where the filesystem has no reflinks). git then takes each clone that matches START's blob as
|
||||
# clean and writes the rest, and the clone's files START does not track are removed, so the
|
||||
# worktree holds START's tree exactly, whatever the main checkout's files are.
|
||||
#
|
||||
# The worktree is added from the main checkout: a new worktree takes the sparse-checkout
|
||||
# settings of the one it is added from.
|
||||
# BRANCH is a new branch at START (default: the main checkout's HEAD). The worktree is added from
|
||||
# the main checkout: a new worktree takes the sparse-checkout settings of the one it is added from.
|
||||
set -euo pipefail
|
||||
[[ $# -ge 2 ]] || { echo "usage: scripts/internal/new-worktree.sh PATH BRANCH [START]" >&2; exit 2; }
|
||||
path=$1 branch=$2
|
||||
main=$(git worktree list --porcelain | sed -n '1s/^worktree //p')
|
||||
start=${3:-$(git -C "$main" rev-parse HEAD)}
|
||||
big=tests/suite
|
||||
[[ ! -e $path ]] || { echo "new-worktree: $path exists" >&2; exit 1; }
|
||||
git -C "$main" worktree add -q --no-checkout -b "$branch" "$path" "$start"
|
||||
path=$(cd "$path" && pwd)
|
||||
mkdir -p "$path/$(dirname "$big")"
|
||||
if [[ $(uname) == Darwin ]]; then
|
||||
cp -c -p -R "$main/$big" "$path/$big"
|
||||
else
|
||||
cp -a --reflink=auto "$main/$big" "$path/$big"
|
||||
fi
|
||||
git -C "$path" reset -q
|
||||
git -C "$path" update-index -q --refresh || true
|
||||
git -C "$path" checkout -q -- .
|
||||
git -C "$path" clean -q -f -d -x -- "$big"
|
||||
echo "new-worktree: $path on $branch at $(git -C "$path" rev-parse --short HEAD)"
|
||||
git -C "$main" worktree add -q -b "$branch" "$path" "$start"
|
||||
echo "new-worktree: $(cd "$path" && pwd) on $branch at $(git -C "$path" rev-parse --short HEAD)"
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# Compiles each .metal here into its own metallib, the test shaders the
|
||||
# platforms' and the graphics device's tests load as a guest's libraries, and
|
||||
# guest/bundle's tests read. The metallibs are committed, so a test's input
|
||||
# bytes do not drift with the toolchain; run this on a Mac only to change a
|
||||
# shader. two.metal holds two kernels on purpose, fc.metal an unspecialized
|
||||
# function constant, and kernel_trunc.metallib is kernel.metallib cut to
|
||||
# 1000 bytes.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
for m in *.metal; do
|
||||
n="${m%.metal}"
|
||||
xcrun -sdk macosx metal -c "$m" -o "$n.air"
|
||||
xcrun -sdk macosx metallib "$n.air" -o "$n.metallib"
|
||||
rm "$n.air"
|
||||
done
|
||||
head -c 1000 kernel.metallib > kernel_trunc.metallib
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,7 +0,0 @@
|
||||
# What running the suite leaves behind.
|
||||
bin/
|
||||
out/
|
||||
__pycache__/
|
||||
*.air
|
||||
cov/
|
||||
*.profraw
|
||||
@@ -1,369 +0,0 @@
|
||||
# The behaviour-lock suite
|
||||
|
||||
This suite writes down what this codebase does, as a hypervisor sees it, so
|
||||
that no change can alter it unnoticed. [docs/testing.md](../../docs/testing.md)
|
||||
is its specification; its section 1 holds the decisions everything here
|
||||
follows:
|
||||
|
||||
- **Drive it as a hypervisor does.** The library's C API, called the way
|
||||
QEMU calls it. Nothing of the implementation is included or imported.
|
||||
- **Assert what the machine does**: registers, guest memory, interrupts, the
|
||||
host's callbacks, display callbacks and pixels, the suspend blob, and
|
||||
whether a run completes, faults, dies or hangs.
|
||||
- **Lock it exactly.** Expected files are recorded from the checkout's own
|
||||
build, a person reviews them, and a run may differ from them in nothing.
|
||||
Only diagnostics (`t_*` timing and `d_*` fields: signals, messages) are
|
||||
ignored.
|
||||
- **Lock order** wherever the implementation establishes one.
|
||||
- **No VM boots.**
|
||||
|
||||
**Every change is checked against them.** The expected files record what
|
||||
the build did when they were recorded, and a tree must reproduce every one
|
||||
its predecessor passed (AGENTS.md, "Checking a change"). A change meant to
|
||||
alter behaviour records the affected files again from its own build (`make
|
||||
bless ARGS=--update`), and the diff of those files is reviewed in the same
|
||||
commit.
|
||||
|
||||
**Citations.** The suite cites where a layout or a behaviour comes from:
|
||||
docs/testing.md's guest ABI reference (section 6), the code that implements
|
||||
it, or, for QEMU's side, `vendor/qemu/hw/display/apple-gfx*.c`. A scenario's
|
||||
docstring is written into its generated file's `#` line, which the input
|
||||
hash leaves out ("The input hash", below), so a docstring can change without
|
||||
any expected file being recorded again.
|
||||
|
||||
## Layout
|
||||
|
||||
```
|
||||
runner/pgrun.m the host: plays the hypervisor and guest RAM through the C API
|
||||
(reims_vgpu.h), writes observations
|
||||
runner/build.sh builds it against a dist tree (`cargo xtask dist`), linked with its
|
||||
libreims_vgpu.dylib by LC_RPATH (bin/pgrun-*)
|
||||
pgtest/ the library and the orchestrator (python3 -m pgtest)
|
||||
abi.py the guest ABI's constants, each citing its source
|
||||
scenario.py Scenario: guest memory, registers, commands, waits, checkpoints
|
||||
fifo.py the root FIFO and child FIFOs
|
||||
task.py tasks, page tables, object lists, segments and records
|
||||
<area>.py builders for one area (objects, decoders, displays...)
|
||||
cli.py gen, list, run, bless, cov, diffsum
|
||||
diffsum.py a change to expected files by record kind and by scenario
|
||||
coverage.py cov: the library instrumented, and the report
|
||||
normalize.py what of a log is compared
|
||||
test_*.py unit tests of the tooling's pure parts (no GPU, no runner)
|
||||
scenarios/<area>.py scenarios, registered with @scenario
|
||||
fixtures/ committed inputs: shader sources, their metallibs and
|
||||
the build.sh that reproduces them
|
||||
generated/ the scenarios as JSON Lines (committed, generated)
|
||||
expected/<area>/<scenario>/<setup>[@host].jsonl the locked observations
|
||||
(<setup> is a chain such as map-isolate for a scenario in phases)
|
||||
```
|
||||
|
||||
## Using it
|
||||
|
||||
```sh
|
||||
make test # every scenario, against the checkout's library (target/dist)
|
||||
make test TEST='fifo*' # scenarios or modules matching fnmatch patterns
|
||||
make bless TEST=fifo # record expected files for new or changed scenarios
|
||||
make bless TEST=fifo ARGS=--update # record them again after a deliberate change of behaviour
|
||||
make coverage # the whole suite on the library built instrumented, in build/cov/dist
|
||||
```
|
||||
|
||||
From `tests/suite`, `python3 -m pgtest` takes the same commands with more
|
||||
options: `run -k PATTERNS --setup map -j N -v --dist DIR`,
|
||||
`bless -k PATTERNS --runs N --update`,
|
||||
`cov -k PATTERNS --tag NAME --files fifo/,device/` (a run's report, limited
|
||||
to those files), `cov --tag NAME --show fifo/fifo.rs` (the lines that run
|
||||
never reached) and `cov --per-case` (which cases reach each line). `run` and
|
||||
`bless` default to the checkout's dist tree (`$PGTEST_DIST` overrides it).
|
||||
`python3 -m unittest pgtest.test_reach pgtest.test_coverage
|
||||
pgtest.test_diffsum` runs the tooling's unit tests, with no GPU.
|
||||
|
||||
**Reviewing a re-record.** `python3 -m pgtest diffsum [A [B]]` summarizes
|
||||
how the expected files changed between revision A (default `HEAD`) and B
|
||||
(default the working tree), and `diffsum --dirs OLD NEW` between two result
|
||||
sets laid out as `expected/` is: per record kind, the records added, removed
|
||||
and changed, each field added, removed or changed with its commonest value
|
||||
changes; per scenario, the files and records changed. `-k` limits it to
|
||||
some scenarios or modules.
|
||||
|
||||
**Selective runs.** With `-k`, `run`, `bless` and `cov` import and build only
|
||||
the scenarios the patterns need (`registry.load`), so one case starts in a
|
||||
few hundredths of a second instead of the 6 s that building all of them
|
||||
takes. A name is known only once its function has run, so an index,
|
||||
`~/.cache/pvd-pgtest/index-<checkout>.json`, records the names each
|
||||
function builds, keyed by the sources that function's module is built from:
|
||||
its own and every pgtest or scenario module it imports. A module whose
|
||||
sources changed since it was indexed is built whole and indexed again. An
|
||||
edit to a helper every module imports (`scenario.py`), or a missing index,
|
||||
costs one full build. The index decides only which functions run: what a
|
||||
case runs is built from the sources, and a function whose names differ from
|
||||
its entry makes the run build everything. `gen`, `list` and a run without
|
||||
`-k` build everything.
|
||||
|
||||
**Speed.** A case is latency-bound: the whole suite spends about 4% of its
|
||||
wall time on a CPU, and the rest in deadlines, settle windows and watchdogs
|
||||
that are meant to run out. So `-j` defaults to twice the CPUs (`PGTEST_JOBS`
|
||||
overrides it), and the full suite runs in a few minutes on a 16-CPU M3 Max.
|
||||
Those waits are what make "nothing more happened" an observation the
|
||||
library does not vouch for: no hook in the library (an idle or quiescence
|
||||
report) ends them early, and the suite's wall time is not a target.
|
||||
The orchestrator (`cli.run_all`) starts the longest cases first, by each
|
||||
case's last wall time (`out/durations.json`, written after every run; a case
|
||||
without one is estimated from its expected file). A case starts only while
|
||||
the machine has fewer than 600 IOSurface clients open
|
||||
(`PGTEST_IOSURFACE_HIGH`), and the scenarios that declare many isolated
|
||||
tasks (`Scenario.services`) share a budget of 300 (`PGTEST_SERVICE_BUDGET`),
|
||||
so no two of the four cases that define 255 isolated tasks ramp up together
|
||||
(the services run on threads of the runner's process, so the budget spaces
|
||||
out load, not IOSurface clients). `bless` schedules each of a case's three
|
||||
runs as a task of its own: every case's first runs, then the second, then
|
||||
the third, so the runs of one case meet different moments of the run.
|
||||
|
||||
**Blessing.** `bless` records from the build under test: the checkout's
|
||||
library, which `make bless` builds first. It runs each case three times
|
||||
(`--runs`), one process each, and records it only if all three complete and
|
||||
agree; a case whose runs differ is reported nondeterministic, and nothing is
|
||||
written for it (rule 9). By default it records only the expected files that
|
||||
are missing or were recorded from other input, and never rewrites one whose
|
||||
input is unchanged: an expected file changes when its scenario does.
|
||||
`--update` records the selected cases again even when their input is
|
||||
unchanged. It is for a deliberate change of behaviour, and the diff of the
|
||||
expected files it rewrites is reviewed in the same commit as the change.
|
||||
Review every new or changed expected file before committing it: it is now
|
||||
the definition of correct.
|
||||
|
||||
**The input hash.** An expected file's header records the hash of its
|
||||
input: the generated scenario's ops (its file without the `#` doc line) and
|
||||
the sources of `runner/pgrun.m` and `pgtest/normalize.py`. `run` fails a
|
||||
case whose expected file was recorded from other input, and `bless` records
|
||||
it again. So a change to the runner or to `normalize.py` fails every case
|
||||
until `make bless` records the whole suite again, and that diff is reviewed
|
||||
like any other.
|
||||
|
||||
**Host keys.** The expected files of a `host=True` scenario (rule 5) are
|
||||
keyed by the host, `<setup>@<key>.jsonl`, the key being the GPU model, its
|
||||
core count and the macOS build (`AppleM3Max-40c-26A434`). After an OS update
|
||||
the new build's files are missing, and `run` reports those cases missing;
|
||||
`make bless` records them, and the old build's files stay while a host
|
||||
still runs it, then go. Review the new files against the old key's before
|
||||
committing them.
|
||||
|
||||
**Load-sensitive cases.** These can fail under concurrent GPU load. Each
|
||||
failed at least once in a run beside other GPU work and passed when run
|
||||
again alone. A name with no setup means every setup the scenario runs in.
|
||||
- `mutgap4_res_view_synchronize_isolate[isolate]`,
|
||||
`covgap_svc_*_hole_synchronize_isolate[isolate]` (among them
|
||||
`covgap_svc_texture_hole_synchronize_isolate[isolate]`) and
|
||||
`mutgap3_res_texture_record_clamps`: the synchronize paths, each seen in
|
||||
a whole-suite run;
|
||||
- `fresh_res_delete_while_kernel_held` and
|
||||
`fresh_res_info_while_kernel_held`, which hold a kernel for 8 s: their
|
||||
cases saw the FIFO fault while the kernel ran, or the kernel end early;
|
||||
- `render_objects_depth_stencil[blocks]` and `render_objects_pipeline[map]`,
|
||||
which run alone within their own orchestrator (`exclusive`) but not
|
||||
beside another;
|
||||
- `interplay_boot_7[isolate]`, `interplay_dag_3[map]`,
|
||||
`interplay_dag_45[map]`, `interplay_decodewalk_7[map]`,
|
||||
`interplay_displaywalk_43[blocks]`, `interplay_displaywalk_44[map]`,
|
||||
`interplay_fifo_compute_join[map]`,
|
||||
`interplay_fifo_delete_exec_pending[blocks]`,
|
||||
`interplay_fifo_fan_out_fan_in[map]`, `interplay_iosfcwalk_9[map]`,
|
||||
`interplay_limits_all_tasks[isolate]`, `interplay_mix_43[isolate]`,
|
||||
`interplay_rand_4`, `interplay_rand_20`, `interplay_rand_33[isolate]`,
|
||||
`interplay_rand_39[isolate]`, `interplay_rand_42[blocks]`,
|
||||
`interplay_scanout_service_death_beside_frames[isolate]`,
|
||||
`interplay_session_efi_live_handover[isolate]`,
|
||||
`interplay_versions_efi_245[map]`,
|
||||
`interplay_versions_efi_after_2[blocks]`,
|
||||
`interplay_versions_efi_after_2[isolate]`,
|
||||
`mutgap2_rdec_sampler_bindings[map]`,
|
||||
`newops_held_present_timeout[blocks]` and `suspend_resume_efi[isolate]`:
|
||||
a present read back zero pixels, a wait saw its FIFO fault or timed
|
||||
out, or a dump lost a write;
|
||||
- `interplay_boot_8`, `interplay_boot_15`, `interplay_boot_17`,
|
||||
`interplay_boot_18` and `interplay_marathon_17`, beside other whole
|
||||
suites: a frame's wait returned `RVG_ERR_GPU`;
|
||||
- `textures_formats[blocks]`: a format's probe slot stayed unwritten;
|
||||
- `icb_blit_commands[blocks]`, `interplay_iosfcwalk_16[map]`,
|
||||
`interplay_iosfcwalk_18[map]`, `interplay_iosfcwalk_18[isolate]`,
|
||||
`interplay_marathon_24[isolate]` and
|
||||
`mutgap2_dev_iosfc_host_only_texture[isolate]`, each seen once in a
|
||||
whole-suite run;
|
||||
- `interplay_life_resume_rich[blocks]`, `mutgap_tex_shared_guest_valid[map]`
|
||||
and `resources_private_buffer_sync_commands[isolate]`, together in one
|
||||
whole-suite run of the `checked` build: a fault's flag read clear after
|
||||
its offset was set, a dump lost a write, and a wait saw its FIFO fault.
|
||||
|
||||
Run such a case again alone before calling it a failure.
|
||||
|
||||
## Writing scenarios
|
||||
|
||||
A scenario module is `scenarios/<area>.py`. Each function decorated with
|
||||
`@scenario` returns a `Scenario` or a list of them; a scenario's name is
|
||||
unique across the suite and starts with its area. `smoke.py` and
|
||||
`smoke_host.py` are short examples of every mechanism. A function builds the
|
||||
same scenarios whatever the process built before it: a selective run builds
|
||||
only the functions it needs ("Selective runs", above), so no function may
|
||||
depend on state another left behind.
|
||||
|
||||
```python
|
||||
@scenario
|
||||
def fifo_nop_twice():
|
||||
"""What it locks, in a sentence or two."""
|
||||
s = Scenario("fifo_nop_twice", doc=fifo_nop_twice.__doc__)
|
||||
f = s.bring_up() # version 245, root page, root FIFO
|
||||
s.submit(abi.OP_NOP) # write, doorbell, wait for its stamp
|
||||
s.submit(abi.OP_NOP)
|
||||
s.events("two NOPs") # interrupts and callbacks so far
|
||||
s.r(abi.R_FIFO_READ)
|
||||
s.diff("after") # every byte of guest RAM the device changed
|
||||
return s
|
||||
```
|
||||
|
||||
The rules:
|
||||
|
||||
1. **Checkpoint after a wait.** Take an observation (`r`, `diff`, `dump`,
|
||||
`events`) only after waiting for something the guest sees: `submit()`
|
||||
waits for the command's stamp, `submit(..., fault=True)` for the fault
|
||||
(0x102c reads 1); `wait()` takes a guest u32 (`gpa`, `eq`/`ge`/`ne`), a
|
||||
register that reading does not clear (`mmio`, `mmio_eq`/`mmio_ne`), event
|
||||
counts (`irqs`, `callbacks`, `blocks`, `iosfc_irqs`) or a callback kind
|
||||
(`cb="newFrame"`). Never read 0x1014 or 0x1018 (read-to-clear) inside a
|
||||
wait. `events()` also settles first, so its counts are exact. But one
|
||||
interrupt publishes every stamp ready at a FIFO's head, so after a
|
||||
batch with GPU work in it (an exec with commands behind it) how many
|
||||
interrupts came is timing: count them with `events(collapse=["irq"])`
|
||||
(runs of interrupts count once; without `order`, the count says only
|
||||
whether any came). The runner settles before its `willSuspend` op
|
||||
(`rvg_device_will_suspend`) too, which drops any interrupt not yet raised
|
||||
(`no_settle=True` skips it).
|
||||
2. **After a fault, resume** (`s.resume_root()`, or 0x1028 for a child FIFO)
|
||||
before submitting more; a faulted FIFO publishes nothing else.
|
||||
3. **One death per scenario, at its end.** A host death ends the process: put
|
||||
the command that kills it last. With isolation, a death in the service's
|
||||
own code is a fault the guest sees, and the scenario can go on; a death
|
||||
inside Metal ends the process from the task's thread, asynchronously to
|
||||
the ops after its doorbell, so its command goes behind every other, its
|
||||
doorbell is rung last and its fault is the first wait
|
||||
(`interplay_servicewalk` does; `exec_objects.submit_last` puts 256 NOPs
|
||||
ahead of it). A death on another thread (a FIFO's, the display thread's)
|
||||
waits for the record of the MMIO access, api call or encode in progress,
|
||||
if that call returns (`on_signal` in `runner/pgrun.m`): so the doorbell
|
||||
that kills the host is always in the log, however the threads were
|
||||
scheduled. Nothing is recorded after the
|
||||
death. A death still races with later ops that can complete without it:
|
||||
a wait that something else satisfies, or the end's settle window.
|
||||
4. **Hangs**: give a scenario that hangs a short `watchdog_s` (8), and a wait
|
||||
that is expected to time out a short `timeout_ms` (500). The expected
|
||||
outcome is then `watchdog` at the op that hung.
|
||||
5. **Host values.** Set `host=True` when an observation reports the host
|
||||
rather than computes something: device info, compute info, heap sizes
|
||||
and alignments, GPU addresses and resource IDs, and any pixel that
|
||||
the library's shaders draw (`encode`). Its expected files are then keyed
|
||||
by the host (GPU model, core count, macOS build). Where a value can be
|
||||
computed from Metal in the test instead, do so (`s.metal(...)`).
|
||||
6. **Setups.** A scenario runs in all three host setups (`blocks`, `map`,
|
||||
`isolate`) unless it cannot mean anything in one; where the setups
|
||||
differ, that difference is behaviour to lock (docs/testing.md,
|
||||
section 6.10). Restrict with `setups=(...)` only with a reason in the
|
||||
docstring.
|
||||
7. **Never observe memory nothing wrote** (docs/testing.md, sections 5.3
|
||||
and 7.5).
|
||||
Prefer `task.dump(va, n)` or `s.diff(gpa=..., length=...)` over whole-RAM
|
||||
diffs when only a region matters, and keep expected files readable.
|
||||
8. **Cite the source** of every layout a builder writes ("Citations"
|
||||
above). Read the code to learn the ABI; never import or include it.
|
||||
9. **Deterministic by construction.** If `bless` reports a case
|
||||
nondeterministic, the scenario is observing timing: wait for the right
|
||||
thing. Never loosen a comparison. One trap for walkers: in the blocks
|
||||
setup the runner numbers host tasks in `create_task` call order, and
|
||||
block records name those numbers, so two task defines in flight at once
|
||||
on different FIFOs make the records vary. Make each define wait on the
|
||||
one before (`interplay_servicewalk` does).
|
||||
10. **GPU faults and compiler crashes run alone.** A command buffer that
|
||||
faults or hangs the GPU makes Metal discard other processes' work too
|
||||
("victim of GPU error" in the system log), and a pipeline that crashes
|
||||
Metal's compiler service ("Compilation failed with XPC_ERROR" in the
|
||||
log) costs retries and crash reports that under load outlast the
|
||||
watchdog. A scenario that causes either passes `exclusive=True`:
|
||||
the orchestrator runs it by itself, after the others. Nothing keeps
|
||||
two orchestrators apart: a case run beside another orchestrator can
|
||||
fail as the victim of its fault. Such a failure shows "Discarded
|
||||
(victim of GPU error/recovery)" for the case's process in the log; run
|
||||
the case again. `log show
|
||||
--predicate 'eventMessage CONTAINS "Caused GPU"'` names the culprit's
|
||||
process; the runner's first record carries its `d_pid`.
|
||||
|
||||
## Phases: a migration to a new process
|
||||
|
||||
A suspend and resume on one host API is a migration: the VM is restored
|
||||
by a new process, often on another host. `Scenario.phase()` splits a
|
||||
scenario there, and each phase runs in a runner process of its own:
|
||||
|
||||
```python
|
||||
s = Scenario("fresh_resume_x", setups=("map", ("map", "isolate")))
|
||||
... # phase 0: bring up, drive, then
|
||||
s.api("willSuspend")
|
||||
s.api("finishSuspend") # the blob, in slot "s"
|
||||
s.phase() # a new process: RAM and slots handed on
|
||||
s.api("willResume", slot="s")
|
||||
s.api("didResume")
|
||||
... # phase 1 drives the guest on
|
||||
```
|
||||
|
||||
- **What is handed on.** `phase()` ends the phase with `handoff_save`: every
|
||||
guest RAM range (the host's bytes and the scenario's shadow of them, so
|
||||
a diff in the next process reports what the device changed, as in one
|
||||
process) and every blob slot, as an image in a directory the
|
||||
orchestrator owns (a temporary one a case run, removed after). The next
|
||||
phase's `config` loads it (`handoff_load`) before creating its device,
|
||||
by guest physical address: whatever of the image overlaps the target's
|
||||
RAM is copied, and the rest starts zeroed. That is what a VM restore
|
||||
carries; the IOSurface host device's state is not (no public or QEMU
|
||||
API saves it), so the target's is new.
|
||||
- **Each phase may differ.** `phase(ram_ranges=[(gpa, len), ...])` gives the
|
||||
target other RAM (smaller, larger, split, elsewhere); `displays=[...]`,
|
||||
`descriptor={...}`, `iosfc=...` change its config (a value of `None`
|
||||
drops the key: `displays=None` for a device with no display, then
|
||||
`api new_display` where the host attaches one); `ram=False` loads the
|
||||
blobs only (a lost memory image); `save=False` ends a phase without an
|
||||
image, so the next loads the earlier one again (one image resumed twice).
|
||||
Guest addresses (`pa`, `pfn`) stay the first phase's.
|
||||
- **Setups are chains.** Each entry of `setups` is a setup for every phase
|
||||
(`"map"`) or one a phase (`("map", "isolate")`, written `map-isolate`):
|
||||
the case `name[map-isolate]` and its expected file `map-isolate.jsonl`.
|
||||
List the chains a scenario means; never a cross product. `--setup map`
|
||||
selects the chains made only of map, or `--setup map-isolate` the one.
|
||||
- **Counters start again.** Interrupts, callbacks, block calls and the
|
||||
blocks setup's host task numbers are counted per process, so every
|
||||
`wait(irqs=..., callbacks=..., cb_count=...)` in a phase counts from 0.
|
||||
A builder that keeps such a count registers `s.on_phase(fn)` to reset it
|
||||
(`IOSFC`, `Session`, the compute objects do).
|
||||
- **The expected file** holds the phases' observations in order, each record
|
||||
tagged `"phase": k`, and each phase ends in its own outcome record. A
|
||||
phase that does not complete (it dies, hangs or errs) ends the case: the
|
||||
phases after it do not run. A one-phase scenario's records carry no
|
||||
`phase` tag.
|
||||
- **Mutating a blob.** The `willResume` op takes `patch=[[offset, u32],
|
||||
...]` and `truncate=n`, applied to the blob it passes. A slot's blob is
|
||||
the library's own (version 1, docs/testing.md section 6.24), with every
|
||||
byte written, so a mutation of it reads nothing unwritten (rule 7).
|
||||
Before mutating a slot's blob whose second word is 2, the layout of
|
||||
Apple's suspend state, which the library never writes, the runner zeroes
|
||||
its unwritten tail; `canonical=True` asks for that step with no
|
||||
mutation.
|
||||
|
||||
`run`, `bless` and `cov` all run a case through `cli.run_case`, so they
|
||||
handle phases alike; bless runs the whole chain three times.
|
||||
|
||||
## Coverage
|
||||
|
||||
`make coverage` (or `python3 -m pgtest cov`) builds `build/cov`: the library,
|
||||
with the workspace's crates instrumented (`cargo llvm-cov show-env`) in its
|
||||
own target directory. It runs the selected scenarios on it and reports, per
|
||||
crate file, the lines the library reached (`cov/<tag>/report.txt`;
|
||||
`summary.json` adds its functions, regions and branches). It is never a
|
||||
build under test: `make test` and `make bless` use the plain library.
|
||||
Isolated tasks run in the case's own process, so each case's profile holds
|
||||
every line it reached. `--per-case` gives each case its own profiles and
|
||||
writes `map.json`, each line and the cases that reach it.
|
||||
`pgtest/coverage.py`'s docstring has the method.
|
||||
@@ -1,27 +0,0 @@
|
||||
{"expected": "blit_buffer_texture_copies", "host": null, "input": "da9c4ea9e5a21b2a6874232a91ca484f3b071faf8a28960bd9e0bc1e5301635b", "setup": "blocks"}
|
||||
{"ev": "binding", "i": 0, "library": "<build>", "setup": "blocks"}
|
||||
{"ev": "device", "i": 0, "ok": 1}
|
||||
{"ev": "mmio_w", "i": 1, "off": "0x1034", "val": "0xf5"}
|
||||
{"ev": "mmio_w", "i": 2, "off": "0x101c", "val": "0x10001"}
|
||||
{"ev": "mmio_w", "i": 3, "off": "0x1030", "val": "0x10002"}
|
||||
{"ev": "mmio_w", "i": 4, "off": "0x1004", "val": "0x8000"}
|
||||
{"ev": "mmio_w", "i": 5, "off": "0x1010", "val": "0x400"}
|
||||
{"ev": "mmio_w", "i": 6, "off": "0x1000", "val": "0x1"}
|
||||
{"ev": "mmio_w", "i": 84, "off": "0x1008", "val": "0x1c"}
|
||||
{"ev": "wait", "i": 85, "label": "stamp 1 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 88, "off": "0x1008", "val": "0x34"}
|
||||
{"ev": "wait", "i": 89, "label": "stamp 2 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 92, "off": "0x1008", "val": "0x8c"}
|
||||
{"ev": "wait", "i": 93, "label": "stamp 3 on FIFO 0", "ok": true}
|
||||
{"ev": "dump", "gpa": "0x40038000", "hex": "000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000000000000000000000000000", "i": 94, "label": "T1", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x4003c000", "hex": "000000000000000000000000000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000", "i": 95, "label": "T2", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x40040000", "hex": "000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000000000000000000000000000", "i": 96, "label": "T3", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x40044000", "hex": "000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000000000000000000000000000", "i": 97, "label": "T4", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x40048000", "hex": "0000000048494a4b4c4d4e4f58595a5b5c5d5e5f00000000", "i": 98, "label": "out", "len": "0x18"}
|
||||
{"ev": "mmio_w", "i": 100, "off": "0x1008", "val": "0x9c"}
|
||||
{"ev": "wait", "i": 101, "label": "stamp 4 on FIFO 0", "ok": true}
|
||||
{"blocks": [{"blk": "createTask", "size": "0x1000000", "task": 0}, {"blk": "mapMemory", "ranges": [["0x40004000", "0x4000"]], "ret": true, "ro": false, "task": 0, "voff": "0x0"}, {"blk": "mapMemory", "ranges": [["0x40008000", "0x8000"]], "ret": true, "ro": false, "task": 0, "voff": "0x4000"}, {"blk": "createTask", "size": "0x100000", "task": 1}, {"blk": "mapMemory", "ranges": [["0x40010000", "0x4000"]], "ret": true, "ro": false, "task": 0, "voff": "0xc000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114000", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x40014000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x0"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x10", "pa": "0x40018000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114020", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x40034000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x20000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x10", "pa": "0x40018010", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114024", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x40038000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x24000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x10", "pa": "0x40018020", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114028", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x4003c000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x28000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x10", "pa": "0x40018030", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x4011402c", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x40040000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x2c000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x10", "pa": "0x40018040", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114030", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x40044000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x30000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x10", "pa": "0x40018050", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114034", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x40048000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x34000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114010", "ret": 1}, {"blk": "readMemory", "len": "0x1a8", "pa": "0x40024000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x40", "pa": "0x40018060", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x40", "pa": "0x400180a0", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x40", "pa": "0x400180e0", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x40", "pa": "0x40018120", "ret": 1}, {"blk": "unmapMemory", "len": "0x4000", "task": 0, "voff": "0xc000"}, {"blk": "destroyTask", "task": 1}], "ev": "events", "i": 102, "irqs": 4, "label": "end"}
|
||||
{"ev": "events", "i": 103, "irqs": 0, "label": "end"}
|
||||
{"ev": "teardown", "i": 103}
|
||||
{"ev": "end", "i": 103}
|
||||
{"ev": "outcome", "kind": "completed"}
|
||||
@@ -1,27 +0,0 @@
|
||||
{"expected": "blit_buffer_texture_copies", "host": null, "input": "da9c4ea9e5a21b2a6874232a91ca484f3b071faf8a28960bd9e0bc1e5301635b", "setup": "isolate"}
|
||||
{"ev": "binding", "i": 0, "library": "<build>", "setup": "isolate"}
|
||||
{"ev": "device", "i": 0, "ok": 1}
|
||||
{"ev": "mmio_w", "i": 1, "off": "0x1034", "val": "0xf5"}
|
||||
{"ev": "mmio_w", "i": 2, "off": "0x101c", "val": "0x10001"}
|
||||
{"ev": "mmio_w", "i": 3, "off": "0x1030", "val": "0x10002"}
|
||||
{"ev": "mmio_w", "i": 4, "off": "0x1004", "val": "0x8000"}
|
||||
{"ev": "mmio_w", "i": 5, "off": "0x1010", "val": "0x400"}
|
||||
{"ev": "mmio_w", "i": 6, "off": "0x1000", "val": "0x1"}
|
||||
{"ev": "mmio_w", "i": 84, "off": "0x1008", "val": "0x1c"}
|
||||
{"ev": "wait", "i": 85, "label": "stamp 1 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 88, "off": "0x1008", "val": "0x34"}
|
||||
{"ev": "wait", "i": 89, "label": "stamp 2 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 92, "off": "0x1008", "val": "0x8c"}
|
||||
{"ev": "wait", "i": 93, "label": "stamp 3 on FIFO 0", "ok": true}
|
||||
{"ev": "dump", "gpa": "0x40038000", "hex": "000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000000000000000000000000000", "i": 94, "label": "T1", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x4003c000", "hex": "000000000000000000000000000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000", "i": 95, "label": "T2", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x40040000", "hex": "000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000000000000000000000000000", "i": 96, "label": "T3", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x40044000", "hex": "000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000000000000000000000000000", "i": 97, "label": "T4", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x40048000", "hex": "0000000048494a4b4c4d4e4f58595a5b5c5d5e5f00000000", "i": 98, "label": "out", "len": "0x18"}
|
||||
{"ev": "mmio_w", "i": 100, "off": "0x1008", "val": "0x9c"}
|
||||
{"ev": "wait", "i": 101, "label": "stamp 4 on FIFO 0", "ok": true}
|
||||
{"ev": "events", "i": 102, "irqs": 4, "label": "end"}
|
||||
{"ev": "events", "i": 103, "irqs": 0, "label": "end"}
|
||||
{"ev": "teardown", "i": 103}
|
||||
{"ev": "end", "i": 103}
|
||||
{"ev": "outcome", "kind": "completed"}
|
||||
@@ -1,27 +0,0 @@
|
||||
{"expected": "blit_buffer_texture_copies", "host": null, "input": "da9c4ea9e5a21b2a6874232a91ca484f3b071faf8a28960bd9e0bc1e5301635b", "setup": "map"}
|
||||
{"ev": "binding", "i": 0, "library": "<build>", "setup": "map"}
|
||||
{"ev": "device", "i": 0, "ok": 1}
|
||||
{"ev": "mmio_w", "i": 1, "off": "0x1034", "val": "0xf5"}
|
||||
{"ev": "mmio_w", "i": 2, "off": "0x101c", "val": "0x10001"}
|
||||
{"ev": "mmio_w", "i": 3, "off": "0x1030", "val": "0x10002"}
|
||||
{"ev": "mmio_w", "i": 4, "off": "0x1004", "val": "0x8000"}
|
||||
{"ev": "mmio_w", "i": 5, "off": "0x1010", "val": "0x400"}
|
||||
{"ev": "mmio_w", "i": 6, "off": "0x1000", "val": "0x1"}
|
||||
{"ev": "mmio_w", "i": 84, "off": "0x1008", "val": "0x1c"}
|
||||
{"ev": "wait", "i": 85, "label": "stamp 1 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 88, "off": "0x1008", "val": "0x34"}
|
||||
{"ev": "wait", "i": 89, "label": "stamp 2 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 92, "off": "0x1008", "val": "0x8c"}
|
||||
{"ev": "wait", "i": 93, "label": "stamp 3 on FIFO 0", "ok": true}
|
||||
{"ev": "dump", "gpa": "0x40038000", "hex": "000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000000000000000000000000000", "i": 94, "label": "T1", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x4003c000", "hex": "000000000000000000000000000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000", "i": 95, "label": "T2", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x40040000", "hex": "000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000000000000000000000000000", "i": 96, "label": "T3", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x40044000", "hex": "000000000000000000000000000000000000000048494a4b4c4d4e4f000000000000000058595a5b5c5d5e5f0000000000000000000000000000000000000000", "i": 97, "label": "T4", "len": "0x40"}
|
||||
{"ev": "dump", "gpa": "0x40048000", "hex": "0000000048494a4b4c4d4e4f58595a5b5c5d5e5f00000000", "i": 98, "label": "out", "len": "0x18"}
|
||||
{"ev": "mmio_w", "i": 100, "off": "0x1008", "val": "0x9c"}
|
||||
{"ev": "wait", "i": 101, "label": "stamp 4 on FIFO 0", "ok": true}
|
||||
{"ev": "events", "i": 102, "irqs": 4, "label": "end"}
|
||||
{"ev": "events", "i": 103, "irqs": 0, "label": "end"}
|
||||
{"ev": "teardown", "i": 103}
|
||||
{"ev": "end", "i": 103}
|
||||
{"ev": "outcome", "kind": "completed"}
|
||||
@@ -1,25 +0,0 @@
|
||||
{"expected": "blit_continuation", "host": null, "input": "a30ea211e4936760a72387aea26b47b1ebef28142e53096ef1d67f21d93bb5a2", "setup": "blocks"}
|
||||
{"ev": "binding", "i": 0, "library": "<build>", "setup": "blocks"}
|
||||
{"ev": "device", "i": 0, "ok": 1}
|
||||
{"ev": "mmio_w", "i": 1, "off": "0x1034", "val": "0xf5"}
|
||||
{"ev": "mmio_w", "i": 2, "off": "0x101c", "val": "0x10001"}
|
||||
{"ev": "mmio_w", "i": 3, "off": "0x1030", "val": "0x10002"}
|
||||
{"ev": "mmio_w", "i": 4, "off": "0x1004", "val": "0x8000"}
|
||||
{"ev": "mmio_w", "i": 5, "off": "0x1010", "val": "0x400"}
|
||||
{"ev": "mmio_w", "i": 6, "off": "0x1000", "val": "0x1"}
|
||||
{"ev": "mmio_w", "i": 74, "off": "0x1008", "val": "0x1c"}
|
||||
{"ev": "wait", "i": 75, "label": "stamp 1 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 78, "off": "0x1008", "val": "0x34"}
|
||||
{"ev": "wait", "i": 79, "label": "stamp 2 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 83, "off": "0x1008", "val": "0x74"}
|
||||
{"ev": "wait", "i": 84, "label": "stamp 3 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 88, "off": "0x1008", "val": "0xb4"}
|
||||
{"ev": "wait", "i": 89, "label": "stamp 4 on FIFO 0", "ok": true}
|
||||
{"ev": "dump", "gpa": "0x40034000", "hex": "1111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222200000000000000000000000000000000", "i": 90, "label": "A", "len": "0x50"}
|
||||
{"ev": "mmio_w", "i": 92, "off": "0x1008", "val": "0xc4"}
|
||||
{"ev": "wait", "i": 93, "label": "stamp 5 on FIFO 0", "ok": true}
|
||||
{"blocks": [{"blk": "createTask", "size": "0x1000000", "task": 0}, {"blk": "mapMemory", "ranges": [["0x40004000", "0x4000"]], "ret": true, "ro": false, "task": 0, "voff": "0x0"}, {"blk": "mapMemory", "ranges": [["0x40008000", "0x8000"]], "ret": true, "ro": false, "task": 0, "voff": "0x4000"}, {"blk": "createTask", "size": "0x100000", "task": 1}, {"blk": "mapMemory", "ranges": [["0x40010000", "0x4000"]], "ret": true, "ro": false, "task": 0, "voff": "0xc000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114000", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x40014000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x0"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114004", "ret": 1}, {"blk": "readMemory", "len": "0x10", "pa": "0x40018000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114020", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x40034000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x20000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114010", "ret": 1}, {"blk": "readMemory", "len": "0x28", "pa": "0x40024000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114010", "ret": 1}, {"blk": "readMemory", "len": "0x30", "pa": "0x40024100", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114010", "ret": 1}, {"blk": "readMemory", "len": "0x28", "pa": "0x40024000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40114010", "ret": 1}, {"blk": "readMemory", "len": "0x30", "pa": "0x40024100", "ret": 1}, {"blk": "unmapMemory", "len": "0x4000", "task": 0, "voff": "0xc000"}, {"blk": "destroyTask", "task": 1}], "ev": "events", "i": 94, "irqs": 5, "label": "end"}
|
||||
{"ev": "events", "i": 95, "irqs": 0, "label": "end"}
|
||||
{"ev": "teardown", "i": 95}
|
||||
{"ev": "end", "i": 95}
|
||||
{"ev": "outcome", "kind": "completed"}
|
||||
@@ -1,25 +0,0 @@
|
||||
{"expected": "blit_continuation", "host": null, "input": "a30ea211e4936760a72387aea26b47b1ebef28142e53096ef1d67f21d93bb5a2", "setup": "isolate"}
|
||||
{"ev": "binding", "i": 0, "library": "<build>", "setup": "isolate"}
|
||||
{"ev": "device", "i": 0, "ok": 1}
|
||||
{"ev": "mmio_w", "i": 1, "off": "0x1034", "val": "0xf5"}
|
||||
{"ev": "mmio_w", "i": 2, "off": "0x101c", "val": "0x10001"}
|
||||
{"ev": "mmio_w", "i": 3, "off": "0x1030", "val": "0x10002"}
|
||||
{"ev": "mmio_w", "i": 4, "off": "0x1004", "val": "0x8000"}
|
||||
{"ev": "mmio_w", "i": 5, "off": "0x1010", "val": "0x400"}
|
||||
{"ev": "mmio_w", "i": 6, "off": "0x1000", "val": "0x1"}
|
||||
{"ev": "mmio_w", "i": 74, "off": "0x1008", "val": "0x1c"}
|
||||
{"ev": "wait", "i": 75, "label": "stamp 1 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 78, "off": "0x1008", "val": "0x34"}
|
||||
{"ev": "wait", "i": 79, "label": "stamp 2 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 83, "off": "0x1008", "val": "0x74"}
|
||||
{"ev": "wait", "i": 84, "label": "stamp 3 on FIFO 0", "ok": true}
|
||||
{"ev": "mmio_w", "i": 88, "off": "0x1008", "val": "0xb4"}
|
||||
{"ev": "wait", "i": 89, "label": "stamp 4 on FIFO 0", "ok": true}
|
||||
{"ev": "dump", "gpa": "0x40034000", "hex": "1111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222200000000000000000000000000000000", "i": 90, "label": "A", "len": "0x50"}
|
||||
{"ev": "mmio_w", "i": 92, "off": "0x1008", "val": "0xc4"}
|
||||
{"ev": "wait", "i": 93, "label": "stamp 5 on FIFO 0", "ok": true}
|
||||
{"ev": "events", "i": 94, "irqs": 5, "label": "end"}
|
||||
{"ev": "events", "i": 95, "irqs": 0, "label": "end"}
|
||||
{"ev": "teardown", "i": 95}
|
||||
{"ev": "end", "i": 95}
|
||||
{"ev": "outcome", "kind": "completed"}
|
||||
Loaded 100 of 6670 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user