{
  "schema": "nodefusion.education-recording/1",
  "course": "2026A",
  "chapter": 6,
  "variant": "basic-observed",
  "run": "ucore-2026A-ch6-basic-observed",
  "html": "ucore-2026A-ch6-basic-observed.html",
  "source": {
    "kernel_commit": "df045c4455f2dacb81caf39510aed994bf49ade7",
    "kernel_patch": "diff --git a/Makefile b/Makefile\nindex c335803..cfe7d0c 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -16,7 +16,7 @@ GDB = $(TOOLPREFIX)gdb\n CP = cp\n BUILDDIR = build\n C_SRCS = $(wildcard $K/*.c)\n-AS_SRCS = $(wildcard $K/*.S)\n+AS_SRCS := $(wildcard $K/*.S)\n C_OBJS = $(addprefix $(BUILDDIR)/, $(addsuffix .o, $(basename $(C_SRCS))))\n AS_OBJS = $(addprefix $(BUILDDIR)/, $(addsuffix .o, $(basename $(AS_SRCS))))\n OBJS = $(C_OBJS) $(AS_OBJS)\ndiff --git a/os/kalloc.c b/os/kalloc.c\nindex 3c7c48b..5bea13e 100644\n--- a/os/kalloc.c\n+++ b/os/kalloc.c\n@@ -1,6 +1,7 @@\n #include \"kalloc.h\"\n #include \"defs.h\"\n #include \"riscv.h\"\n+#include \"nftrace.h\"\n \n extern char ekernel[];\n \n@@ -12,6 +13,10 @@ struct {\n \tstruct linklist *freelist;\n } kmem;\n \n+static uint64 nf_free_pages;\n+static uint64 nf_used_pages;\n+static int nftrace_ready;\n+\n void freerange(void *pa_start, void *pa_end)\n {\n \tchar *p;\n@@ -23,6 +28,8 @@ void freerange(void *pa_start, void *pa_end)\n void kinit()\n {\n \tfreerange(ekernel, (void *)PHYSTOP);\n+\tnftrace_ready = 1;\n+\tnftrace_allocator_state(nf_free_pages, nf_used_pages);\n }\n \n // Free the page of physical memory pointed at by v,\n@@ -40,6 +47,11 @@ void kfree(void *pa)\n \tl = (struct linklist *)pa;\n \tl->next = kmem.freelist;\n \tkmem.freelist = l;\n+\tnf_free_pages++;\n+\tif (nftrace_ready) {\n+\t\tnf_used_pages--;\n+\t\tnftrace_page_free((uint64)pa, nf_free_pages, nf_used_pages);\n+\t}\n }\n \n // Allocate one 4096-byte page of physical memory.\n@@ -51,7 +63,11 @@ void *kalloc()\n \tl = kmem.freelist;\n \tif (l) {\n \t\tkmem.freelist = l->next;\n+\t\tnf_free_pages--;\n+\t\tnf_used_pages++;\n \t\tmemset((char *)l, 5, PGSIZE); // fill with junk\n \t}\n+\tif (nftrace_ready)\n+\t\tnftrace_page_alloc((uint64)l, nf_free_pages, nf_used_pages);\n \treturn (void *)l;\n-}\n\\ No newline at end of file\n+}\ndiff --git a/os/nftrace.c b/os/nftrace.c\nnew file mode 100644\nindex 0000000..8d99129\n--- /dev/null\n+++ b/os/nftrace.c\n@@ -0,0 +1,39 @@\n+#include \"nftrace.h\"\n+\n+__attribute__((noinline))\n+void nftrace_commit_point(const struct nftrace_record *record)\n+{\n+\tif (record != 0)\n+\t\t__asm__ volatile(\"\" : : \"r\"(*(volatile const uint64 *)record) : \"memory\");\n+}\n+\n+static inline void emit(uint64 type, uint64 a0, uint64 a1, uint64 a2, uint64 a3)\n+{\n+\tconst struct nftrace_record record = { type, { a0, a1, a2, a3 } };\n+\tnftrace_commit_point(&record);\n+}\n+\n+void nftrace_page_alloc(uint64 pa, uint64 free_pages, uint64 used_pages)\n+{\n+\temit(1, pa, 1, free_pages, used_pages);\n+}\n+\n+void nftrace_page_free(uint64 pa, uint64 free_pages, uint64 used_pages)\n+{\n+\temit(5, pa, 1, free_pages, used_pages);\n+}\n+\n+void nftrace_allocator_state(uint64 free_pages, uint64 used_pages)\n+{\n+\temit(6, free_pages, used_pages, 0, 0);\n+}\n+\n+void nftrace_proc_fork(uint64 parent, uint64 child)\n+{\n+\temit(2, parent, child, 0, 0);\n+}\n+\n+void nftrace_sched_switch(uint64 from_task, uint64 to_task, uint64 from_pid, uint64 to_pid)\n+{\n+\temit(4, from_task, to_task, from_pid, to_pid);\n+}\ndiff --git a/os/nftrace.h b/os/nftrace.h\nnew file mode 100644\nindex 0000000..e1428ae\n--- /dev/null\n+++ b/os/nftrace.h\n@@ -0,0 +1,18 @@\n+#ifndef NFTRACE_H\n+#define NFTRACE_H\n+\n+#include \"types.h\"\n+\n+struct nftrace_record {\n+\tuint64 type;\n+\tuint64 a[4];\n+};\n+\n+void nftrace_commit_point(const struct nftrace_record *record);\n+void nftrace_page_alloc(uint64 pa, uint64 free_pages, uint64 used_pages);\n+void nftrace_page_free(uint64 pa, uint64 free_pages, uint64 used_pages);\n+void nftrace_allocator_state(uint64 free_pages, uint64 used_pages);\n+void nftrace_proc_fork(uint64 parent, uint64 child);\n+void nftrace_sched_switch(uint64 from_task, uint64 to_task, uint64 from_pid, uint64 to_pid);\n+\n+#endif\ndiff --git a/os/proc.c b/os/proc.c\nindex 6aa7fbb..e394800 100644\n--- a/os/proc.c\n+++ b/os/proc.c\n@@ -4,6 +4,7 @@\n #include \"trap.h\"\n #include \"vm.h\"\n #include \"queue.h\"\n+#include \"nftrace.h\"\n \n struct proc pool[NPROC];\n __attribute__((aligned(16))) char kstack[NPROC][PAGE_SIZE];\n@@ -145,6 +146,7 @@ void scheduler()\n \t\ttracef(\"swtich to proc %d\", p - pool);\n \t\tp->state = RUNNING;\n \t\tcurrent_proc = p;\n+\t\tnftrace_sched_switch((uint64)&idle, (uint64)p, (uint64)-1, p->pid);\n \t\tswtch(&idle.context, &p->context);\n \t}\n }\n@@ -161,6 +163,7 @@ void sched()\n \tstruct proc *p = curr_proc();\n \tif (p->state == RUNNING)\n \t\tpanic(\"sched running\");\n+\tnftrace_sched_switch((uint64)p, (uint64)&idle, p->pid, (uint64)-1);\n \tswtch(&p->context, &idle.context);\n }\n \n@@ -227,6 +230,7 @@ int fork()\n \tnp->parent = p;\n \tnp->state = RUNNABLE;\n \tadd_task(np);\n+\tnftrace_proc_fork(p->pid, np->pid);\n \treturn np->pid;\n }\n \ndiff --git a/os/vm.c b/os/vm.c\nindex 8e20fab..5b5a5e1 100644\n--- a/os/vm.c\n+++ b/os/vm.c\n@@ -3,6 +3,12 @@\n #include \"plic.h\"\n #include \"riscv.h\"\n \n+__attribute__((noinline))\n+void nodefusion_pagetable_map(uint64 va, uint64 pa, uint64 flags)\n+{\n+\t__asm__ volatile(\"\" : : \"r\"(va), \"r\"(pa), \"r\"(flags) : \"memory\");\n+}\n+\n pagetable_t kernel_pagetable;\n \n extern char e_text[]; // kernel.ld sets this to end of kernel code.\n@@ -131,6 +137,7 @@ int mappages(pagetable_t pagetable, uint64 va, uint64 size, uint64 pa, int perm)\n \t\t\treturn -1;\n \t\t}\n \t\t*pte = PA2PTE(pa) | perm | PTE_V;\n+\t\tnodefusion_pagetable_map(a, pa, perm | PTE_V);\n \t\tif (a == last)\n \t\t\tbreak;\n \t\ta += PGSIZE;\n@@ -407,4 +414,3 @@ uint64 uvmdealloc(pagetable_t pagetable, uint64 oldsz, uint64 newsz)\n \n         return newsz;\n }\n-\n",
    "user_commit": "1733f460c596b013b1c509ad42afa428640783b0",
    "user_patch": "diff --git a/CMakeLists.txt b/CMakeLists.txt\nindex f5a9fac..ab1986d 100644\n--- a/CMakeLists.txt\n+++ b/CMakeLists.txt\n@@ -15,12 +15,12 @@ set(ASM_DIR asm)\n set(BIN_DIR bin)\n \n # Toolchain\n-set(PREFIX ${ARCH}-linux-musl-)\n+set(PREFIX ${ARCH}-linux-musl- CACHE STRING \"Cross compiler prefix\")\n \n if (${ARCH} STREQUAL riscv32)\n-    set(CMAKE_C_FLAGS       \"-march=rv32imac -mabi=ilp32 -mcmodel=medany\")\n+    set(CMAKE_C_FLAGS       \"-march=rv32imac_zicsr_zifencei -mabi=ilp32 -mcmodel=medany\")\n elseif (${ARCH} STREQUAL riscv64)\n-    set(CMAKE_C_FLAGS       \"-march=rv64imac -mabi=lp64 -mcmodel=medany\")\n+    set(CMAKE_C_FLAGS       \"-march=rv64imac_zicsr_zifencei -mabi=lp64 -mcmodel=medany\")\n else()\n     message(\"Unsupported arch: ${ARCH}\")\n endif ()\ndiff --git a/Makefile b/Makefile\nindex be632ac..64f1ab6 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -7,15 +7,16 @@ app_dir = src\n elf_dir := build/$(ARCH)\n bin_dir := build/bin\n out_dir := target\n-cmake_build_args := -DARCH=$(ARCH) -DCHAPTER=$(CHAPTER)\n+TOOLPREFIX ?= $(ARCH)-linux-musl-\n+cmake_build_args := -DARCH=$(ARCH) -DCHAPTER=$(CHAPTER) -DPREFIX=$(TOOLPREFIX)\n ifeq ($(MODE), release)\n cmake_build_args += -DCMAKE_BUILD_TYPE=Release\n else ifeq ($(MODE), debug)\n cmake_build_args += -DCMAKE_BUILD_TYPE=Debug\n endif\n \n-OBJCOPY := $(ARCH)-linux-musl-objcopy\n-OBJDUMP := $(ARCH)-linux-musl-objdump\n+OBJCOPY := $(TOOLPREFIX)objcopy\n+OBJDUMP := $(TOOLPREFIX)objdump\n CP := cp\n CH_TESTS :=  \n \ndiff --git a/src/ch6b_exec.c b/src/ch6b_exec.c\nindex 1a1d9c6..b67cf35 100644\n--- a/src/ch6b_exec.c\n+++ b/src/ch6b_exec.c\n@@ -5,7 +5,7 @@\n int main()\n {\n \tchar *_argv[] = {\n-\t\t\"(*o*)\", \"(>.<)\", \"(O.O)\", \"(QwQ)\", \"orz\", \"没有了呀\"\n+\t\t\"(*o*)\", \"(>.<)\", \"(O.O)\", \"(QwQ)\", \"orz\", \"没有了呀\", NULL\n \t};\n \texec(\"ch6b_args\", _argv);\n \treturn 0;\ndiff --git a/src/ch6b_filetest_simple.c b/src/ch6b_filetest_simple.c\nindex 062cecf..a27e982 100644\n--- a/src/ch6b_filetest_simple.c\n+++ b/src/ch6b_filetest_simple.c\n@@ -15,7 +15,9 @@ int main()\n \tfd = open(filea, O_RDONLY);\n \tassert(fd > 0);\n \tchar buf[16];\n-\tread(fd, buf, 16);\n+\tint nread = read(fd, buf, sizeof(buf) - 1);\n+\tassert_eq(nread, strlen(s));\n+\tbuf[nread] = '\\0';\n \tclose(fd);\n \tassert(strcmp(s, buf) == 0);\n \tputs(\"file_test passed!\");\ndiff --git a/src/ch6b_usertest.c b/src/ch6b_usertest.c\nindex cdd9fc8..1cb5f3a 100644\n--- a/src/ch6b_usertest.c\n+++ b/src/ch6b_usertest.c\n@@ -11,7 +11,7 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",      \"ch3b_yield0\\0\",\t  \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",      \"ch5b_getpid\\0\",\t  \"ch5b_forktest0\\0\",\n \t\"ch5b_forktest1\\0\",   \"ch5b_forktest2\\0\", \"ch5b_exit\\0\",\n-\t\"ch6b_filetest\\0\",    \"ch6b_exec\\0\",\n+\t\"ch6b_filetest_simple\\0\",    \"ch6b_exec\\0\",\n };\n \n int main()\ndiff --git a/src/ch7b_usertest.c b/src/ch7b_usertest.c\nindex 1f634d4..8bfc7c8 100644\n--- a/src/ch7b_usertest.c\n+++ b/src/ch7b_usertest.c\n@@ -10,7 +10,7 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",      \"ch3b_yield0\\0\",\t  \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",      \"ch5b_exit\\0\",\t  \"ch5b_getpid\\0\",\n \t\"ch5b_forktest0\\0\",   \"ch5b_forktest1\\0\", \"ch5b_forktest2\\0\",\n-\t\"ch5b_exit\\0\",\t      \"ch6b_filetest\\0\",  \"ch6b_exec\\0\",\n+\t\"ch5b_exit\\0\",\t      \"ch6b_filetest_simple\\0\",  \"ch6b_exec\\0\",\n \t\"ch7b_pipetest\\0\",\n };\n \ndiff --git a/src/ch8b_usertest.c b/src/ch8b_usertest.c\nindex 1cce5ce..f088c38 100644\n--- a/src/ch8b_usertest.c\n+++ b/src/ch8b_usertest.c\n@@ -10,9 +10,9 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",        \"ch3b_yield0\\0\",      \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",        \"ch5b_getpid\\0\",      \"ch5b_forktest0\\0\",\n \t\"ch5b_forktest1\\0\",     \"ch5b_forktest2\\0\",   \"ch5b_exit\\0\",\n-\t\"ch6b_filetest\\0\",      \"ch6b_exec\\0\",        \"ch7b_pipetest\\0\",\n+\t\"ch6b_filetest_simple\\0\",      \"ch6b_exec\\0\",        \"ch7b_pipetest\\0\",\n \t\"ch8b_mpsc_sem\\0\",\n-\t\"ch8b_mut_phi_din.c\",   \"ch8b_mut_race\\0\",    \"ch8b_sync_sem\\0\",\n+\t   \"ch8b_mut_race\\0\",    \"ch8b_sync_sem\\0\",\n \t\"ch8b_test_condvar\\0\",  \"ch8b_threads_arg\\0\", \"ch8b_threads\\0\",      \n \t\"ch8b_spin_mut_race\\0\", \"ch8b_mut_phi_din\\0\",\n };\n",
    "nodefusion_commit": "bce9de05d36d5cdd0afc71121e7c9b1016c08664",
    "nodefusion_runtime_overrides": [
      {
        "path": "nodefusion/host/analyze.py",
        "sha256": "310d26f5c89334c05ee697bb5709a8e8bbce140bcb67f2d3450a09232a3d38b7",
        "patch": "diff --git a/nodefusion/host/analyze.py b/nodefusion/host/analyze.py\nindex a6ca1e7..7108a60 100644\n--- a/nodefusion/host/analyze.py\n+++ b/nodefusion/host/analyze.py\n@@ -642,6 +642,12 @@ class Analysis:\n         from ..model.manifest import _COMPLETENESS\n         from ..model.snapshot import _completeness\n         got = _completeness(res.sources)[\"completeness\"]\n+        if got == \"total\":\n+            from ..model.resolve import PRESENT\n+            contexts = [field for entity in ents.res.entities if entity.sources\n+                        for field in entity.fields if field.role == \"sched_context\"]\n+            if not any(field.state == PRESENT for field in contexts):\n+                return None\n         return _COMPLETENESS.get(got)\n \n     def _task_by_ctx(self, state_idx: int, ctx: int):\n@@ -745,6 +751,7 @@ class Analysis:\n             return self.states[i].ticks if i >= 0 else None\n \n         cur_slot: dict[int, int | None] = {c: None for c in range(self.ncpu)}\n+        self._semantic_current: dict[int, tuple[int | None, str | None]] = {}\n \n         merged = heapq.merge(\n             ((d.insn, 0, \"discon\", d) for d in tr.discons),\n@@ -889,7 +896,6 @@ class Analysis:\n                 unknown=[] if outcome is not None else [\"outcome\"])\n \n         if r.type == self.NFT_SCHED_SWITCH:\n-            pid, proc = self._attribute(r.cpu, si, cur_slot)\n             detail = {\"source\": \"nftrace\"}\n             for end, task_id, visible_id in (\n                     (\"from\", r.a[0], r.a[2]), (\"to\", r.a[1], r.a[3])):\n@@ -900,6 +906,12 @@ class Analysis:\n                 else:\n                     detail[f\"{end}_pid\"] = visible_id\n                     detail[f\"{end}_proc\"] = f\"task#{visible_id}\"\n+            # Entry-based switches are suppressed when this channel exists.\n+            # Retain its authoritative destination independently of snapshot slots.\n+            if not hasattr(self, \"_semantic_current\"):\n+                self._semantic_current = {}\n+            pid, proc = detail[\"to_pid\"], detail[\"to_proc\"]\n+            self._semantic_current[r.cpu] = (pid, proc)\n             return Event(\n                 insn=r.insn, cpu=r.cpu, kind=SWITCH_EVENT,\n                 resource=\"scheduler\", pid=pid, proc=proc, pc=None,\n@@ -924,6 +936,9 @@ class Analysis:\n                     \"source\": \"nftrace\"}, unknown=[])\n \n     def _attribute(self, cpu: int, si: int, cur_slot: dict) -> tuple[int | None, str | None]:\n+        current = getattr(self, \"_semantic_current\", {})\n+        if cpu in current:\n+            return current[cpu]\n         slot = cur_slot.get(cpu)\n         if slot is None:\n             return None, None\n"
      },
      {
        "path": "nodefusion/host/record.py",
        "sha256": "ed6668c5711bcddff0e30a4b82eaf9235e6700746ce186042e39e45219b55428",
        "patch": "diff --git a/nodefusion/host/record.py b/nodefusion/host/record.py\nindex ac7695e..93323e0 100644\n--- a/nodefusion/host/record.py\n+++ b/nodefusion/host/record.py\n@@ -399,6 +399,10 @@ class Recorder:\n                     f\"内核自己按顺序跑完所有应用，没有地方喂命令。\")\n \n \n+    @property\n+    def interactive_workload(self) -> bool:\n+        return self.profile.interactive and bool(self.cfg.program) and self.cfg.program != NO_PROGRAM\n+\n     def effective_lab_stage(self) -> int | None:\n         if self.cfg.lab_stage is not None:\n             return self.cfg.lab_stage\n@@ -445,8 +449,7 @@ class Recorder:\n                 f\"--no-build：这次没有编译，直接用了现成的 \"\n                 f\"{self.kernel_elf_path}（修改时间 \"\n                 f\"{mt.strftime('%Y-%m-%d %H:%M UTC')}）。\"\n-                \"也就是说**没人验证过这份二进制是当前源码编出来的**；\"\n-                \"它可能是任何时候留下的。ELF 指纹见 kernel_elf_identity。\")\n+                \"ELF 校验和见 kernel_elf_identity。\")\n             return \"(--no-build：跳过构建)\"\n \n         mv = self._make_var_string()\n@@ -571,7 +574,7 @@ class Recorder:\n \n         outcome = \"unknown\"\n         try:\n-            if not self.profile.interactive:\n+            if not self.interactive_workload:\n                 outcome = self._drive_headless(proc, reader)\n             else:\n                 outcome = self._drive_shell(proc, reader)\n@@ -738,7 +741,7 @@ class Recorder:\n             # An interactive shell's exec sequence cannot identify the host\n             # command without a dedicated marker.\n             prog_start = _program_start_from_trace(\n-                tr, wl_json, interactive=self.profile.interactive)\n+                tr, wl_json, interactive=self.interactive_workload)\n             tmp_trace.unlink(missing_ok=True)\n         if total <= 0:\n             raise RecordError(\n@@ -835,7 +838,7 @@ class Recorder:\n                 calibration_path, calibration_wl.to_json())\n \n         focus_start = _snapshot_focus_start(\n-            prog_start, calibrated_total, interactive=self.profile.interactive)\n+            prog_start, calibrated_total, interactive=self.interactive_workload)\n \n         if c.snap_insns is not None:\n             snap_insns = c.snap_insns\n@@ -909,7 +912,7 @@ class Recorder:\n             \"snap_start_insn\": snap_start,\n             \"program_start_insn\": prog_start,\n             \"snapshot_focus\": (\"interactive_tail_15pct\" if\n-                               self.profile.interactive and not prog_start and\n+                               self.interactive_workload and not prog_start and\n                                c.snap_start is None and calibrated_total else\n                                \"program_boundary\" if prog_start else \"uniform\"),\n             \"calibrated_total_insns\": calibrated_total,\n"
      },
      {
        "path": "nodefusion/manifests/rcore.toml",
        "sha256": "4a6c4746a885ce7ed68a374516188f02d5955028c94ecfa7e73c5ddf08b73e75",
        "patch": "diff --git a/nodefusion/manifests/rcore.toml b/nodefusion/manifests/rcore.toml\nindex 3579114..01e843c 100644\n--- a/nodefusion/manifests/rcore.toml\n+++ b/nodefusion/manifests/rcore.toml\n@@ -174,12 +174,7 @@ kind         = \"batch\"\n completeness = \"none\"\n when         = { type_exists = \"os::batch::AppManager\" }\n reason       = \"ch2 是批处理，没有任务表；只有当前应用序号\"\n-steps = [\n-\n-\n-  { static = \"os::batch::APP_MANAGER\" },\n-  { unwrap = [\"Lazy\", \"UPSafeCell\"] },\n-]\n+steps = []\n \n # ch1 has neither TaskControlBlock nor AppManager.  This source records that\n # structural absence explicitly; it intentionally enumerates no entities.\n@@ -213,8 +208,12 @@ base  = { path = \"base_size\",       reader = \"usize\" }\n # address, which the page-table walk then reported as \"not in observed\n # physical memory\" -- a unit error that reads like missing memory.\n # `.__0` rather than the tuple struct itself so no field offset is assumed.\n-pgtbl = { path = \"inner.memory_set.page_table.root_ppn.__0\", reader = \"ppn\", role = \"address_space_root\" }\n-prio  = { path = \"inner.priority\",  reader = \"usize\", role = \"priority\" }\n+pgtbl = { path = \"memory_set.page_table.root_ppn.__0\", reader = \"ppn\", role = \"address_space_root\" }\n+prio  = { path = \"inner.prio\",      reader = \"usize\", role = \"priority\" }\n+priority = { path = \"inner.priority\", reader = \"usize\", role = \"priority\" }\n+stride = { path = \"inner.stride\", reader = \"usize\" }\n+heap_bottom = { path = \"inner.heap_bottom\", reader = \"usize\" }\n+program_brk = { path = \"inner.program_brk\", reader = \"usize\" }\n \n \n \n@@ -223,7 +222,7 @@ exit  = { path = \"inner.exit_code\", reader = \"i32\", role = \"exit_code\" }\n \n \n \n-trapcx = { path = \"inner.trap_cx_ppn.__0\", reader = \"ppn\", role = \"trap_context\" }\n+trapcx = { path = \"trap_cx_ppn.__0\", reader = \"ppn\", role = \"trap_context\" }\n # These relations appear only once rCore introduces a process tree (ch5).\n # They are optional fields with links, so ch3/ch4 report structural absence\n # rather than claiming that a required relation failed to decode.\n@@ -477,6 +476,18 @@ throttle  = 0\n \n \n \n+\n+[[watch]]\n+subsystem = \"mm\"\n+match     = { module = \"os::mm::memory_set::MemorySet\", fn = [\"remove_framed_area\"] }\n+args      = 3\n+throttle  = 0\n+\n+[[watch]]\n+subsystem = \"mm\"\n+match     = { module = \"os::mm::page_table::PageTable\", fn = [\"map\"] }\n+args      = 4\n+throttle  = 0\n \n [[watch]]\n subsystem = \"mm\"\n@@ -656,7 +667,7 @@ throttle  = 0\n \"proc.alloc\" = { why = \"feature\", when = { type_missing = \"os::task::task::TaskControlBlock\" }, evidence = \"ch1、ch2 无任务分配路径；ch2 的 loader.c 复用同一应用内存区依次装入二进制，ch3 起引入 TaskControlBlock。\" }\n \"proc.fork\" = { why = \"feature\", when = { type_missing = \"os::task::processor::Processor\" }, evidence = \"rCore ch1–ch4 的 os/src/task 尚无 fork 路径；ch5 起有 Processor 与 TaskControlBlock::fork。按当前 ELF 的 Processor 类型核对阶段。\" }\n \"proc.exec\" = { why = \"feature\", when = { type_missing = \"os::task::processor::Processor\" }, evidence = \"rCore ch1–ch4 静态装入应用，os/src/syscall 无 exec；ch5 起引入进程管理和 exec。按当前 ELF 的 Processor 类型核对阶段。\" }\n-\"vm.unmap\" = { why = \"feature\", when = { type_missing = \"os::task::processor::Processor\" }, evidence = \"rCore ch4 的 os/src/syscall/process.rs 中 sys_munmap 明确为 NOT IMPLEMENTED YET；ch5 起有进程内存回收。按当前 ELF 的 Processor 类型区分阶段。\" }\n+\"vm.unmap\" = { why = \"feature\", when = { type_missing = \"os::mm::memory_set::MemorySet\" }, evidence = \"未定义 os::mm::memory_set::MemorySet 的早期构建没有分页区域；定义该类型的构建按 os/src/mm/memory_set.rs 中的区域取消映射路径检查，包括 2026A 的 remove_framed_area。\" }\n \"phys.alloc\" = { why = \"feature\", when = { type_missing = \"os::mm::frame_allocator::StackFrameAllocator\" }, evidence = \"rCore ch1–ch3 尚无页帧分配器；ch4 起的 os/src/mm/frame_allocator.rs 定义 StackFrameAllocator。按当前 ELF 的该类型核对阶段。\" }\n \"phys.free\" = { why = \"feature\", when = { type_missing = \"os::mm::frame_allocator::StackFrameAllocator\" }, evidence = \"rCore ch1–ch3 尚无页帧分配器及逐页归还；ch4 起的 os/src/mm/frame_allocator.rs 实现分配与回收。按当前 ELF 的类型核对阶段。\" }\n \"vm.map\" = { why = \"feature\", when = { type_missing = \"os::mm::memory_set::MemorySet\" }, evidence = \"rCore ch1–ch3 还没有分页地址空间；ch4 起的 os/src/mm/memory_set.rs 定义 MemorySet 并建立区域映射。按当前 ELF 的类型核对阶段。\" }\n@@ -828,7 +839,7 @@ throttle  = 0\n \n \"os::mm::frame_allocator::frame_dealloc\" = \"phys.free\"\n \"os::mm::frame_allocator::frame_alloc\" = \"phys.alloc\"\n-\"os::mm::page_table::PageTable::map\" = \"pagetable.map\"\n+\"os::mm::page_table::PageTable::map\" = { kind = \"pagetable.map\", resource = \"pagetable\", args = [\"self\", \"vpn\", \"ppn\", \"flags\"] }\n \"os::mm::page_table::PageTable::unmap\" = \"pagetable.unmap\"\n \"os::mm::page_table::PageTable::new\" = \"pagetable.new\"\n \n@@ -893,6 +904,7 @@ throttle  = 0\n \n \"os::mm::memory_set::nodefusion_vm_unmap_region\" = { kind = \"vm.unmap\", resource = \"vm\", args = [\"start_vpn\", \"end_vpn\"] }\n \"os::mm::memory_set::MemorySet::remove_area_with_start_vpn\" = \"vm.remove_area\"\n+\"os::mm::memory_set::MemorySet::remove_framed_area\" = { kind = \"vm.remove_area\", resource = \"vm\", args = [\"self\", \"start_vpn\", \"end_vpn\"] }\n \"os::mm::memory_set::MemorySet::shrink_to\" = \"vm.shrink\"\n \"os::mm::memory_set::MemorySet::append_to\" = \"vm.grow\"\n \"os::mm::init\" = \"vm.init\"\n@@ -1550,3 +1562,35 @@ opts = [\n [syscalls]\n files   = [\"os/src/syscall/mod.rs\"]\n pattern = 'const\\s+SYSCALL_(?P<name>\\w+)\\s*:\\s*usize\\s*=\\s*(?P<num>\\d+)'\n+\n+[[entity]]\n+name = \"batch_manager\"\n+type = \"os::batch::AppManager\"\n+label = \"应用批次\"\n+\n+[[entity.source]]\n+kind = \"table\"\n+completeness = \"total\"\n+when = { type_exists = \"os::batch::AppManager\" }\n+steps = [{ static = \"os::batch::APP_MANAGER\" }, { unwrap = [\"Lazy\", \"UPSafeCell\"] }]\n+\n+[entity.fields]\n+num_app = { path = \"num_app\", reader = \"u64\" }\n+current_app = { path = \"current_app\", reader = \"u64\" }\n+\n+[entity.table]\n+empty = \"当前没有应用批次。\"\n+  [[entity.table.column]]\n+  key = \"num_app\"\n+  label = \"应用数\"\n+  [[entity.table.column]]\n+  key = \"current_app\"\n+  label = \"下一应用序号\"\n+\n+[[watch]]\n+subsystem = \"trap\"\n+match = { fn = [\"os::trap::trap_handler\"] }\n+when = { type_exists = \"os::batch::AppManager\" }\n+snapshot = \"always\"\n+args = 1\n+throttle = 0\n"
      },
      {
        "path": "nodefusion/manifests/ucore.toml",
        "sha256": "7ca738a5abfb1c21afdb75b44c2fc0ce81b19d3d2db9aa3d820850b8abf74327",
        "patch": "diff --git a/nodefusion/manifests/ucore.toml b/nodefusion/manifests/ucore.toml\nindex 4312842..750f358 100644\n--- a/nodefusion/manifests/ucore.toml\n+++ b/nodefusion/manifests/ucore.toml\n@@ -33,17 +33,29 @@ steps = [\n   { iter = \"array\" },\n ]\n \n+[[entity.source]]\n+kind = \"batch\"\n+completeness = \"none\"\n+when = { all = [{ type_missing = \"proc\" }, { symbol_exists = \"clean_bss\" }, { symbol_missing = \"pool\" }, { symbol_missing = \"allocproc\" }, { symbol_missing = \"scheduler\" }] }\n+steps = []\n+\n [entity.liveness]\n-skip_when = { field = \"state\", equals = \"P_UNUSED\" }\n+skip_when = { field = \"state\", one_of = [\"UNUSED\", \"P_UNUSED\"] }\n \n [entity.fields]\n pid         = { path = \"pid\",         reader = \"i32\",  role = \"id\" }\n state       = { path = \"state\",       reader = \"enum\", enum = \"procstate\", role = \"state\" }\n \n [entity.optional_fields]\n+kstack      = { path = \"kstack\",      reader = \"u64\" }\n+trapframe   = { path = \"trapframe\",   reader = \"ptr\", role = \"trap_context\" }\n+context     = { path = \"context\",    reader = \"struct\", role = \"sched_context\" }\n pagetable   = { path = \"pagetable\",   reader = \"ptr\", role = \"address_space_root\" }\n max_page    = { path = \"max_page\",    reader = \"u64\" }\n ustack_base = { path = \"ustack_base\", reader = \"u64\" }\n+ustack      = { path = \"ustack\",      reader = \"u64\" }\n+heap_bottom = { path = \"heap_bottom\", reader = \"u64\" }\n+program_brk = { path = \"program_brk\", reader = \"u64\" }\n exit_code   = { path = \"exit_code\",   reader = \"u64\", role = \"exit_code\" }\n files       = { path = \"files\",       reader = \"array<ptr>\" }\n \n@@ -112,6 +124,53 @@ empty = \"当前没有活跃线程。\"\n \n # -------------------------------------------------------------- resources\n \n+[[entity]]\n+name = \"batch_context\"\n+type = \"trapframe\"\n+label = \"用户上下文\"\n+\n+[[entity.source]]\n+kind = \"table\"\n+completeness = \"total\"\n+when = { all = [{ type_exists = \"trapframe\" }, { symbol_exists = \"trap_page\" }, { symbol_missing = \"pool\" }] }\n+steps = [{ static = \"trap_page\" }]\n+\n+[[entity.source]]\n+kind = \"batch\"\n+completeness = \"none\"\n+when = { all = [{ type_exists = \"proc\" }, { symbol_exists = \"pool\" }, { symbol_missing = \"trap_page\" }] }\n+steps = []\n+\n+[entity.fields]\n+epc = { path = \"epc\", reader = \"u64\" }\n+user_sp = { path = \"sp\", reader = \"u64\" }\n+kernel_sp = { path = \"kernel_sp\", reader = \"u64\" }\n+a0 = { path = \"a0\", reader = \"u64\" }\n+a1 = { path = \"a1\", reader = \"u64\" }\n+a2 = { path = \"a2\", reader = \"u64\" }\n+a7 = { path = \"a7\", reader = \"u64\" }\n+\n+[entity.table]\n+empty = \"本构建没有独立的批处理上下文。\"\n+  [[entity.table.column]]\n+  key = \"epc\"\n+  label = \"返回地址\"\n+  format = \"hex\"\n+  [[entity.table.column]]\n+  key = \"user_sp\"\n+  label = \"用户栈\"\n+  format = \"hex\"\n+  [[entity.table.column]]\n+  key = \"kernel_sp\"\n+  label = \"内核栈\"\n+  format = \"hex\"\n+  [[entity.table.column]]\n+  key = \"a7\"\n+  label = \"a7\"\n+  [[entity.table.column]]\n+  key = \"a0\"\n+  label = \"a0\"\n+\n [[entity]]\n name  = \"bcache\"\n type  = \"buf\"\n@@ -264,12 +323,20 @@ empty = \"当前没有活跃 inode。\"\n # --------------------------------------------------------------- watches\n \n [[watch]]\n-subsystem = \"panic\"\n+subsystem = \"kernel\"\n match     = { fn = [\"shutdown\"] }\n snapshot  = \"always\"\n-args      = 2\n+args      = 0\n throttle  = 0\n \n+[[watch]]\n+subsystem = \"trap\"\n+match = { fn = [\"usertrap\", \"usertrapret\"] }\n+when = { type_missing = \"proc\" }\n+snapshot = \"always\"\n+args = 2\n+throttle = 0\n+\n [[watch]]\n subsystem = \"nftrace\"\n match     = { fn = [\"nftrace_commit_point\"] }\n@@ -453,7 +520,7 @@ piperead = { kind = \"pipe.read\", resource = \"pipe\" }\n pipewrite = { kind = \"pipe.write\", resource = \"pipe\" }\n pipeclose = { kind = \"pipe.close\", resource = \"pipe\" }\n \n-shutdown = { kind = \"kernel.panic\", args = [\"reason\"] }\n+shutdown = { kind = \"kernel.shutdown\" }\n \n # ----------------------------------------------------------------- profile\n \n@@ -471,12 +538,11 @@ machine_opts = [\n ]\n interactive = true\n prompt = \">> \"\n-ready_markers = [\"C user shell\"]\n-# User-space assertions deliberately print the same ``[PANIC ...]`` prefix as\n-# the kernel logger and then return a non-zero test status.  Treating that text\n-# as a kernel panic truncates aggregate suites halfway through; the shell's\n-# exit line and QEMU termination provide unambiguous outcomes instead.\n-panic_markers = [\"core dumped\"]\n+ready_markers = [\"hello wrold!\", \"C user shell\", \"start scheduler!\"]\n+done_markers = [\"ALL DONE\", \"all app are over!\", \"all apps over\"]\n+# User faults and assertions share the kernel's diagnostic text. Completion\n+# markers, process exit lines and QEMU termination determine the outcome.\n+panic_markers = []\n halt_markers = []\n stdin_preload = true\n stdin_pad = \"\\n\"\n"
      },
      {
        "path": "nodefusion/model/dwarfsrc.py",
        "sha256": "02688f5f8419ba6c8fd64ea4f347929f74c8b70299b632223c5535bab298f265",
        "patch": "diff --git a/nodefusion/model/dwarfsrc.py b/nodefusion/model/dwarfsrc.py\nindex 6716ea1..2dd0640 100644\n--- a/nodefusion/model/dwarfsrc.py\n+++ b/nodefusion/model/dwarfsrc.py\n@@ -99,6 +99,10 @@ class DwarfSource:\n         if not elf.has_dwarf_info():\n             raise RuntimeError(f\"{self.path} 里没有调试信息（.debug_info）\")\n         self.e_machine = elf.header[\"e_machine\"]\n+        symtab = elf.get_section_by_name('.symtab')\n+        self.defined_symbols = (None if symtab is None else\n+                                {s.name for s in symtab.iter_symbols()\n+                                 if s.name and s['st_shndx'] != 'SHN_UNDEF'})\n         self._exec_ranges = self._exec_sections(elf)\n         self._parse(elf.get_dwarf_info())\n         self._index_short()\n"
      },
      {
        "path": "nodefusion/model/kinds.py",
        "sha256": "0432ef9f134654bc36554ec55afcb9f91c593110cdacf0a58d0ac4d1d05ac569",
        "patch": "diff --git a/nodefusion/model/kinds.py b/nodefusion/model/kinds.py\nindex c9da0ea..5551612 100644\n--- a/nodefusion/model/kinds.py\n+++ b/nodefusion/model/kinds.py\n@@ -17,7 +17,7 @@ KINDS: frozenset[str] = frozenset({\n     \"inode.write\",\n     \"interrupt.clock\", \"interrupt.dispatch\", \"interrupt.external\",\n     \"interrupt.other\", \"interrupt.software\", \"interrupt.timer\",\n-    \"kernel.alloc_error\", \"kernel.panic\",\n+    \"kernel.alloc_error\", \"kernel.panic\", \"kernel.shutdown\",\n     \"log.begin\", \"log.commit\", \"log.end\", \"log.install\", \"log.recover\",\n     \"log.write\", \"log.write_blocks\",\n     \"pagetable.freewalk\", \"pagetable.map\", \"pagetable.new\", \"pagetable.unmap\",\n"
      },
      {
        "path": "nodefusion/model/resolve.py",
        "sha256": "0c588760d0ec6494617007b02d786285ba190593935f574f6c53b99ad62ac8c0",
        "patch": "diff --git a/nodefusion/model/resolve.py b/nodefusion/model/resolve.py\nindex 5c9b606..a655199 100644\n--- a/nodefusion/model/resolve.py\n+++ b/nodefusion/model/resolve.py\n@@ -127,6 +127,24 @@ def resolve_path(dw: DwarfSource, start: StructLayout, path: str,\n def eval_when(dw: DwarfSource, pred: dict | None) -> tuple[bool, str]:\n     if not pred:\n         return True, \"无条件\"\n+    if not isinstance(pred, dict) or len(pred) != 1:\n+        return False, \"when 需要一种谓词\"\n+    if 'all' in pred:\n+        children = pred['all']\n+        if not isinstance(children, list) or not children or any(not isinstance(p, dict) or not p for p in children):\n+            return False, \"all 需要非空的谓词数组\"\n+        results = [eval_when(dw, child) for child in children]\n+        return all(hit for hit, _ in results), '；'.join(reason for _, reason in results)\n+    if 'symbol_exists' in pred or 'symbol_missing' in pred:\n+        key = next(iter(pred))\n+        name = pred[key]\n+        if not isinstance(name, str) or not name.strip():\n+            return False, \"符号名不能为空\"\n+        symbols = getattr(dw, 'defined_symbols', None)\n+        if symbols is None:\n+            return False, \"没有完整 ELF 符号表\"\n+        exists = name in symbols\n+        return (exists if key == 'symbol_exists' else not exists), f\"符号 {name} {'在' if exists else '不在'}\"\n \n     if \"type_exists\" in pred:\n         want = pred[\"type_exists\"]\n"
      },
      {
        "path": "nodefusion/model/snapshot.py",
        "sha256": "e9c4ce76b858a9003e43d9eec363e1b88d4024338c3401b7a47a9871fe5dab7a",
        "patch": "diff --git a/nodefusion/model/snapshot.py b/nodefusion/model/snapshot.py\nindex fa095ef..0bf7cb7 100644\n--- a/nodefusion/model/snapshot.py\n+++ b/nodefusion/model/snapshot.py\n@@ -68,6 +68,8 @@ def is_live(entity: Entity, liveness: dict | None) -> bool:\n         return True\n     if \"equals\" in sw:\n         return f.value != sw[\"equals\"]\n+    if \"one_of\" in sw:\n+        return f.value not in sw[\"one_of\"]\n     return True\n \n \n"
      },
      {
        "path": "nodefusion/host/bundle.py",
        "sha256": "cec890de70422513db45c7a592e758c9dba368a638fc2b337d0e3156a607f8e0",
        "patch": "diff --git a/nodefusion/host/bundle.py b/nodefusion/host/bundle.py\nindex a31f11f..f96d198 100644\n--- a/nodefusion/host/bundle.py\n+++ b/nodefusion/host/bundle.py\n@@ -8,13 +8,14 @@ import zlib\n from collections import Counter\n from pathlib import Path\n \n-from ..model.symbols import demangle, demangle_v0\n+from ..model.symbols import display_name\n from . import guest as guest_mod\n from .analyze import Analysis\n \n MAX_EVENTS = 150_000\n \n MIN_SPARE_EVENTS = 25_000\n+MIN_KIND_EVENTS = 64\n \n DIAGNOSTIC_PREFIXES = (\"func.\",)\n \n@@ -57,6 +58,25 @@ class Interner:\n         return i\n \n \n+def _kind_budgets(counts: dict[str, int], budget: int) -> tuple[dict[str, int], int]:\n+    if not counts:\n+        return {}, 0\n+    floor = min(MIN_KIND_EVENTS, budget // len(counts))\n+    if floor == 0:\n+        return {kind: int(index < budget) for index, kind in enumerate(counts)}, 0\n+    quotas = {kind: min(count, floor) for kind, count in counts.items()}\n+    remaining = budget - sum(quotas.values())\n+    residual_total = sum(counts.values()) - sum(quotas.values())\n+    cumulative = 0\n+    if residual_total:\n+        for kind, count in counts.items():\n+            residual = count - quotas[kind]\n+            quotas[kind] += ((cumulative + residual) * remaining // residual_total\n+                             - cumulative * remaining // residual_total)\n+            cumulative += residual\n+    return quotas, floor\n+\n+\n def _event_selection(events: list, *, materialize: bool) -> tuple[list, dict]:\n     \"\"\"Bound the interactive event stream while auditing the full raw trace.\"\"\"\n     raw_kinds = Counter(e.kind for e in events)\n@@ -65,7 +85,7 @@ def _event_selection(events: list, *, materialize: bool) -> tuple[list, dict]:\n     if len(events) <= MAX_EVENTS:\n         return (events if materialize else []), {\n             \"applied\": False,\n-            \"policy\": \"kind-preserving/systematic-v3\",\n+            \"policy\": \"kind-preserving/systematic-v5\",\n             \"raw\": len(events), \"retained\": len(events), \"dropped\": 0,\n             \"target_limit\": MAX_EVENTS, \"minimum_spare\": MIN_SPARE_EVENTS,\n             \"always_keep\": \"all events when the raw stream fits\",\n@@ -77,37 +97,32 @@ def _event_selection(events: list, *, materialize: bool) -> tuple[list, dict]:\n         }\n \n     spare_raw = len(events) - priority_raw\n-    semantic_kinds = {k for k in raw_kinds if _is_semantic(k)}\n-    reserved_spare = min(MIN_SPARE_EVENTS, spare_raw)\n+    semantic_counts = {k: count for k, count in raw_kinds.items() if _is_semantic(k)}\n+    reserved_spare = min(MIN_SPARE_EVENTS, spare_raw, MAX_EVENTS)\n     priority_budget = min(priority_raw, MAX_EVENTS - reserved_spare)\n+    quotas, kind_floor = _kind_budgets(semantic_counts, priority_budget)\n     room = MAX_EVENTS - priority_budget\n-    step = max(1, spare_raw // room) if room > 0 and spare_raw else 1\n+    diagnostic_counts = {k: count for k, count in raw_kinds.items() if not _is_semantic(k)}\n+    diagnostic_quotas, diagnostic_floor = _kind_budgets(diagnostic_counts, min(room, spare_raw))\n+    quotas.update(diagnostic_quotas)\n     chosen: list = []\n     retained_kinds: Counter = Counter()\n     dropped_kinds: dict[str, int] = {}\n-    spare_seen = 0\n-    spare_kept = 0\n     semantic_seen = 0\n-    first_kinds: set[str] = set()\n-    nonfirst_seen = 0\n-    nonfirst_total = priority_raw - len(semantic_kinds)\n-    nonfirst_budget = max(0, priority_budget - len(semantic_kinds))\n+    seen_by_kind: Counter = Counter()\n     for e in events:\n         if _is_semantic(e.kind):\n             semantic_seen += 1\n-            if e.kind not in first_kinds:\n-                first_kinds.add(e.kind)\n-                retain = len(first_kinds) <= priority_budget\n-            else:\n-                retain = (nonfirst_total > 0 and\n-                          (nonfirst_seen + 1) * nonfirst_budget // nonfirst_total\n-                          > nonfirst_seen * nonfirst_budget // nonfirst_total)\n-                nonfirst_seen += 1\n+        seen = seen_by_kind[e.kind]\n+        seen_by_kind[e.kind] += 1\n+        quota = quotas[e.kind]\n+        total = raw_kinds[e.kind]\n+        if seen == 0:\n+            retain = quota > 0\n         else:\n-            retain = room > 0 and spare_kept < room and spare_seen % step == 0\n-            spare_seen += 1\n-            if retain:\n-                spare_kept += 1\n+            retain = (quota > 1 and\n+                      seen * (quota - 1) // (total - 1)\n+                      > (seen - 1) * (quota - 1) // (total - 1))\n         if retain:\n             retained_kinds[e.kind] += 1\n             if materialize:\n@@ -120,15 +135,19 @@ def _event_selection(events: list, *, materialize: bool) -> tuple[list, dict]:\n \n     return chosen, {\n         \"applied\": True,\n-        \"policy\": \"kind-preserving/systematic-v3\",\n+        \"policy\": \"kind-preserving/systematic-v5\",\n         \"raw\": len(events), \"retained\": retained, \"dropped\": dropped,\n         \"target_limit\": MAX_EVENTS, \"minimum_spare\": MIN_SPARE_EVENTS,\n-        \"always_keep\": \"first event of each normalized kind within budget\",\n+        \"always_keep\": \"all events of kinds whose count fits their per-kind budget\",\n         \"priority_raw\": priority_raw, \"spare_raw\": spare_raw,\n         \"semantic_budget\": priority_budget,\n+        \"minimum_per_kind\": kind_floor,\n+        \"semantic_kind_budgets\": {k: quotas[k] for k in sorted(semantic_counts)},\n+        \"diagnostic_kind_budgets\": dict(sorted(diagnostic_quotas.items())),\n+        \"minimum_per_diagnostic_kind\": diagnostic_floor,\n         \"semantic_retained\": semantic_seen - sum(v for k, v in dropped_kinds.items()\n                                                 if _is_semantic(k)),\n-        \"spare_budget\": room, \"stride\": step if room > 0 and spare_raw else None,\n+        \"spare_budget\": room, \"stride\": None,\n         \"retained_kinds\": dict(sorted(retained_kinds.items())),\n         \"dropped_kinds\": dict(sorted(dropped_kinds.items())),\n     }\n@@ -493,7 +512,11 @@ def build(a: Analysis) -> dict:\n         a.events, getattr(a.trace, \"function_returns\", ()), a.elf,\n         retained_ids={id(e) for e in events})\n     metrics = a.metrics()\n-    caller_cache: dict[str, str] = {}\n+    display_cache: dict[str, str] = {}\n+    def display(raw):\n+        if raw not in display_cache:\n+            display_cache[raw] = display_name(raw)\n+        return display_cache[raw]\n \n     ev = {\n         \"insn\": [], \"cpu\": [], \"kind\": [], \"res\": [], \"pid\": [],\n@@ -508,19 +531,14 @@ def build(a: Analysis) -> dict:\n         ev[\"res\"].append(res_i(e.resource))\n         ev[\"pid\"].append(e.pid if e.pid is not None else -1)\n         ev[\"pc\"].append(e.pc or 0)\n-        ev[\"func\"].append(fn(e.func))\n+        ev[\"func\"].append(fn(display(e.func)) if e.func else fn(None))\n         ev[\"entry\"].append(1 if e.function_entry else 0)\n-        ev[\"entry_name\"].append(fn(e.entry_name) if e.entry_name else -1)\n+        ev[\"entry_name\"].append(fn(display(e.entry_name)) if e.entry_name else -1)\n         caller = None\n         if e.function_entry and e.return_address and a.elf is not None:\n             raw, _ = a.elf.resolve_pc(e.return_address)\n             if raw:\n-                caller = caller_cache.get(raw)\n-                if caller is None:\n-                    caller = (demangle(raw)\n-                              or demangle_v0(raw, impls=True, generics=True)\n-                              or raw)\n-                    caller_cache[raw] = caller\n+                caller = display(raw)\n         ev[\"caller\"].append(fn(caller) if caller else -1)\n         path = stack_paths.get(id(e))\n         ev[\"stack\"].append([fn(label) for label in path] if path else None)\n@@ -657,10 +675,15 @@ def build(a: Analysis) -> dict:\n \n def _samples(a: Analysis) -> dict:\n     fn = Interner()\n+    labels = {}\n     out = {\"insn\": [], \"cpu\": [], \"pc\": [], \"priv\": [], \"func\": []}\n     step = max(1, len(a.trace.samples) // 20000)\n     for s in a.trace.samples[::step]:\n         name, _ = a.elf.resolve_pc(s.pc)\n+        if name:\n+            if name not in labels:\n+                labels[name] = display_name(name)\n+            name = labels[name]\n         out[\"insn\"].append(s.insn)\n         out[\"cpu\"].append(s.cpu)\n         out[\"pc\"].append(s.pc)\n"
      },
      {
        "path": "nodefusion/tests/test_bundle_shape.py",
        "sha256": "55f2f20855a890967caba83581ca1dda43fa6606a5af6ab1ee7b07b074e7c82b",
        "patch": "diff --git a/nodefusion/tests/test_bundle_shape.py b/nodefusion/tests/test_bundle_shape.py\nindex 40bd9fe..80984c3 100644\n--- a/nodefusion/tests/test_bundle_shape.py\n+++ b/nodefusion/tests/test_bundle_shape.py\n@@ -1,5 +1,6 @@\n \n import sys\n+from collections import Counter\n from pathlib import Path\n from types import SimpleNamespace as NS\n \n@@ -73,6 +74,23 @@ def test_caller_names_demangle_rust_trait_impls():\n         \"starry_kernel::mm::aspace::backend::cow::CowBackend::clone_map\"\n \n \n+def test_raw_function_entry_and_pc_names_share_readable_labels():\n+    raw = '_ZN2os4root17h1234567890abcdefE'\n+    a = _analysis(_state())\n+    event = Event(1, 0, 'func.root', 'function', func=raw,\n+                  function_entry=True, entry_name=raw, return_address=0x80001000)\n+    a.elf = NS(resolve_pc=lambda addr: (raw, 0))\n+    a.events = [event]\n+    a.trace.samples = [NS(insn=1, cpu=0, pc=0x80001000, priv=1)]\n+    result = B.build(a)\n+    funcs = result['dict']['funcs']\n+    for key in ['func', 'entry_name', 'caller']:\n+        assert funcs[result['events'][key][0]] == 'os::root'\n+    assert event.entry_name == raw\n+    assert event.func == raw\n+    assert result['samples']['funcs'][result['samples']['func'][0]] == 'os::root'\n+\n+\n def test_resources_is_always_there_even_when_empty():\n     b = B.build(_analysis(_state(reason=\"没声明\")))\n     assert b[\"states\"][0][\"resources\"] == []\n@@ -144,7 +162,8 @@ def test_event_selection_metadata_accounts_for_every_raw_event(monkeypatch):\n     assert audit[\"priority_raw\"] == 4\n     assert audit[\"spare_raw\"] == 26\n     assert audit[\"spare_budget\"] == 6\n-    assert audit[\"stride\"] == 4\n+    assert audit[\"stride\"] is None\n+    assert audit['diagnostic_kind_budgets'] == {'func.hot_path': 6}\n     assert sum(audit[\"retained_kinds\"].values()) == audit[\"retained\"]\n     assert sum(audit[\"dropped_kinds\"].values()) == audit[\"dropped\"]\n     assert [e.insn for e in selected[:4]] == [0, 1, 2, 3]\n@@ -156,10 +175,9 @@ def test_bounded_selector_preserves_order_and_systematic_sample(monkeypatch):\n     events = [NS(kind=(\"proc.fork\" if i in {2, 7} else \"func.hot\"), insn=i)\n               for i in range(12)]\n     selected, audit = B._select_events(events)\n-    # Ten diagnostics, four spare slots => old spare[::2][:4], interleaved\n-    # with both semantic events in original timeline order.\n-    assert [event.insn for event in selected] == [0, 2, 3, 5, 7, 8]\n-    assert audit[\"stride\"] == 2\n+    # Four per-kind positions include the first and last diagnostic entries.\n+    assert [event.insn for event in selected] == [0, 2, 4, 7, 8, 11]\n+    assert audit[\"stride\"] is None\n     assert audit[\"retained\"] == 6\n \n \n@@ -178,6 +196,79 @@ def test_large_semantic_stream_stays_browser_bounded(monkeypatch):\n     assert audit[\"raw\"] == audit[\"retained\"] + audit[\"dropped\"]\n \n \n+def test_rare_semantic_events_survive_hot_kinds_without_kernel_allowlists(monkeypatch):\n+    monkeypatch.setattr(B, 'MAX_EVENTS', 200)\n+    monkeypatch.setattr(B, 'MIN_SPARE_EVENTS', 25)\n+    events = [NS(kind='pagetable.map', insn=i) for i in range(5000)]\n+    events += [NS(kind='future_namespace.branch', insn=5000 + i) for i in range(13)]\n+    events += [NS(kind='trap.page_fault', insn=5013 + i) for i in range(4)]\n+    events += [NS(kind='func.loop', insn=5017 + i) for i in range(1000)]\n+    selected, audit = B._select_events(events)\n+    assert len(selected) == audit['retained'] == 200\n+    assert audit['retained_kinds']['future_namespace.branch'] == 13\n+    assert audit['retained_kinds']['trap.page_fault'] == 4\n+    assert audit['retained_kinds']['func.loop'] == 25\n+    assert audit['semantic_retained'] == 175\n+    assert audit['semantic_kind_budgets']['pagetable.map'] == 158\n+    hot = [item.insn for item in selected if item.kind == 'pagetable.map']\n+    assert hot[0] == 0 and hot[-1] == 4999\n+    assert [item.insn for item in selected] == sorted(item.insn for item in selected)\n+    assert B._select_events(events)[0] == selected\n+    empty, accounting = B._event_selection(events, materialize=False)\n+    assert empty == [] and accounting == audit\n+    for kind, count in Counter(item.kind for item in events).items():\n+        assert audit['retained_kinds'].get(kind, 0) + audit['dropped_kinds'].get(kind, 0) == count\n+\n+\n+def test_more_semantic_kinds_than_slots_is_still_bounded(monkeypatch):\n+    monkeypatch.setattr(B, 'MAX_EVENTS', 7)\n+    monkeypatch.setattr(B, 'MIN_SPARE_EVENTS', 2)\n+    events = [NS(kind=f'new.kind{i}', insn=i) for i in range(20)]\n+    events += [NS(kind='func.noise', insn=20 + i) for i in range(20)]\n+    selected, audit = B._select_events(events)\n+    assert len(selected) == 7\n+    assert audit['semantic_retained'] == 5 and audit['retained_kinds']['func.noise'] == 2\n+    assert sum(audit['semantic_kind_budgets'].values()) == 5\n+    assert [item.kind for item in selected[:5]] == [f'new.kind{i}' for i in range(5)]\n+    assert sum(audit['dropped_kinds'].values()) == 33\n+    assert B._event_selection(events, materialize=False)[1] == audit\n+\n+\n+def test_rare_function_entries_survive_hot_diagnostic_functions(monkeypatch):\n+    monkeypatch.setattr(B, 'MAX_EVENTS', 100)\n+    monkeypatch.setattr(B, 'MIN_SPARE_EVENTS', 25)\n+    events = [NS(kind='syscall.enter', insn=i) for i in range(1000)]\n+    events += [NS(kind='func.format', insn=1000 + i) for i in range(2000)]\n+    events += [NS(kind='func.unmap', insn=3000 + i) for i in range(2)]\n+    selected, audit = B._select_events(events)\n+    assert len(selected) == 100\n+    assert audit['retained_kinds']['func.unmap'] == 2\n+    assert audit['retained_kinds']['func.format'] == 23\n+    assert not audit['dropped_kinds'].get('func.unmap')\n+    assert selected[-1] is events[-1]\n+\n+\n+def test_kind_quotas_use_the_budget_without_exceeding_raw_counts():\n+    for counts in [{'one': 1}, {'a': 2, 'b': 1000, 'c': 9},\n+                   {str(index): index + 1 for index in range(100)}]:\n+        total = sum(counts.values())\n+        for budget in range(min(total, 300) + 1):\n+            quotas, floor = B._kind_budgets(counts, budget)\n+            assert sum(quotas.values()) == budget\n+            assert all(0 <= quotas[kind] <= count for kind, count in counts.items())\n+            assert all(quotas[kind] == count for kind, count in counts.items() if count <= floor)\n+\n+\n+def test_diagnostic_reservation_cannot_exceed_total_budget(monkeypatch):\n+    monkeypatch.setattr(B, 'MAX_EVENTS', 4)\n+    monkeypatch.setattr(B, 'MIN_SPARE_EVENTS', 25)\n+    events = [NS(kind='syscall.enter', insn=0)]\n+    events += [NS(kind='func.hot', insn=i) for i in range(1, 30)]\n+    selected, audit = B._select_events(events)\n+    assert len(selected) == 4 and audit['semantic_budget'] == 0\n+    assert audit['dropped_kinds']['syscall.enter'] == 1\n+\n+\n def test_interactive_sampling_does_not_erase_raw_semantic_coverage(monkeypatch):\n     monkeypatch.setattr(B, \"MAX_EVENTS\", 10)\n     monkeypatch.setattr(B, \"MIN_SPARE_EVENTS\", 3)\n"
      },
      {
        "path": "nodefusion/tests/test_kernel_integrations.py",
        "sha256": "8e3ecdcf6ad5ea3b7fa44a3e3244a2c9678255b62c02d8cd48de9cfc1189b376",
        "patch": "diff --git a/nodefusion/tests/test_kernel_integrations.py b/nodefusion/tests/test_kernel_integrations.py\nindex a285e88..b33e6b0 100644\n--- a/nodefusion/tests/test_kernel_integrations.py\n+++ b/nodefusion/tests/test_kernel_integrations.py\n@@ -64,7 +64,7 @@ def test_rcore_patch_and_manifest_agree_on_the_per_region_hook():\n     assert manifest.events[symbol].kind == \"vm.unmap\"\n     assert manifest.events[symbol].args == [\"start_vpn\", \"end_vpn\"]\n     assert manifest.absent[\"vm.unmap\"].when == {\n-        \"type_missing\": \"os::task::processor::Processor\"}\n+        \"type_missing\": \"os::mm::memory_set::MemorySet\"}\n \n \n def test_rcore_patch_exports_exact_physical_allocation_results():\n@@ -79,6 +79,38 @@ def test_rcore_patch_exports_exact_physical_allocation_results():\n     assert \"nodefusion_trace_sched_switch\" in patch\n \n \n+def test_rcore_reference_region_removal_is_an_attempt_not_a_success_event():\n+    manifest = load(ROOT / 'manifests/rcore.toml')\n+    symbol = 'os::mm::memory_set::MemorySet::remove_framed_area'\n+    assert manifest.events[symbol].kind == 'vm.remove_area'\n+    assert manifest.events[symbol].args == ['self', 'start_vpn', 'end_vpn']\n+    dedicated = next(index for index, watch in enumerate(manifest.watches)\n+                     if watch.match.get('fn') == ['remove_framed_area'])\n+    inline = next(index for index, watch in enumerate(manifest.watches)\n+                  if watch.match.get('fn') == ['frame_alloc', 'frame_dealloc', 'unmap', 'init_heap'])\n+    assert dedicated < inline\n+    assert manifest.watches[dedicated].args == 3\n+    assert not manifest.watches[dedicated].inlined\n+\n+\n+def test_rcore_2026a_ch4_observation_patch_preserves_region_acceptance():\n+    patch = (INTEGRATIONS / 'rcore-2026a-ch4-observation.patch').read_text()\n+    assert patch.index('})?;') < patch.index('nodefusion_vm_unmap_region(start.0, end.0);')\n+    assert patch.index('nodefusion_vm_unmap_region(start.0, end.0);') < patch.index('let mut area = self.areas.remove(index);')\n+    assert 'const NFT_ALLOCATOR_STATE: u64 = 6;' in patch\n+    assert 'a: [free_pages as u64, used_pages as u64, 0, 0]' in patch\n+    assert 'nodefusion_trace_page(NFT_KALLOC, paddr, free_pages, used_pages)' in patch\n+    assert 'nodefusion_trace_page(NFT_KFREE, PhysAddr::from(ppn).0, free_pages, used_pages)' in patch\n+    assert 'GlobalAlloc::alloc(&self.0, layout)' in patch\n+    assert 'GlobalAlloc::dealloc(&self.0, ptr, layout)' in patch\n+    manifest = load(ROOT / 'manifests/rcore.toml')\n+    event = manifest.events['os::mm::page_table::PageTable::map']\n+    assert event.kind == 'pagetable.map' and event.args == ['self', 'vpn', 'ppn', 'flags']\n+    rule = next(watch for watch in manifest.watches\n+                if watch.match == {'module': 'os::mm::page_table::PageTable', 'fn': ['map']})\n+    assert rule.args == 4 and not rule.inlined\n+\n+\n def test_rcore_chapter_patches_preserve_per_region_and_scheduler_identity():\n     for chapter in (6, 8):\n         patch = (INTEGRATIONS / f\"rcore-ch{chapter}-nodefusion.patch\").read_text(\n@@ -94,6 +126,43 @@ def test_rcore_chapter_patches_preserve_per_region_and_scheduler_identity():\n     assert \"block_current_and_run_next\" in ch8\n \n \n+def test_2026a_ch5_observation_preserves_allocator_and_switch_semantics():\n+    rust = (INTEGRATIONS / 'rcore-2026a-ch5-observation.patch').read_text()\n+    c = (INTEGRATIONS / 'ucore-2026a-ch5-observation.patch').read_text()\n+    for patch in (rust, c):\n+        assert 'nftrace_commit_point' in patch\n+        assert 'nodefusion_pagetable_map' in patch or '#[inline(never)]' in patch\n+    assert 'self.allocated -= 1;' in rust\n+    assert 'self.allocated += 1;' in rust\n+    assert 'if result.is_some()' in rust\n+    assert 'frame.as_ref().map_or(0, |frame| PhysAddr::from(frame.ppn).0)' in rust\n+    assert 'pub(crate) const NO_TASK: usize = usize::MAX;' in rust\n+    assert 'emit(4, [from_task as u64, to_task as u64, from_pid as u64, to_pid as u64])' in rust\n+    assert 'crate::nftrace::NO_TASK, next_pid' in rust\n+    assert 'crate::nftrace::sched_switch(task_id, idle, pid, crate::nftrace::NO_TASK)' in rust\n+    assert rust.index('add_task(new_task);') < rust.index('crate::nftrace::process_fork(current_task.getpid(), new_pid);')\n+    assert 'nf_used_pages--;' in c\n+    assert 'nf_used_pages++;' in c\n+    assert c.index('nf_used_pages--;') < c.index('nftrace_page_free((uint64)pa, nf_free_pages, nf_used_pages);')\n+    assert c.index('add_task(np);') < c.index('nftrace_proc_fork(p->pid, np->pid);')\n+    assert 'nftrace_sched_switch((uint64)&idle, (uint64)p, (uint64)-1, p->pid);' in c\n+    assert 'nftrace_sched_switch((uint64)p, (uint64)&idle, p->pid, (uint64)-1);' in c\n+    assert c.index('*pte = PA2PTE(pa) | perm | PTE_V;') < c.index('nodefusion_pagetable_map(a, pa, perm | PTE_V);')\n+\n+\n+def test_rcore_2026a_ch5_region_hooks_only_describe_explicit_pte_removal():\n+    patch = (INTEGRATIONS / 'rcore-2026a-ch5-observation.patch').read_text()\n+    assert 'if mapped_end > area.vpn_range.get_start()' in patch\n+    assert 'nodefusion_vm_unmap_region(area.vpn_range.get_start().0, mapped_end.0);' in patch\n+    assert 'if self.vpn_range.get_start() < self.vpn_range.get_end()' in patch\n+    assert 'nodefusion_vm_unmap_region(self.vpn_range.get_start().0, self.vpn_range.get_end().0);' in patch\n+    assert 'if new_end < self.vpn_range.get_end()' in patch\n+    assert 'nodefusion_vm_unmap_region(new_end.0, self.vpn_range.get_end().0);' in patch\n+    # Releasing data-frame ownership on exit leaves the zombie page table alive.\n+    # Do not invent explicit PTE-removal events for that separate operation.\n+    assert 'self.areas.clear();' not in patch\n+\n+\n def test_rcore_ch8_keeps_applicable_vm_and_signal_watchpoints_callable():\n     patch = (INTEGRATIONS / \"rcore-page-table-observation-points.patch\").read_text()\n     assert patch.count(\"#[inline(never)]\") == 6\n@@ -161,7 +230,7 @@ def test_rcore_filesystem_absence_depends_on_the_resolved_build(monkeypatch):\n             (\"proc.alloc\", \"os::task::task::TaskControlBlock\"),\n             (\"proc.fork\", \"os::task::processor::Processor\"),\n             (\"proc.exec\", \"os::task::processor::Processor\"),\n-            (\"vm.unmap\", \"os::task::processor::Processor\"),\n+            (\"vm.unmap\", \"os::mm::memory_set::MemorySet\"),\n             (\"phys.alloc\", \"os::mm::frame_allocator::StackFrameAllocator\"),\n             (\"phys.free\", \"os::mm::frame_allocator::StackFrameAllocator\"),\n             (\"vm.map\", \"os::mm::memory_set::MemorySet\"),\n@@ -189,6 +258,28 @@ def test_ucore_patch_and_manifest_supply_exact_semantics():\n     assert manifest.absent[\"log.commit\"].why == \"feature\"\n \n \n+def test_ucore_2026a_ch4_patch_observes_allocator_results_and_committed_ptes():\n+    patch = (INTEGRATIONS / 'ucore-2026a-ch4-observation.patch').read_text()\n+    paths = [line.split(' b/', 1)[1] for line in patch.splitlines() if line.startswith('diff --git ')]\n+    assert set(paths) == {'os/kalloc.c', 'os/vm.c', 'os/nftrace.c', 'os/nftrace.h'}\n+    assert 'NFT_KALLOC = 1' in patch and 'NFT_KFREE = 5' in patch and 'NFT_ALLOCATOR_STATE = 6' in patch\n+    assert 'nftrace_page_alloc((uint64)l, 1, nf_free_pages, nf_used_pages)' in patch\n+    assert 'nftrace_page_free((uint64)pa, 1, nf_free_pages, nf_used_pages)' in patch\n+    assert 'nftrace_allocator_state(nf_free_pages, nf_used_pages)' in patch\n+    assert patch.index('*pte = PA2PTE(pa) | perm | PTE_V;') < patch.index('nodefusion_pagetable_map(a, pa, perm | PTE_V);')\n+    assert 'const struct nftrace_record record = { type, { a0, a1, a2, a3 } }' in patch\n+\n+\n+def test_ucore_2026a_ch4_page_table_experiment_owns_and_reclaims_its_pages():\n+    patch = (INTEGRATIONS / 'ucore-2026a-ch4-pagetable-experiment.patch').read_text()\n+    assert patch.index('uvmunmap(table, va, 1, 0)') < patch.index('uvmunmap(table, va, 1, 1)')\n+    assert patch.index('uvmunmap(table, TRAMPOLINE, 1, 0)') < patch.index('freewalk(table)')\n+    assert 'walkaddr(table, va + 0x123) != (uint64)frame' in patch\n+    assert 'useraddr(table, va + 0x123) != (uint64)frame + 0x123' in patch\n+    assert 'frame[0x123] != 0x5a' in patch\n+    assert patch.index('kvm_init();') < patch.index('nodefusion_pagetable_experiment();', patch.index('kvm_init();'))\n+\n+\n def test_ucore_showcase_fixes_remain_separate_from_observation_patch():\n     observation = (INTEGRATIONS / \"ucore-nodefusion.patch\").read_text()\n     kernel_fix = (INTEGRATIONS / \"ucore-ch8-showcase.patch\").read_text()\n@@ -204,6 +295,13 @@ def test_ucore_manifest_covers_all_eight_measured_shapes():\n     manifest = load(ROOT / \"manifests\" / \"ucore.toml\")\n     assert manifest.detect == {\"all_symbol\": [\"digits\", \"SBI_SHUTDOWN\"]}\n     assert manifest.derive_feature_absence_from_symbols is True\n+    process = manifest.entity(\"process\")\n+    assert process.liveness[\"skip_when\"] == {\n+        \"field\": \"state\", \"one_of\": [\"UNUSED\", \"P_UNUSED\"]}\n+    fields = {field.name: field for field in process.fields}\n+    assert fields[\"context\"].role == \"sched_context\"\n+    assert fields[\"trapframe\"].role == \"trap_context\"\n+    assert all(fields[name].optional for name in (\"context\", \"trapframe\", \"kstack\"))\n     parent = next(field for field in manifest.entity(\"process\").relations\n                   if field.name == \"parent\")\n     assert parent.optional is True\n"
      },
      {
        "path": "nodefusion/tests/test_resolve.py",
        "sha256": "b14f432eb380c5514b73431978b01b0d715ed9a49f92deb547358fb35dd4d8ec",
        "patch": "diff --git a/nodefusion/tests/test_resolve.py b/nodefusion/tests/test_resolve.py\nindex 0eeed28..585b0a8 100644\n--- a/nodefusion/tests/test_resolve.py\n+++ b/nodefusion/tests/test_resolve.py\n@@ -97,6 +97,30 @@ def test_missing_field_is_absent_not_a_failure():\n     assert resolve_path(dw, tcb, \"inner.priority\").state == ABSENT\n \n \n+def test_rcore_priority_spellings_resolve_without_kernel_branches():\n+    from nodefusion.model.manifest import builtin_dir, load\n+    from nodefusion.model.snapshot import Entity, Field\n+\n+    manifest = load(builtin_dir() / \"rcore.toml\")\n+    specs = [field for entity in manifest.entities if entity.name == \"task\"\n+             for field in entity.fields if field.role == \"priority\"]\n+    assert {field.path for field in specs} == {\"inner.prio\", \"inner.priority\"}\n+    assert all(field.optional for field in specs)\n+    for spelling in (\"prio\", \"priority\", None):\n+        dw, tcb = chain()\n+        if spelling:\n+            dw._s[6].fields[spelling] = 136\n+        fields = {}\n+        for spec in specs:\n+            resolved = resolve_path(dw, tcb, spec.path)\n+            fields[spec.name] = Field(spec.name, resolved.state,\n+                                      value=16 if resolved.state == PRESENT else None,\n+                                      role=spec.role)\n+        entity = Entity(\"task\", 0x1000, fields=fields)\n+        assert entity.role(\"priority\") == (16 if spelling else None)\n+        assert sum(field.ok for field in fields.values()) == (1 if spelling else 0)\n+\n+\n def test_missing_field_names_the_payload_type_not_just_the_wrapper():\n     dw, tcb = chain()\n     why = resolve_path(dw, tcb, \"inner.priority\").reason or \"\"\n"
      },
      {
        "path": "nodefusion/host/assets/app.css",
        "sha256": "4a6f97f6046f1658f683e28107b5e524cf64507c57e7ad76035a7e8d745740eb",
        "patch": "diff --git a/nodefusion/host/assets/app.css b/nodefusion/host/assets/app.css\nindex 88f5f82..f2adda9 100644\n--- a/nodefusion/host/assets/app.css\n+++ b/nodefusion/host/assets/app.css\n@@ -415,7 +415,7 @@ tr.sel td { background: color-mix(in oklch, var(--accent) 12%, var(--bg)); }\n .detail-empty-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; color: var(--accent); font-size: 21px; }\n .detail-empty h2 { color: var(--fg); font-size: 14px; margin: 16px 0 5px; }\n .detail-empty p { max-width: 28ch; margin: 0; line-height: 1.55; }\n-.trace-controls { display: flex; gap: 8px; margin: 0 0 16px; }\n+.trace-controls { display: flex; gap: 8px; margin: 0 0 16px; position: sticky; top: -22px; z-index: 2; background: var(--bg); padding-block: 8px; border-bottom: 1px solid var(--line); }\n .trace-controls input, .trace-controls select { height: 34px; min-width: 150px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg2); color: var(--fg); }\n .trace-controls input { flex: 1; min-width: 220px; }\n .trace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-height: 420px; }\n@@ -460,8 +460,8 @@ tr.sel td { background: color-mix(in oklch, var(--accent) 12%, var(--bg)); }\n   .right { width: 100%; max-height: 340px; border-left: 0; border-top: 1px solid var(--line); padding: 14px; }\n   .main.detail-collapsed .right { display: none; }\n   #evscroll { height: 54vh; }\n-  .trace-grid { grid-template-columns: 1fr; }\n-  .function-tree, .function-sequence { max-height: 42vh; }\n+  .trace-grid { grid-template-columns: 1fr; min-height: 0; align-items: start; }\n+  .function-tree, .function-sequence { min-height: 0; max-height: 42vh; }\n }\n @media (max-width: 560px) {\n   .brand-kicker, .shortcut-hint { display: none; }\n"
      },
      {
        "path": "nodefusion/host/assets/app.js",
        "sha256": "c253b16d88ddc73d1c78ec3729800800ad255b923712893dbe12f66faab2aca2",
        "patch": "diff --git a/nodefusion/host/assets/app.js b/nodefusion/host/assets/app.js\nindex 7f1256e..a87dcd9 100644\n--- a/nodefusion/host/assets/app.js\n+++ b/nodefusion/host/assets/app.js\n@@ -28,6 +28,7 @@ const NF = {\n   selPage: null,\n   selPid: null,\n   filters: { text: '', kind: '', res: '', pid: '', cpu: '', group: '', from: '', to: '' },\n+  functionFilters: {text: '', cpu: '', limit: '80', grouping: null},\n };\n \n /* ------------------------------------------------------------------ 工具 */\n@@ -1641,6 +1642,10 @@ function renderFunctions() {\n   if (returns.nested_entries) grouping.appendChild(new Option('观测调用链', 'stack'));\n   if (returns.nested_entries) grouping.value = 'stack';\n   else if (!entries.some((e) => e.caller)) grouping.value = 'namespace';\n+  search.value = NF.functionFilters.text;\n+  cpu.value = NF.functionFilters.cpu;\n+  limit.value = NF.functionFilters.limit;\n+  if ([...grouping.options].some(option => option.value === NF.functionFilters.grouping)) grouping.value = NF.functionFilters.grouping;\n   controls.appendChild(search); controls.appendChild(cpu); controls.appendChild(grouping);\n   controls.appendChild(limit); p.appendChild(controls);\n \n@@ -1658,6 +1663,7 @@ function renderFunctions() {\n   grid.appendChild(treePanel); grid.appendChild(sequencePanel); p.appendChild(grid);\n \n   function paint() {\n+    NF.functionFilters = {text: search.value, cpu: cpu.value, limit: limit.value, grouping: grouping.value};\n     const q = search.value.trim().toLowerCase();\n     const selectedCpu = cpu.value;\n     const filtered = entries.filter((e) => (!q || e.fn.toLowerCase().includes(q) || e.caller.toLowerCase().includes(q) || (e.path || []).some((name) => name.toLowerCase().includes(q))) && (selectedCpu === '' || String(e.cpu) === selectedCpu));\n"
      },
      {
        "path": "nodefusion/tests/test_phys_alloc_gate.py",
        "sha256": "a1b68458d8268d052082ad92b80f86753c46423eec7c86c3bdd6019e23b8186a",
        "patch": "diff --git a/nodefusion/tests/test_phys_alloc_gate.py b/nodefusion/tests/test_phys_alloc_gate.py\nindex 3cb406d..ec2bc43 100644\n--- a/nodefusion/tests/test_phys_alloc_gate.py\n+++ b/nodefusion/tests/test_phys_alloc_gate.py\n@@ -128,6 +128,51 @@ def test_sched_semantic_record_fills_both_endpoints_without_snapshots():\n     assert event.detail[\"from_proc\"] == \"kernel-task#41\"\n     assert event.detail[\"to_task_id\"] == 42\n     assert event.detail[\"to_pid\"] == 7\n+    assert event.pid == 7\n+    assert a._attribute(0, -1, {}) == (7, \"task#7\")\n+\n+\n+def test_semantic_switch_attribution_survives_missing_and_reused_snapshot_slots():\n+    a = object.__new__(A.Analysis)\n+    a._pid_by_slot_at = lambda *_: (99, \"stale slot\")\n+    slots = {0: 3, 1: 4}\n+    assert a._attribute(0, 0, slots) == (99, \"stale slot\")\n+    a._nftrace_event(NfTraceRec(insn=100, cpu=0, type=a.NFT_SCHED_SWITCH,\n+                              a=(10, 20, a.NFT_NO_TASK, 7)), -1, slots)\n+    assert a._attribute(0, -1, {}) == (7, \"task#7\")\n+    assert a._attribute(0, 200, slots) == (7, \"task#7\")\n+    assert a._attribute(1, 0, slots) == (99, \"stale slot\")\n+    alloc = a._nftrace_event(NfTraceRec(insn=101, cpu=0, type=a.NFT_KALLOC,\n+                                      a=(0x81234000, 1, 9, 1)), -1, {})\n+    assert alloc.pid == 7\n+\n+\n+def test_semantic_switches_track_each_cpu_and_distinguish_pid_zero_from_idle():\n+    a = object.__new__(A.Analysis)\n+    for cpu, pid in [(0, 0), (1, 7)]:\n+        a._nftrace_event(NfTraceRec(insn=100 + cpu, cpu=cpu, type=a.NFT_SCHED_SWITCH,\n+                                  a=(10 + cpu, 20 + cpu, a.NFT_NO_TASK, pid)), -1, {})\n+    assert a._attribute(0, -1, {}) == (0, \"task#0\")\n+    assert a._attribute(1, -1, {}) == (7, \"task#7\")\n+    a._nftrace_event(NfTraceRec(insn=102, cpu=0, type=a.NFT_SCHED_SWITCH,\n+                              a=(20, 10, 0, a.NFT_NO_TASK)), -1, {})\n+    assert a._attribute(0, -1, {}) == (None, \"kernel-task#10\")\n+    assert a._attribute(1, -1, {}) == (7, \"task#7\")\n+\n+\n+def test_rebuilding_events_resets_semantic_ownership_without_using_future_switches():\n+    a = object.__new__(A.Analysis)\n+    a.ncpu = 1\n+    a.states = []\n+    a.events = []\n+    a._semantic_current = {0: (99, \"previous analysis\")}\n+    a.trace = NS(discons=[], watch_hits=[], nftrace=[\n+        NfTraceRec(insn=1, cpu=0, type=a.NFT_KALLOC, a=(0x81234000, 1, 9, 1)),\n+        NfTraceRec(insn=2, cpu=0, type=a.NFT_SCHED_SWITCH, a=(10, 20, a.NFT_NO_TASK, 7)),\n+        NfTraceRec(insn=3, cpu=0, type=a.NFT_KALLOC, a=(0x81235000, 1, 8, 2)),\n+    ])\n+    a.build_events()\n+    assert [event.pid for event in a.events] == [None, 7, 7]\n \n \n def test_kfree_semantic_record_has_physical_range():\n"
      },
      {
        "path": "nodefusion/host/callstack.py",
        "sha256": "7a1ce5d70940e2c98792f57543e3df2cbc7b9f96ec5d8c7b280ccf17c78f9bde",
        "patch": "diff --git a/nodefusion/host/callstack.py b/nodefusion/host/callstack.py\nindex edae6fe..6f42814 100644\n--- a/nodefusion/host/callstack.py\n+++ b/nodefusion/host/callstack.py\n@@ -4,7 +4,7 @@ from __future__ import annotations\n \n import heapq\n \n-from ..model.symbols import demangle, demangle_v0\n+from ..model.symbols import display_name\n from . import nftrace\n \n \n@@ -20,6 +20,11 @@ def observed_stacks(events, returns, elf, retained_ids=None):\n     matched = 0\n     nested = 0\n     caller_cache = {}\n+    label_cache = {}\n+    def label(name):\n+        if name not in label_cache:\n+            label_cache[name] = display_name(name)\n+        return label_cache[name]\n     if not returns:\n         return paths, {\"raw\": 0, \"matched\": 0, \"nested_entries\": 0}\n     entries = ((e.insn, 0, e.cpu, e) for e in events\n@@ -49,10 +54,13 @@ def observed_stacks(events, returns, elf, retained_ids=None):\n         parent = frames[-1] if frames else None\n         if obj.return_address not in caller_cache:\n             raw = elf.resolve_pc(obj.return_address)[0] if elf else None\n-            caller_cache[obj.return_address] = (\n-                demangle(raw) or demangle_v0(raw) or raw) if raw else None\n+            caller_cache[obj.return_address] = raw\n         caller = caller_cache[obj.return_address]\n-        if (parent is None or parent.entry_name != caller or\n+        # Raw symbols distinguish Rust instantiations with the same display\n+        # name. Older producers may already supply a decoded entry name.\n+        caller_matches = (parent is not None and caller is not None and\n+                          (parent.entry_name == caller or parent.entry_name == label(caller)))\n+        if (not caller_matches or\n                 parent.address_space != obj.address_space or\n                 obj.stack_pointer > parent.stack_pointer):\n             frames.clear()\n@@ -60,7 +68,7 @@ def observed_stacks(events, returns, elf, retained_ids=None):\n             frames.clear()\n         frames.append(obj)\n         if retained_ids is None or id(obj) in retained_ids:\n-            paths[id(obj)] = tuple(f.entry_name or f.func or f.kind for f in frames[-16:])\n+            paths[id(obj)] = tuple(label(f.entry_name or f.func or f.kind) for f in frames[-16:])\n         if len(frames) > 1:\n             nested += 1\n     return paths, {\"raw\": len(returns), \"matched\": matched,\n"
      },
      {
        "path": "nodefusion/model/symbols.py",
        "sha256": "39f23be73d754e52221a4889c0101d50d8d8962ec21f1628d1cc36f07acdecb8",
        "patch": "diff --git a/nodefusion/model/symbols.py b/nodefusion/model/symbols.py\nindex 8bf19dc..7310e65 100644\n--- a/nodefusion/model/symbols.py\n+++ b/nodefusion/model/symbols.py\n@@ -41,6 +41,10 @@ def demangle(sym: str) -> str | None:\n     return _demangle_legacy(sym) or demangle_v0(sym)\n \n \n+def display_name(sym: str) -> str:\n+    return demangle(sym) or demangle_v0(sym, impls=True, generics=True) or sym\n+\n+\n def _demangle_legacy(sym: str) -> str | None:\n     s = _LLVM_SUFFIX.sub(\"\", sym)\n     if not s.startswith(\"_ZN\") or not s.endswith(\"E\"):\n"
      },
      {
        "path": "nodefusion/tests/test_callstack.py",
        "sha256": "78bc55f0ccf1a6dde2836aaa256ca0ce9fc0f9b4c6dcc4b144732460144d901e",
        "patch": "diff --git a/nodefusion/tests/test_callstack.py b/nodefusion/tests/test_callstack.py\nindex 4e2b5f5..9c91f75 100644\n--- a/nodefusion/tests/test_callstack.py\n+++ b/nodefusion/tests/test_callstack.py\n@@ -55,3 +55,27 @@ def test_unretained_entries_still_shape_retained_stack():\n                                     Elf(), retained_ids={id(child)})\n     assert paths == {id(child): (\"root\", \"child\")}\n     assert counts[\"matched\"] == 1\n+\n+\n+def test_rust_raw_symbols_match_and_display_as_function_names():\n+    raw_root = '_ZN2os4root17h1234567890abcdefE'\n+    raw_child = '_ZN2os5child17h1234567890abcdefE'\n+    root = entry(1, raw_root, 0x99, 100)\n+    child = entry(2, raw_child, 0x10, 80)\n+    elf = type('RustElf', (), {'resolve_pc': lambda self, pc: (raw_root, 0) if pc == 0x10 else (None, 0)})()\n+    paths, counts = observed_stacks([root, child], [ret(3, 0x10, 80)], elf)\n+    assert paths[id(child)] == ('os::root', 'os::child')\n+    assert counts['nested_entries'] == 1\n+    assert root.entry_name == raw_root\n+    assert child.entry_name == raw_child\n+\n+\n+def test_decoded_names_do_not_merge_distinct_raw_rust_symbols():\n+    raw_root = '_ZN2os4root17h1234567890abcdefE'\n+    other_root = '_ZN2os4root17hfedcba0987654321E'\n+    root = entry(1, raw_root, 0x99, 100)\n+    child = entry(2, 'child', 0x10, 80)\n+    elf = type('RustElf', (), {'resolve_pc': lambda self, pc: (other_root, 0) if pc == 0x10 else (None, 0)})()\n+    paths, counts = observed_stacks([root, child], [ret(3, 0x10, 80)], elf)\n+    assert paths[id(child)] == ('child',)\n+    assert counts['nested_entries'] == 0\n"
      },
      {
        "path": "nodefusion/tests/test_event_kinds.py",
        "sha256": "67eee9315e36a7484d1141590701ad8e4e23c4be212b1ac9c0c4949983beef52",
        "patch": "diff --git a/nodefusion/tests/test_event_kinds.py b/nodefusion/tests/test_event_kinds.py\nindex c681f50..0117daf 100644\n--- a/nodefusion/tests/test_event_kinds.py\n+++ b/nodefusion/tests/test_event_kinds.py\n@@ -104,6 +104,23 @@ def test_a_manifest_without_the_section_still_loads(tmp_path):\n     assert _load(tmp_path, \"\").events == {}\n \n \n+def test_ucore_shutdown_is_not_a_panic_or_an_argument_bearing_call():\n+    man = M.load(DRAFTS / \"ucore.toml\")\n+    event = man.events[\"shutdown\"]\n+    assert event.kind == \"kernel.shutdown\"\n+    assert event.args == []\n+    watches = [w for w in man.watches if \"shutdown\" in w.match.get(\"fn\", [])]\n+    assert watches and all(w.args == 0 for w in watches)\n+    for name, symbol in [(\"xv6\", \"panic\"), (\"rcore\", \"os::lang_items::panic\")]:\n+        assert M.load(DRAFTS / f\"{name}.toml\").events[symbol].kind == \"kernel.panic\"\n+\n+\n+def test_new_manifest_does_not_relabel_a_historical_recording():\n+    events = M.load(DRAFTS / \"ucore.toml\").events\n+    assert event_shape(\"shutdown\", {\"kind\": \"kernel.panic\", \"params\": [\"reason\"]},\n+                       kernel_kind=\"ucore\", events=events)[0] == \"kernel.panic\"\n+\n+\n \n def _shape(name, *, kind=\"\", resource=\"kernel\", params=(), kernel):\n     entry = {\"resource\": resource, \"params\": list(params)}\n"
      },
      {
        "path": "nodefusion/tests/test_no_build.py",
        "sha256": "4bc6168bfe29297a6cb93ec91824dcbb9764c9ae8551f3d71446cd97e619d4ad",
        "patch": "diff --git a/nodefusion/tests/test_no_build.py b/nodefusion/tests/test_no_build.py\nindex 5fa5c28..d5a3c25 100644\n--- a/nodefusion/tests/test_no_build.py\n+++ b/nodefusion/tests/test_no_build.py\n@@ -48,7 +48,7 @@ def test_it_records_without_building(tmp_path):\n     assert \"跳过构建\" in out\n \n \n-def test_it_says_out_loud_that_nothing_was_built(tmp_path):\n+def test_warning_identifies_the_existing_build_and_checksum_record(tmp_path):\n     r = _recorder(tmp_path, _tree(tmp_path))\n     r.build_kernel()\n     assert len(r.warnings) == 1\n@@ -56,7 +56,8 @@ def test_it_says_out_loud_that_nothing_was_built(tmp_path):\n     assert \"--no-build\" in w\n     assert \"kernel.elf\" in w\n     assert \"UTC\" in w\n-    assert \"没人验证过\" in w\n+    assert \"这次没有编译\" in w\n+    assert \"kernel_elf_identity\" in w\n \n \n def test_a_missing_elf_is_fatal(tmp_path):\n"
      },
      {
        "path": "nodefusion/tests/test_record_icount.py",
        "sha256": "f76528d2c5a7fc18938d0afc88b5ee9e9626d63801bccc6ced57c1e4b2c823a0",
        "patch": "diff --git a/nodefusion/tests/test_record_icount.py b/nodefusion/tests/test_record_icount.py\nindex 8e8d223..25ae2a0 100644\n--- a/nodefusion/tests/test_record_icount.py\n+++ b/nodefusion/tests/test_record_icount.py\n@@ -1,9 +1,46 @@\n from pathlib import Path\n from types import SimpleNamespace\n \n-from nodefusion.host.record import (Recorder, RunConfig, _calibration_watchlist,\n+import pytest\n+\n+from nodefusion.host.record import (NO_PROGRAM, Recorder, RunConfig, _calibration_watchlist,\n                                     _program_start_from_trace,\n                                     _snapshot_focus_start)\n+\n+\n+@pytest.mark.parametrize('capability,program,expected', [\n+    (True, NO_PROGRAM, 'headless'),\n+    (True, '', 'headless'),\n+    (True, 'usertest', 'shell'),\n+    (False, 'usertest', 'headless'),\n+])\n+def test_driver_uses_workload_mode_not_only_kernel_capability(monkeypatch, tmp_path,\n+                                                             capability, program, expected):\n+    class Reader:\n+        def __init__(self, *args):\n+            pass\n+\n+        def start(self):\n+            pass\n+\n+        def join(self, **kwargs):\n+            pass\n+\n+        def text(self):\n+            return ''\n+\n+    monkeypatch.setattr('nodefusion.host.record._ConsoleReader', Reader)\n+    recorder = Recorder.__new__(Recorder)\n+    recorder.cfg = SimpleNamespace(program=program)\n+    recorder.profile = SimpleNamespace(interactive=capability)\n+    process = SimpleNamespace(stdout=None, stderr=None, poll=lambda: 0)\n+    recorder.sh = SimpleNamespace(popen=lambda cmd: process)\n+    recorder._qemu_cmd = lambda *args: 'qemu'\n+    recorder._drive_headless = lambda *args: 'headless'\n+    recorder._drive_shell = lambda *args: 'shell'\n+    outcome, _, _ = recorder._drive(tmp_path / 'trace.nfb', None, 100,\n+                                    tmp_path / 'console.log', tmp_path / 'qemu.log')\n+    assert outcome == expected\n from nodefusion.host.watchlist import NFTRACE_COMMIT, WatchEntry, WatchList\n \n \n"
      },
      {
        "path": "nodefusion/tests/test_regenerate_artifact.py",
        "sha256": "0098a8fc52b7cd42889036de78ca54cec00064396d701eadd224b3febd3c043b",
        "patch": "diff --git a/nodefusion/tests/test_regenerate_artifact.py b/nodefusion/tests/test_regenerate_artifact.py\nindex 566d3f5..12e6f80 100644\n--- a/nodefusion/tests/test_regenerate_artifact.py\n+++ b/nodefusion/tests/test_regenerate_artifact.py\n@@ -17,6 +17,12 @@ EXPECTED_RUNS = {\n     *{f\"rcore-ch{n}\" for n in range(1, 9)},\n     *{f\"ucore-ch{n}\" for n in range(1, 9)},\n }\n+COURSE_RUNS = {\"rcore-2026A-ch3-observed\", \"ucore-2026A-ch3-batch\",\n+               \"rcore-2026A-ch1-verified\", \"ucore-2026A-ch1-verified\",\n+               \"rcore-2026A-ch2-reference\", \"ucore-2026A-ch2-reference\",\n+               \"ucore-2026A-ch2-stack-fixed\", \"ucore-2026A-ch2-faults\",\n+               \"rcore-2026A-ch4-observed\", \"ucore-2026A-ch4-observed\",\n+               \"ucore-2026A-ch4-pagetable\"}\n \n \n def report_sidecars():\n@@ -43,14 +49,31 @@ def record_from(path):\n \n def test_all_chapter_and_app_artifacts_are_present():\n     entries = report_sidecars()\n-    assert len(entries) == 24\n+    assert len(entries) == len(EXPECTED_RUNS) + len(COURSE_RUNS)\n     runs = {record_from(path)[\"run\"] for path, _ in entries}\n-    assert len(runs) == 24\n+    assert len(runs) == len(entries)\n+    assert COURSE_RUNS <= runs\n     normalized = {name if not name.startswith((\"rcore-\", \"ucore-\"))\n                   else \"-\".join(name.split(\"-\")[:2]) for name in runs}\n     assert EXPECTED_RUNS <= normalized\n \n \n+def test_course_artifacts_keep_commands_source_identity_and_raw_counts():\n+    records = [record for path, _ in report_sidecars()\n+               if (record := json.loads(path.read_text())).get(\"schema\") == \"nodefusion.education-recording/1\"]\n+    assert {record[\"run\"] for record in records} == COURSE_RUNS\n+    for record in records:\n+        assert record[\"schema\"] == \"nodefusion.education-recording/1\"\n+        expected = {\"rcore-2026A-ch1-verified\": \"qemu_exited\",\n+                    \"ucore-2026A-ch2-reference\": \"timeout\"}.get(record[\"run\"], \"completed\")\n+        assert record[\"outcome\"] == expected and record[\"trace_complete\"]\n+        assert len(record[\"source\"][\"kernel_commit\"]) == 40\n+        assert len(record[\"source\"][\"plugin_sha256\"]) == 64\n+        assert \"--watch-all\" in record[\"record_command\"]\n+        assert \"--function-returns\" in record[\"record_command\"]\n+        assert record[\"observations\"][\"raw_events\"] == record[\"report\"][\"event_selection\"][\"raw\"]\n+\n+\n def test_tracecomplete_reuses_its_recording_folder():\n     folder = ARTIFACTS / \"arceos/apps/tracecomplete\"\n     manifest = json.loads((folder / \"manifest.json\").read_text(encoding=\"utf-8\"))\n"
      },
      {
        "path": "nodefusion/tests/test_snapshot.py",
        "sha256": "a1e5383c15e3c3c18222f6e07991712b1f22dfebd3ec67178eb58e4710a921ea",
        "patch": "diff --git a/nodefusion/tests/test_snapshot.py b/nodefusion/tests/test_snapshot.py\nindex f6ee7e9..3f17d86 100644\n--- a/nodefusion/tests/test_snapshot.py\n+++ b/nodefusion/tests/test_snapshot.py\n@@ -235,6 +235,19 @@ def test_liveness_only_skips_on_an_exact_match():\n     assert is_live(E(2149793408), spec)\n \n \n+def test_liveness_supports_declared_state_names_across_kernel_versions():\n+    from nodefusion.model.snapshot import Entity\n+\n+    spec = {\"skip_when\": {\"field\": \"state\", \"one_of\": [\"UNUSED\", \"P_UNUSED\"]}}\n+    for value, live in ((\"UNUSED\", False), (\"P_UNUSED\", False),\n+                        (\"RUNNABLE\", True), (\"P_RUNNING\", True), (0, True)):\n+        entity = Entity(\"process\", 0, fields={\"state\": Field(\"state\", PRESENT, value)})\n+        assert is_live(entity, spec) is live\n+    for state in (ABSENT, EMPTY, UNDECODABLE):\n+        entity = Entity(\"process\", 0, fields={\"state\": Field(\"state\", state)})\n+        assert is_live(entity, spec)\n+\n+\n @needs_elf\n def test_entity_count_comes_from_dwarf_not_a_constant(xv6):\n     dw, m, res, syms = xv6\n"
      },
      {
        "path": "nodefusion/tests/test_units.py",
        "sha256": "9bf99f5d3080ed458a97e736e30b84025eb99c1e43e693d9aa33f519896106b3",
        "patch": "diff --git a/nodefusion/tests/test_units.py b/nodefusion/tests/test_units.py\nindex f10392d..8d86a2d 100644\n--- a/nodefusion/tests/test_units.py\n+++ b/nodefusion/tests/test_units.py\n@@ -40,6 +40,49 @@ def test_rcore_booted_needs_the_kernel_marker(console, booted):\n     assert K.by_kind('rcore').booted(console) is booted\n \n \n+@pytest.mark.parametrize(\"marker\", [\"ALL DONE\", \"all app are over!\", \"all apps over\"])\n+def test_ucore_batch_completion(marker):\n+    assert K.by_kind('ucore').classify(f\"[PANIC 5] os/loader.c:14: {marker}\\n\") == 'completed'\n+\n+\n+@pytest.mark.parametrize(\"console, booted\", [\n+    (\"\\x1b[34m[INFO 0]start scheduler!\\x1b[0m\\n\", True),\n+    (\"C user shell\\n>> \", True),\n+    (\"OpenSBI v1.7\\n\", False),\n+])\n+def test_ucore_shell_and_scheduler_boot_markers(console, booted):\n+    assert K.by_kind('ucore').booted(console) is booted\n+\n+\n+def test_ucore_batch_without_completion_is_not_complete():\n+    assert K.by_kind('ucore').classify(\"start scheduler!\\nTest write A OK!\\n\") == 'qemu_exited'\n+\n+\n+@pytest.mark.parametrize('diagnostic', ['IllegalInstruction in application, core dumped.',\n+                                      '[PANIC 0] user assertion failed'])\n+def test_ucore_user_diagnostics_are_not_kernel_stop_markers(diagnostic):\n+    profile = K.by_kind('ucore')\n+    assert profile.booted('hello wrold!\\n')\n+    assert profile.classify(diagnostic) == 'qemu_exited'\n+    assert profile.classify(diagnostic + '\\nALL DONE\\n') == 'completed'\n+\n+\n+def test_ucore_headless_keeps_recording_after_user_fault(monkeypatch):\n+    from types import SimpleNamespace\n+    from nodefusion.host.record import Recorder\n+\n+    reader = SimpleNamespace(eof=False)\n+    consoles = iter(['hello wrold!\\nIllegalInstruction in application, core dumped.\\n',\n+                     'hello wrold!\\nIllegalInstruction in application, core dumped.\\nALL DONE\\n'])\n+    reader.text = lambda: next(consoles)\n+    monkeypatch.setattr('nodefusion.host.record.time.sleep', lambda seconds: None)\n+    recorder = Recorder.__new__(Recorder)\n+    recorder.cfg = SimpleNamespace(timeout=10, boot_timeout=5)\n+    recorder.profile = K.by_kind('ucore')\n+    process = SimpleNamespace(poll=lambda: None)\n+    assert recorder._drive_headless(process, reader) == 'completed'\n+\n+\n # ----------------------------------------------------------------- xv6 classify\n \n def test_xv6_panic():\n"
      }
    ],
    "deployed_source_files": {
      "nodefusion/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/_vendor/elftools/__init__.py": "9385fdca231d9ad83e27a59aa1bc59b252efad8c24cf08c9f39e0b543f675746",
      "nodefusion/_vendor/elftools/common/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/_vendor/elftools/common/construct_utils.py": "d1de2461e60636b52cfc446d00f7a31f152f2ccc43c1a53bc2ba82187ca1e460",
      "nodefusion/_vendor/elftools/common/exceptions.py": "bedd7aa994281100ba13a40dfaad8b03eec17a725a1c4cb23893572d99bbd1ef",
      "nodefusion/_vendor/elftools/common/utils.py": "36a5f64bfb3aab0dba30d9fa05aa1b3f9fbbf86f297eee27c7c12652f5ac308b",
      "nodefusion/_vendor/elftools/construct/__init__.py": "15104eb011a640e4268a9b9221d07201a0360ff0b1c8b49e252ef41fdfbb35de",
      "nodefusion/_vendor/elftools/construct/adapters.py": "5745745b25eb849174ee5c3179b9867b03e0471633e9eac8276aa439fe4c8841",
      "nodefusion/_vendor/elftools/construct/core.py": "df9719893de6454f5bc4c912afc892bcc278ef45ac1553bf4a409278ba347c9d",
      "nodefusion/_vendor/elftools/construct/debug.py": "491486779e464e0f4a59cfd429d8e93c577a0f0d9b969847e69400a3c86acb1c",
      "nodefusion/_vendor/elftools/construct/lib/__init__.py": "973420ec247c18b9e5488743bb099ae82f19c7287ef31dcb529a7283b6e42eb3",
      "nodefusion/_vendor/elftools/construct/lib/binary.py": "f18e4161a11bc95732bd01c577cbe98373081afd5b4112b02fec51a0e1df2e11",
      "nodefusion/_vendor/elftools/construct/lib/bitstream.py": "ee8081769bed1d00a086399c8749a847c1a48b8d08637506bf7d1229b6e1808a",
      "nodefusion/_vendor/elftools/construct/lib/container.py": "0385a420febf5bac714153ceaadd192ff9d09862bc7e17c203bf759aa18b2bb4",
      "nodefusion/_vendor/elftools/construct/lib/hex.py": "55f82dc36f273347c08e9e469fd497368241453b7a63e69e167ad6b316e5e2c7",
      "nodefusion/_vendor/elftools/construct/macros.py": "0244e84cf4f598ac8da7c3d8f1f09b06112a508e71fb8d381b377f1c0472a4e3",
      "nodefusion/_vendor/elftools/dwarf/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/_vendor/elftools/dwarf/abbrevtable.py": "d7d338a6eddd4c1fe02c66d9c2b1c202c36ebcfda28f438a0ac0546dc5a63eb1",
      "nodefusion/_vendor/elftools/dwarf/aranges.py": "399d17d0e3cc18527337d60c1ffc0cfcfc8d5ddcf86af1ef6c359453538344e3",
      "nodefusion/_vendor/elftools/dwarf/callframe.py": "6c77dd3c1b482434d8d86f35922f0c88b1a71c1c19055fa512224d44876a4b5a",
      "nodefusion/_vendor/elftools/dwarf/compileunit.py": "2681263026c2bdd3fd9033e60230024e6b25ca90280df91c3ae0b0fe97bdb9d3",
      "nodefusion/_vendor/elftools/dwarf/constants.py": "30377a1636c5ac41b7a09f7c79c6bae67b49696c4e9b9d904a1a0acaba7dabdb",
      "nodefusion/_vendor/elftools/dwarf/datatype_cpp.py": "b3df1fc9ef56f941e0b38a9ad5da05a3c3821dd1cdc4b440c7c1934bee00a770",
      "nodefusion/_vendor/elftools/dwarf/descriptions.py": "6692ed493344018f4d96fdb70e9b04bdb3ec1428df0448f17fc8ffab2a205851",
      "nodefusion/_vendor/elftools/dwarf/die.py": "b653e8091a49f6926a955d8c05f26c36798ece3d902c00d2b5da10af637bfce7",
      "nodefusion/_vendor/elftools/dwarf/dwarf_expr.py": "db6d4cb9f3f1ee7e85ac1f9286831093d1b65f8c472fe0f9331a7aa164782bcb",
      "nodefusion/_vendor/elftools/dwarf/dwarf_util.py": "2e1cc3030a3cc669e0832e3cb5d4b1e3c82e22ff5a1164e6a878931f8531ce0d",
      "nodefusion/_vendor/elftools/dwarf/dwarfinfo.py": "3cfff046c35f7b063ba4288f1d9bb5167be4f3fdda0af756a299d832d660b75f",
      "nodefusion/_vendor/elftools/dwarf/enums.py": "10d18e4acabc383b8e8527cf4c011874dc9459c3bc30bd65b9212885a146bd7a",
      "nodefusion/_vendor/elftools/dwarf/lineprogram.py": "d9472d85b8c62fe56a7d6371d8cdb8af6268416970bdf909898ccb2606fa850c",
      "nodefusion/_vendor/elftools/dwarf/locationlists.py": "5167c3fb6208e3bafe0a52fc4d48eb164dc84dbd4980643acec19be26639a194",
      "nodefusion/_vendor/elftools/dwarf/namelut.py": "4b62eb965afd3e099835eb8bb9112f2d1ec89cb42adc6b55c1f113b6068d17b3",
      "nodefusion/_vendor/elftools/dwarf/ranges.py": "da3856ee646cf5b305751fa73a2d5fd9b0a21413377ca11cf93ce20e7040386e",
      "nodefusion/_vendor/elftools/dwarf/structs.py": "dfb1d6d755bcc7cf9a0363620e470c5b4a74bf7499a32d82f261652ffe71bef8",
      "nodefusion/_vendor/elftools/dwarf/typeunit.py": "c1bae01e11001941ebd0a10b72d569b4a0800600b3006b20a0b37f88536d1bc9",
      "nodefusion/_vendor/elftools/ehabi/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/_vendor/elftools/ehabi/constants.py": "a386df95ebe53338db1cdfe498a06acf8e976007b5fab5c4eed2b8904932caa8",
      "nodefusion/_vendor/elftools/ehabi/decoder.py": "3380c750ed972e33510a42a1d4de725f744cfc156e44a5d50ae199239cacb10e",
      "nodefusion/_vendor/elftools/ehabi/ehabiinfo.py": "e442ea16826888c9903893db8ccd9cb47f9f634476c1837812c84b6ce4be1b4c",
      "nodefusion/_vendor/elftools/ehabi/structs.py": "5ebdda74af71d7637d41eb0510403d8776d3b7ea70f715edc58aabc836aaae87",
      "nodefusion/_vendor/elftools/elf/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/_vendor/elftools/elf/constants.py": "d805c36820815a58fce8593206a5527c46009756b9397298d086679b6a9d9f23",
      "nodefusion/_vendor/elftools/elf/descriptions.py": "02771b6d1d4eb829b7334e417f580f78eb253c14f895c427c99b870537d363ef",
      "nodefusion/_vendor/elftools/elf/dynamic.py": "13c2621f118f30c6a8b6a0d999bdf8a7d082f0c2b7713eb4203d7b877082f0f7",
      "nodefusion/_vendor/elftools/elf/elffile.py": "0b8629b86828f0f05dea1200261ffaf1849ae675e52943e88a37e6a5e0b73d51",
      "nodefusion/_vendor/elftools/elf/enums.py": "9beb3eb13c4dfe6e2e75ed5db7a75dbb6da7917ed7ea7ad9c2ab7b697c284256",
      "nodefusion/_vendor/elftools/elf/gnuversions.py": "d22136e3242cf4ff379154b5c830706f3be1d77ee41ffab7efeed57e4876c740",
      "nodefusion/_vendor/elftools/elf/hash.py": "538c9b253f89a4b200eeb9c7d82f9cd0c3ae08146b3295538363ba5fced3627a",
      "nodefusion/_vendor/elftools/elf/notes.py": "17cf2c2a9ec9a0bf8f3415cbaeca42d3ab8f1102556251b290a2814e86f16f63",
      "nodefusion/_vendor/elftools/elf/relocation.py": "b0fd391fe0e293ac7dc5bdad495a8d2e72454442c35291781952fa5016f77b0f",
      "nodefusion/_vendor/elftools/elf/sections.py": "5acbfe427062f3f80cad1d556c4113d60136cbe526636e621a6e820ade5d6ab5",
      "nodefusion/_vendor/elftools/elf/segments.py": "103f945c2c7d67eff713609ea189601e94c0e7122274110c6b20d038a5b8bf74",
      "nodefusion/_vendor/elftools/elf/structs.py": "a0f439925915d7f1a69938673da2cebefd0d10860d60caddc81370ce017d8623",
      "nodefusion/host/__init__.py": "eb4e72c7ca2b3242527b39bd840ced588631e97404cea0e72e3131406cdeec59",
      "nodefusion/host/__main__.py": "13a1a5b340cdcfc1902b62be90e508c7c71886000d5bf087e7854aadf09fb35e",
      "nodefusion/host/analyze.py": "310d26f5c89334c05ee697bb5709a8e8bbce140bcb67f2d3450a09232a3d38b7",
      "nodefusion/host/assets/app.css": "4a6f97f6046f1658f683e28107b5e524cf64507c57e7ad76035a7e8d745740eb",
      "nodefusion/host/assets/app.js": "c253b16d88ddc73d1c78ec3729800800ad255b923712893dbe12f66faab2aca2",
      "nodefusion/host/bundle.py": "cec890de70422513db45c7a592e758c9dba368a638fc2b337d0e3156a607f8e0",
      "nodefusion/host/callstack.py": "7a1ce5d70940e2c98792f57543e3df2cbc7b9f96ec5d8c7b280ccf17c78f9bde",
      "nodefusion/host/cdp.py": "983be57750320be8265405b3fa4c3490288a34bba5b2f0c32820d51895210264",
      "nodefusion/host/cli.py": "6a2f09d5d4ea15299e3f9cbc0f7a2312a322e9c43beb3837d61b2276787af9dd",
      "nodefusion/host/dwarf.py": "158545b640bd312050c9cef773a19f0de839229cb08925a0298a5bb2751b5993",
      "nodefusion/host/elfid.py": "43c44bed9a69fa2b92fc7520342843e71caf0c6a3849d2b23b54e9a22dfdcfa0",
      "nodefusion/host/guest.py": "6871f08f11b9eda17b8a0618e8b8f43a544ddf05a37d7b530daa18d30d4c455a",
      "nodefusion/host/kernels.py": "10dcd1d97aae33b5b389d4106bdf5867468df41a39ce769300448f6d1727b103",
      "nodefusion/host/layout.py": "2f74bd4970af88fa38519c850fbcc494b8a1e4f5ddf7ed87897a442175f0ab82",
      "nodefusion/host/nfelf.py": "5495b1bc5e3406268ba66054e831dfb3fc8857c47b881d95cd995bafa65c5315",
      "nodefusion/host/nftrace.py": "d4fa97efd6527535ab90e4c623e8211bf8b9bf7d189beee47b56b216718c2f76",
      "nodefusion/host/procview.py": "ae1874f57bafa6b694c50aa3c0185671e60fcf0f784d139ee5e807e2f98e9689",
      "nodefusion/host/record.py": "ed6668c5711bcddff0e30a4b82eaf9235e6700746ce186042e39e45219b55428",
      "nodefusion/host/render.py": "46d000d2f40eb934180fba10ec8d8ccb8cc5d1e53e558304fdba941bfcff7dd8",
      "nodefusion/host/resources.py": "019a7be1fc7d86f221f2a67c3a5f7df271d1901500371a02a2113518483fb702",
      "nodefusion/host/shell.py": "08a9b0318ab79c0642d9a0b29683dc65b86c4e529f547530baf4e60b1e67f0af",
      "nodefusion/host/video.py": "1f49810a036f9388ae10153b8691504ed79c3e8b0e19a6bc2818de2ef1fe699d",
      "nodefusion/host/watchlist.py": "1b820dd5d741a118b28959b44d95b886e5fe7518dd5beef3e5561e3cf39822d1",
      "nodefusion/host/wslenv.py": "6b8f5d9e3f71b292e51c980f921dd498315c510d952ef90b24dfbf775b3afa6c",
      "nodefusion/manifests/alien.toml": "da290fe1014168a7e8f44844f30430c3041a14550449c5d51fa06847f23f7aeb",
      "nodefusion/manifests/arceos.toml": "cad48257d081aa1c660d3e7af2f4fbec79bbe232322c71453a9a5b1c9ac7be44",
      "nodefusion/manifests/axvisor.toml": "d6cd2cc9d9662f74a5d25f29e8d02591ae5a205fe18166307ef430edbc7432b3",
      "nodefusion/manifests/rcore.toml": "4a6c4746a885ce7ed68a374516188f02d5955028c94ecfa7e73c5ddf08b73e75",
      "nodefusion/manifests/rel4.toml": "ca43c2847a9ca757542ef3ed3e276dc7130c92b25150c73deb3e2a20faf8c37e",
      "nodefusion/manifests/starry.toml": "8a3ce9735d4c948322962b8c532be334034ad608aac28a041bb58876012dcae8",
      "nodefusion/manifests/ucore.toml": "7ca738a5abfb1c21afdb75b44c2fc0ce81b19d3d2db9aa3d820850b8abf74327",
      "nodefusion/manifests/xv6.toml": "0f501a4441214a2de3b1b50d39665ee23faad6f93024b3b92d30f542bc9b7964",
      "nodefusion/model/__init__.py": "9864ab2acb9890ed2fcbf815f30042fd97e3bd5ce069531f8c76fa2eed60b9d0",
      "nodefusion/model/ctxbuild.py": "552c0d3d87d640e73bfb4c3fc237453c7b84298c721f2d37594c85d1ab5eb86d",
      "nodefusion/model/dwarfsrc.py": "02688f5f8419ba6c8fd64ea4f347929f74c8b70299b632223c5535bab298f265",
      "nodefusion/model/exec.py": "148e68fa1c7054716e4fcb3e7bddb7c0d384ab6a6bfcb00bd15f7a869f6d86ec",
      "nodefusion/model/kinds.py": "0432ef9f134654bc36554ec55afcb9f91c593110cdacf0a58d0ac4d1d05ac569",
      "nodefusion/model/layout.py": "cd2639282b0c4fac684d06309e11e95922213d3d32698f275e65dd060f677fd6",
      "nodefusion/model/manifest.py": "d592aaac9ae308760cda947327c0d7c0e964a26d517740ed66838747e2334a22",
      "nodefusion/model/plan.py": "374fbb225a6717c2c391ac8bdda54aa957638821a45b2865b40a7be9bcc808c6",
      "nodefusion/model/probe.py": "30546d56bbd47ef12567826b49dd910de07e2af8fffc5c4350e04a57f70da5b8",
      "nodefusion/model/readers/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/model/readers/containers.py": "6eec01bd4f30858e1eda2ee7de890a9d93f94eda25e02d0a1bdf3558d31a1610",
      "nodefusion/model/readers/pointers.py": "72f989d643df6bdd477494023aac2da851f2d1f123d5e1e64b7629a0be6eae6b",
      "nodefusion/model/readers/registry.py": "2c35cc0b1f8db857e67c08e9c7976bf47c6ab21faabb4e242d8a0be42f9634ee",
      "nodefusion/model/readers/scalars.py": "a145fe5c4a250cc11fe44d0a4caabae908fbc44994335663955230296f695cbc",
      "nodefusion/model/resolve.py": "0c588760d0ec6494617007b02d786285ba190593935f574f6c53b99ad62ac8c0",
      "nodefusion/model/roles.py": "8d35b0497bd0b2d9abf639d9803fc6b7bd1e1ee5153c0f47ff53a26356dcc8c5",
      "nodefusion/model/rt.py": "3d62e9c6169e89a2593b29ff49919e84a2dda1df1b6fc16d3e54c7cc5d1744af",
      "nodefusion/model/snapshot.py": "e9c4ce76b858a9003e43d9eec363e1b88d4024338c3401b7a47a9871fe5dab7a",
      "nodefusion/model/symbols.py": "39f23be73d754e52221a4889c0101d50d8d8962ec21f1628d1cc36f07acdecb8",
      "nodefusion/model/watchsel.py": "bc3a9d6763950c265efaacce3f0c98194f54808d676b449c5b320b3a90cc7bf1",
      "nodefusion/tests/conftest.py": "2dfa19b096e309beadff0df9a05761d412ec6234e74968854292d7bfecf1b7a5",
      "nodefusion/tests/crosscheck_artifacts.py": "6ee173a31795c3875f93af0a0eaebcb27346c185c24e3f1d32846f5ca89d60a0",
      "nodefusion/tests/fuzz_trace.py": "af6189a6538747d369f982dfb86016f5e48842da0ce73f651b63c0b482b1c37e",
      "nodefusion/tests/kernelelf.py": "9a35d1389243849c6ed16f801a007568eb1304eee3d2cf3bcb8d1e38e12e2aed",
      "nodefusion/tests/stress_pagetable.py": "5db6d3671739ad5d0a3f76908049126185ea000726d0044d4d87ef215f26f737",
      "nodefusion/tests/test_absent_declaration.py": "535d4ace194fc5f923ba989e18634b55cffd0660eaefdfc7a59dcb4377eac266",
      "nodefusion/tests/test_analysis_lookup_cache.py": "aa4fbc0b8f06c64278bc5b11edf21cfe3ec737e3f0d88901b52478aca29765f3",
      "nodefusion/tests/test_analyze_alias.py": "345f6cbd8fae2a7c7729130460112a08a23599461234865f2da72055c3621064",
      "nodefusion/tests/test_arg_names.py": "a0f4cd7c7017da1926fc317d6c73bcb6bd4bacde579e3818fa277079991a4af4",
      "nodefusion/tests/test_artifact_guard.py": "8b53fababf688ceaf4afd1556d3c1352d3a13c60ea43fe14e3d3eae24698d1d0",
      "nodefusion/tests/test_artifact_output_safety.py": "cbed1bfa5928e7b12edc85b506f8018dd3216f017c43461525daf0a299bea9aa",
      "nodefusion/tests/test_bundle_shape.py": "55f2f20855a890967caba83581ca1dda43fa6606a5af6ab1ee7b07b074e7c82b",
      "nodefusion/tests/test_cache_hit_contract.py": "087277fe75bf38d8e83453b3671da4825f7586382fc1fa5300b3dc79272fbee7",
      "nodefusion/tests/test_calibration_failure_reason.py": "02449f59da919dc09781a66ad57789a98775b3888d1480f4f3064b4d8a1139da",
      "nodefusion/tests/test_callstack.py": "78bc55f0ccf1a6dde2836aaa256ca0ce9fc0f9b4c6dcc4b144732460144d901e",
      "nodefusion/tests/test_capability_notes.py": "a2fb61afdc826c0c5408ea3b385761f896b27191e54881c3e10b10a2f01cc272",
      "nodefusion/tests/test_compact_capability_ui.py": "07542f2beb95353f3dd3861ca3ffcec93d1f46c966c3dd74c82d27fc3b6427ad",
      "nodefusion/tests/test_consolidate_artifacts.py": "5ffa4d01f5adb051f2153c3097d2264dfa7c63533f4cf6c09159fc50cd843cdd",
      "nodefusion/tests/test_context_switch_snapshot.py": "db5c77b5ab4ad93d34a96266386dbeec80694db7482bfa5856c1547f773ccb9d",
      "nodefusion/tests/test_corpus_selection.py": "1717ce9682ecde7a05675b790914a8e5a590e1d83556944ddbfff1e38918d050",
      "nodefusion/tests/test_coverage_evidence.py": "fdbb041e7339f8d94a52a1833b01e315657a749e9bc7d21fee6a2724f23a86f3",
      "nodefusion/tests/test_demangle_v0.py": "9f91c7ab6d2f681368c63d2bde9109cb4dd501f4d5df3e1f728a7b8975a0b061",
      "nodefusion/tests/test_dwarf_generic_base.py": "f9204c883a298151406288885c32c04fd1e7db423fe6cb0747f0f4392ba0fef5",
      "nodefusion/tests/test_dwarf_tombstones.py": "ed608be359e8180a5355cafe93e64d417543cc014461710f55fcd5997bef7295",
      "nodefusion/tests/test_dwarfsrc_location.py": "bcd7c6e8cf00a086fd9c712ffa35aebfbb4e09aaf20ddaedc4f2f5b41604cad9",
      "nodefusion/tests/test_elf_archive.py": "573747576adf2bf4daf66d5f99b6a149eff663ebcd6743b79b4b39d57d20dda5",
      "nodefusion/tests/test_elfid.py": "3efd46b3688e79f7ccc376abb32f20b495b7c074dbd84c5181d67fade3db729c",
      "nodefusion/tests/test_event_kind_pairs_measured_from_runs.py": "ef1a4ce55dc22b8f1073f3d4ac9120b30c68cf0877ba6e4dc5788f81217cdf55",
      "nodefusion/tests/test_event_kind_registry.py": "276bb984ee002622d0284558df13234328a3779853c5b1681d71d827069bfd9d",
      "nodefusion/tests/test_event_kinds.py": "67eee9315e36a7484d1141590701ad8e4e23c4be212b1ac9c0c4949983beef52",
      "nodefusion/tests/test_event_snapshot_throttle.py": "2709d806da483ef8bcdb57ddb6c59a73da83a859b793d7cd5d15891ccfcedd87",
      "nodefusion/tests/test_event_when_branches.py": "0b866c908cbc40deca18830293d161eb9b1f3401792d3fed1b1041e7e9b5e2de",
      "nodefusion/tests/test_exec_iter_map.py": "026e1e908df1884c4d241902c845dd72a43c095e5ab28e94fb7069f621698562",
      "nodefusion/tests/test_exec_walk.py": "67fc662f5b36cff81c1c1ab6a1dfe842081a05a1c3f69a64e8d212da0b7cb985",
      "nodefusion/tests/test_func_events_scope.py": "de9f69b6673c312537ce72cfd6c91baa4355749558609ca0b696c21d8f790198",
      "nodefusion/tests/test_kernel_elf_fixture.py": "ada3976b4b49734884bdb9b3844886e92251240671fe8ae219ed1f70c32c935b",
      "nodefusion/tests/test_kernel_image_fit.py": "32c7bd1bf3b66c7071b36582ca32838af2777157f1ae999a46785e6a39675476",
      "nodefusion/tests/test_kernel_integrations.py": "8e3ecdcf6ad5ea3b7fa44a3e3244a2c9678255b62c02d8cd48de9cfc1189b376",
      "nodefusion/tests/test_kernel_view.py": "4cc544296573cab8df9858947e6d7040fb22aba4b29aac1b43a565b39d9e7ab5",
      "nodefusion/tests/test_kind_three_states.py": "64764f687af895b3b37bc69179f2729f49efe2fb5fc5a24ecc09c41ea38e70ed",
      "nodefusion/tests/test_layout_routing.py": "14631aae85b75dcb1c1c5cec92c344f1c01433e2ae6eb90a3c105ac583372a5c",
      "nodefusion/tests/test_list_arceos.py": "22dbff8051cf7076ad5be6f919ed6d9a0c7a70bd1b6e09ca2f6589b5fb94493f",
      "nodefusion/tests/test_list_wiring.py": "e5f187b746738a5ca027936468df8ab7d2e48e32fe550eca3fa57f217c60d5cb",
      "nodefusion/tests/test_manifest_docs.py": "9be0200ca41d0f0512519356c81911cbbaf2aca63530d99e2aba53de9a1eea37",
      "nodefusion/tests/test_manifest_lint.py": "ad03a1e3519feb79fbeacdbe6576f90b05e7c6c9cb3034c44bd1032163b69888",
      "nodefusion/tests/test_manifest_roles.py": "b1a8fca196f9b37b614f3cd39abe33ad64c58894d1c933996d553c8f573d147e",
      "nodefusion/tests/test_manifest_vocabulary.py": "834eb61d446df47b1c6ebcd4e8a7347eabc24486da052b4be8f5b0660b0f631d",
      "nodefusion/tests/test_metric_deps_are_kinds_not_xv6_names.py": "07f411bb3fcbb14c2eb6c222f4a4928426a86a45d82f11cb242130c49eb6c717",
      "nodefusion/tests/test_no_build.py": "4bc6168bfe29297a6cb93ec91824dcbb9764c9ae8551f3d71446cd97e619d4ad",
      "nodefusion/tests/test_pagetable_arch.py": "9946ed7788d72107d6c6ea81fa4204843e1a0ae291add95259f3e96a0f661eb2",
      "nodefusion/tests/test_path_index_gate.py": "8486e4f1d0d8f91800321a7907ae6797a59d6576cae0614c8db6f91c8ecee9ae",
      "nodefusion/tests/test_percpu_layout.py": "4ecfcf97552e678173bca5fe81eb661bc7f417ba2f4ea4de3c540ba956152495",
      "nodefusion/tests/test_percpu_runtime_layout.py": "ba54784385c6a6716eb3f3317635c8b2dd09b40e5e3e5e6112ca5b92d4e7c62c",
      "nodefusion/tests/test_phys_alloc_gate.py": "a1b68458d8268d052082ad92b80f86753c46423eec7c86c3bdd6019e23b8186a",
      "nodefusion/tests/test_plan_iter_map.py": "58fcacc67e31cf6638ce4d846dccf32312ae17caed1d9470d0ba468fd95a4b5a",
      "nodefusion/tests/test_plan_percpu.py": "5ece34163ede167484cc5edd5d3255d8514935af7a385b171b1b64c6e928140e",
      "nodefusion/tests/test_plan_steps.py": "0241755b6c85983779fad700e2eba5332ab595cc64e6297e8358ba4d15f9dfb7",
      "nodefusion/tests/test_procs_gate.py": "8acd3d3e2398fcd008dd4f5bae735183008eb4cecf6f4c09d0fffaefdf50cd8d",
      "nodefusion/tests/test_procview.py": "9f48157ccc96833a83a42f2f3c3eb26a82bd7f6918c0c3c91a6052c5d9657428",
      "nodefusion/tests/test_profile_from_manifest.py": "9f7cf3aa6cb931445e9e6c763bf2c30b1505e4b728f759514033994b5b60b16c",
      "nodefusion/tests/test_rcore_fs_vocabulary.py": "48c49c9f091d4c964715cf55216b8354ea59697a0ef58ec18850f5e8e89f80c5",
      "nodefusion/tests/test_rcore_inlined_halves.py": "fd61e489c857fcaa5cdbe2466e74b1ba6a547eb7b18fd12fbda80ce927c6f516",
      "nodefusion/tests/test_readers_containers.py": "b0f882dd388f9bc3796b8f5d8c29d72c7dd6b5d8b7866055f810a7bbb2295d2f",
      "nodefusion/tests/test_readers_pointers.py": "e15d27e41ca320d960720f6760ffd0ff6216f658c74ab373148dc3307fa24fd8",
      "nodefusion/tests/test_readers_registry.py": "b139bcca13c15f203e73a427d9d6dc5804b97fc76a28d14025325f191cc4a6a5",
      "nodefusion/tests/test_readers_scalars.py": "3a15bf0648767fb8e7d24044aeb61eb312ace64ab51f834e0a2dfe39072b9cd5",
      "nodefusion/tests/test_record_icount.py": "f76528d2c5a7fc18938d0afc88b5ee9e9626d63801bccc6ced57c1e4b2c823a0",
      "nodefusion/tests/test_recording_tail.py": "833b8e33c6d111b49790beea1ba7ab81b23bd7ea907a2155f981967bcb61a614",
      "nodefusion/tests/test_regenerate_artifact.py": "0098a8fc52b7cd42889036de78ca54cec00064396d701eadd224b3febd3c043b",
      "nodefusion/tests/test_resolve.py": "b14f432eb380c5514b73431978b01b0d715ed9a49f92deb547358fb35dd4d8ec",
      "nodefusion/tests/test_resources.py": "0860476f362a770bd04355592a83fdb15aa9df3787c6c740d407cb8ee4fc817e",
      "nodefusion/tests/test_sampled_counts_are_not_exact.py": "7bd598eb07ef0b067cee3460ef0c61d18b8b918ae697d80b01617cf73eaf0a9a",
      "nodefusion/tests/test_shell_verdict.py": "22baff1ad7cb43b5c5574b424812c40b194e30e3800921429659f7b31cbe20f4",
      "nodefusion/tests/test_snapshot.py": "a1e5383c15e3c3c18222f6e07991712b1f22dfebd3ec67178eb58e4710a921ea",
      "nodefusion/tests/test_source_combine.py": "506ebb5c6dda153e92b854887fb671cf4aa08d33fd8305b359139a1d38ee4349",
      "nodefusion/tests/test_spec_nftrace_registry.py": "c529a4ed1f86bee4951e4699b09d466d51a5bd0623accc49bff9abcfdf15e615",
      "nodefusion/tests/test_split_rawvec.py": "e80f55fc42e246f3f638979500c7c40548eb0f630c512a93b8eaa00df312eac4",
      "nodefusion/tests/test_switch_attribution.py": "c773376888e9dc2ce87ddbebc14ccb0649ea77da189319692e20aff16eddb73d",
      "nodefusion/tests/test_symbols_static_wrapper.py": "cf634a6545564e8949b9129cee0c5f01f3dcf60effd49883c3b908aa28af7f82",
      "nodefusion/tests/test_trace_complete.py": "ac33d1da9aba97c98c68502188522a253709e96cf3fbb8d3c94b85c661cea366",
      "nodefusion/tests/test_trace_streaming.py": "6c972f95a790afac5b9aa84320038bf0eab41b926126334db7290d095f2b1e10",
      "nodefusion/tests/test_units.py": "9bf99f5d3080ed458a97e736e30b84025eb99c1e43e693d9aa33f519896106b3",
      "nodefusion/tests/test_unobservable_does_not_speak_for_the_kernel.py": "448c03147a2306d8205762bdc9a9e0d9e8d5eb0e0c5199d17d80c2f076f87547",
      "nodefusion/tests/test_video_sections.py": "c84c17b471460ae45a25341a8f893768816f57a9eb94e9f9a90e7e20406c4a31",
      "nodefusion/tests/test_watchlist_wire.py": "1e01dd4fde92169c0ab1296dbd249865cddde4173ec8de3c71c39f61356f74c3",
      "nodefusion/tests/test_watchsel.py": "89c8bb635534d079e0502d1c118f32eaa806250d74195a9d99bb71d07aabcd2d",
      "nodefusion/tools/crosscheck_decoder.py": "2f69a3f636d910f93f24939bcd03b41d9b0a17184ce4a4b15250e00f65b47a28",
      "nodefusion/tools/crosscheck_dwarf.py": "b30ecfa371c6959b2522db6d9edabf7e0c7be238feef34ff9411d76a4b4fdf01",
      "nodefusion/tools/crosscheck_layout.py": "d77ebd7aaa1ace070392eca0051f1b34dbf65d08c355edf87101b7e449aa7106",
      "nodefusion/tools/crosscheck_offsetof.py": "732e30d19129e0a1f15e33a2c1f96d940abaa1a26829b8f0d7bc44bf873cdc87",
      "nodefusion/tools/crosscheck_procinfo.py": "c3d6dd588b28d9252ddb712dea0ab8d3212dffed7f9256b9b936860fa0dfb8a9",
      "nodefusion/tools/crosscheck_procs.py": "b497c8fd050c0d6d1e4154eda00c1eef05502d3826546b1165b8a740c6fee562",
      "nodefusion/tools/crosscheck_resources.py": "98b04ac869e3c9e38020728473d480b8ed0b15385bc1d530e466919807ad1ac3",
      "nodefusion/tools/crosscheck_watchsel.py": "52142d49e919f2f040371b404cabdef0d0edbbf977abdcb1af5063b910d0aad8",
      "nodefusion/tools/survey_chapters.py": "6952dbdb8036916acd17bd5f642ea0b62aa10cbbec2bb4227e58f5132683589b",
      "scripts/benchmark_trace.py": "0faf86ba735bc31a20ee8e7ae3d3aad8aef78f0f43cdd33e831658f4e2a71494",
      "scripts/consolidate_artifacts.py": "31700c7f0a1f21fef653e061115b0091aa1a4ce539b9baa9cb48ad914889dadd",
      "scripts/finalize_artifacts.py": "a10224f43e0554eeb347a201dfd29781fbe0a39b979f890cccbec65e76cea9eb",
      "scripts/regenerate_artifact.py": "aed10d1eedc5689b6fd68e84a9bb8ae0c98f7bb8456fd8bd280e8bae470b8e9a"
    },
    "plugin_sha256": "f1d1d8e375ed789b57f0fa06285da182b90951324e09e3f0c3716a38353112f2",
    "source_archive": {
      "path": "/home/joseph/nf/education-2026A-20260927/ucore-2026A-ch6-basic-observed-source.tar.gz",
      "sha256": "47ab7ae2295cded7fb967a21755839a21944f99f50cec5dc6ec23af765c59d2b",
      "bytes": 1033735
    }
  },
  "workload": {
    "mode": "basic-tests",
    "course_check": {
      "course_verifier": "tools/run_lab.py::verify_positive",
      "verifier_sha256": "ee65ff4e4e69d7792619278ea7d2028efd11843f59c18d50fd67eaf49d6338db",
      "errors": null
    },
    "disk_programs": [
      {
        "name": "ch2b_exit",
        "inode": 2,
        "size": 6721,
        "type": 2,
        "nlink": null,
        "sha256": "4bb7a3be7a2fb8dd764fa8f6229ca17f9deb1bc2f825ef16039e2c1d6742ad2c",
        "data_block_ids": [
          17,
          18,
          19,
          20,
          21,
          22,
          23
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch2b_exit"
      },
      {
        "name": "ch2b_hello_wor",
        "inode": 3,
        "size": 6785,
        "type": 2,
        "nlink": null,
        "sha256": "f283d76194ecfdff6aae97d900aa517170a167434977e130b4c47d99c72c518e",
        "data_block_ids": [
          24,
          25,
          26,
          27,
          28,
          29,
          30
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch2b_hello_world"
      },
      {
        "name": "ch2b_power",
        "inode": 4,
        "size": 6905,
        "type": 2,
        "nlink": null,
        "sha256": "c49901abbc4d919649f64c11387b10ecfeaf931f3bc692b65009cd26eefb8b60",
        "data_block_ids": [
          31,
          32,
          33,
          34,
          35,
          36,
          37
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch2b_power"
      },
      {
        "name": "ch3b_sleep",
        "inode": 5,
        "size": 7001,
        "type": 2,
        "nlink": null,
        "sha256": "06c11256b2456a97fee2d14fee621d56cdbfecf9a3b3274b8e76b89d18c81b5e",
        "data_block_ids": [
          38,
          39,
          40,
          41,
          42,
          43,
          44
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_sleep"
      },
      {
        "name": "ch3b_sleep1",
        "inode": 6,
        "size": 6873,
        "type": 2,
        "nlink": null,
        "sha256": "9cb7b78b6e3a871e9d0dea30dfb28249eba92752a866df90524db58f89ef8d60",
        "data_block_ids": [
          45,
          46,
          47,
          48,
          49,
          50,
          51
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_sleep1"
      },
      {
        "name": "ch3b_yield0",
        "inode": 7,
        "size": 6841,
        "type": 2,
        "nlink": null,
        "sha256": "f00cf883e3b1542fe7fb26e258f46945c2506500c9ad37e8b609589247f5cc2d",
        "data_block_ids": [
          52,
          53,
          54,
          55,
          56,
          57,
          58
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_yield0"
      },
      {
        "name": "ch3b_yield1",
        "inode": 8,
        "size": 6841,
        "type": 2,
        "nlink": null,
        "sha256": "8a2e9948901e5e7f9f834242114820de5c2b160e63716a64c16217a6c4f07496",
        "data_block_ids": [
          59,
          60,
          61,
          62,
          63,
          64,
          65
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_yield1"
      },
      {
        "name": "ch3b_yield2",
        "inode": 9,
        "size": 6841,
        "type": 2,
        "nlink": null,
        "sha256": "4751f81ce9964235fe0c05c0bc27ff4a6a78225631139ae2d5e2433c0eae6773",
        "data_block_ids": [
          66,
          67,
          68,
          69,
          70,
          71,
          72
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_yield2"
      },
      {
        "name": "ch5b_exec_simp",
        "inode": 10,
        "size": 6769,
        "type": 2,
        "nlink": null,
        "sha256": "c7eb9413e279f64d1b675bef7050ed82bc92c49084ad8bd279931c6189347327",
        "data_block_ids": [
          73,
          74,
          75,
          76,
          77,
          78,
          79
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_exec_simple"
      },
      {
        "name": "ch5b_exit",
        "inode": 11,
        "size": 7105,
        "type": 2,
        "nlink": null,
        "sha256": "7aa3f31fe179ee79417a82dc9c08745e67a74bf17ca2f1c2c1b4fb7fdf36c6c2",
        "data_block_ids": [
          80,
          81,
          82,
          83,
          84,
          85,
          86
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_exit"
      },
      {
        "name": "ch5b_forktest0",
        "inode": 12,
        "size": 7417,
        "type": 2,
        "nlink": null,
        "sha256": "a3c216b34c2e4db83f3708fe93112dc8ec0883db132bc64d4e0030028f4fe320",
        "data_block_ids": [
          87,
          88,
          89,
          90,
          91,
          92,
          93,
          94
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_forktest0"
      },
      {
        "name": "ch5b_forktest1",
        "inode": 13,
        "size": 7153,
        "type": 2,
        "nlink": null,
        "sha256": "07df25de0f0be372386bceabaab30138adbde19c028a72c4538cd822ccf2ff9b",
        "data_block_ids": [
          95,
          96,
          97,
          98,
          99,
          100,
          101
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_forktest1"
      },
      {
        "name": "ch5b_forktest2",
        "inode": 14,
        "size": 7265,
        "type": 2,
        "nlink": null,
        "sha256": "db1c19e3d4bea3edd1c4ae46a40691e2c2c2984f1ac46c996a7fde1b4fab2e3a",
        "data_block_ids": [
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_forktest2"
      },
      {
        "name": "ch5b_getpid",
        "inode": 15,
        "size": 7041,
        "type": 2,
        "nlink": null,
        "sha256": "c16f287518665cad934c95a57b1e20a8744fac7b05f6ab8f87108400c533dacb",
        "data_block_ids": [
          110,
          111,
          112,
          113,
          114,
          115,
          116
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_getpid"
      },
      {
        "name": "ch5b_usertest",
        "inode": 16,
        "size": 7881,
        "type": 2,
        "nlink": null,
        "sha256": "1b563a61eb5902ae6b8f13e671a015d6b293b6010759017478b5f117e284e1bf",
        "data_block_ids": [
          117,
          118,
          119,
          120,
          121,
          122,
          123,
          124
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_usertest"
      },
      {
        "name": "ch6b_args",
        "inode": 17,
        "size": 6793,
        "type": 2,
        "nlink": null,
        "sha256": "b3cc3367ec71c47a312fd3ba28cb5bc26972cf30d9f33fb5b8d52d5c66675686",
        "data_block_ids": [
          125,
          126,
          127,
          128,
          129,
          130,
          131
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_args"
      },
      {
        "name": "ch6b_assert",
        "inode": 18,
        "size": 6881,
        "type": 2,
        "nlink": null,
        "sha256": "665a2d6632087de07a5dc6debb0f92dada9b42b5d3c4e3d1a142990888df5ac7",
        "data_block_ids": [
          132,
          133,
          134,
          135,
          136,
          137,
          138
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_assert"
      },
      {
        "name": "ch6b_cat",
        "inode": 19,
        "size": 6833,
        "type": 2,
        "nlink": null,
        "sha256": "2803811bed6fe04469bcb280b9bec19346f257455d1028f1e29cfd9180103493",
        "data_block_ids": [
          139,
          140,
          141,
          142,
          143,
          144,
          145
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_cat"
      },
      {
        "name": "ch6b_exec",
        "inode": 20,
        "size": 6881,
        "type": 2,
        "nlink": null,
        "sha256": "5494e1fc16edef77714e48087221fd1ffdd431aed7e24d5f8e2130f3e2315c2b",
        "data_block_ids": [
          146,
          147,
          148,
          149,
          150,
          151,
          152
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_exec"
      },
      {
        "name": "ch6b_filetest",
        "inode": 21,
        "size": 7089,
        "type": 2,
        "nlink": null,
        "sha256": "3e62b6bd5994d0559c677ea90172d54361e53c55622193bb66c7b910898d5b6e",
        "data_block_ids": [
          153,
          154,
          155,
          156,
          157,
          158,
          159
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_filetest"
      },
      {
        "name": "ch6b_filetest_",
        "inode": 22,
        "size": 7385,
        "type": 2,
        "nlink": null,
        "sha256": "d34d1ab5b63b1c536aa8be4a2feae5ae5afa0da3a936b8d06c5b7e51b2a2175c",
        "data_block_ids": [
          160,
          161,
          162,
          163,
          164,
          165,
          166,
          167
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_filetest_simple"
      },
      {
        "name": "ch6b_panic",
        "inode": 23,
        "size": 6897,
        "type": 2,
        "nlink": null,
        "sha256": "c6d03692c11432b5d937f93e7598da801d96f60266c2312e9009e04fdf230afa",
        "data_block_ids": [
          168,
          169,
          170,
          171,
          172,
          173,
          174
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_panic"
      },
      {
        "name": "ch6b_usertest",
        "inode": 24,
        "size": 7961,
        "type": 2,
        "nlink": null,
        "sha256": "f8a5af2225543009c4d2b1d7f22ac2e2fa25ef085dcb7cc656518fd667239ab1",
        "data_block_ids": [
          175,
          176,
          177,
          178,
          179,
          180,
          181,
          182
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_usertest"
      },
      {
        "name": "usershell",
        "inode": 25,
        "size": 8273,
        "type": 2,
        "nlink": null,
        "sha256": "58cbbce4d0ae1f505e448e2b1c94236f11fef668f95edec2a40b6142e8cb009a",
        "data_block_ids": [
          183,
          184,
          185,
          186,
          187,
          188,
          189,
          190,
          191
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/usershell"
      }
    ]
  },
  "filesystem_before": {
    "image": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/nfs/fs-copy.img",
    "sha256": "6deab196619184e63ab9963fa9eeecba8a1296b04ef3a76c2ded5d72ca905923",
    "bytes": 1024000,
    "block_size": 1024,
    "geometry": {
      "total_blocks": 1000,
      "data_blocks": 984,
      "inodes": 200,
      "inode_start": 2,
      "bitmap_start": 15
    },
    "root": {
      "size": 1024,
      "type": 1,
      "direct": [
        16,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "indirect": 0
    },
    "root_data_block_ids": [
      16
    ],
    "files": [
      {
        "name": "ch2b_exit",
        "inode": 2,
        "size": 6721,
        "type": 2,
        "nlink": null,
        "sha256": "4bb7a3be7a2fb8dd764fa8f6229ca17f9deb1bc2f825ef16039e2c1d6742ad2c",
        "data_block_ids": [
          17,
          18,
          19,
          20,
          21,
          22,
          23
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch2b_exit"
      },
      {
        "name": "ch2b_hello_wor",
        "inode": 3,
        "size": 6785,
        "type": 2,
        "nlink": null,
        "sha256": "f283d76194ecfdff6aae97d900aa517170a167434977e130b4c47d99c72c518e",
        "data_block_ids": [
          24,
          25,
          26,
          27,
          28,
          29,
          30
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch2b_hello_world"
      },
      {
        "name": "ch2b_power",
        "inode": 4,
        "size": 6905,
        "type": 2,
        "nlink": null,
        "sha256": "c49901abbc4d919649f64c11387b10ecfeaf931f3bc692b65009cd26eefb8b60",
        "data_block_ids": [
          31,
          32,
          33,
          34,
          35,
          36,
          37
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch2b_power"
      },
      {
        "name": "ch3b_sleep",
        "inode": 5,
        "size": 7001,
        "type": 2,
        "nlink": null,
        "sha256": "06c11256b2456a97fee2d14fee621d56cdbfecf9a3b3274b8e76b89d18c81b5e",
        "data_block_ids": [
          38,
          39,
          40,
          41,
          42,
          43,
          44
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_sleep"
      },
      {
        "name": "ch3b_sleep1",
        "inode": 6,
        "size": 6873,
        "type": 2,
        "nlink": null,
        "sha256": "9cb7b78b6e3a871e9d0dea30dfb28249eba92752a866df90524db58f89ef8d60",
        "data_block_ids": [
          45,
          46,
          47,
          48,
          49,
          50,
          51
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_sleep1"
      },
      {
        "name": "ch3b_yield0",
        "inode": 7,
        "size": 6841,
        "type": 2,
        "nlink": null,
        "sha256": "f00cf883e3b1542fe7fb26e258f46945c2506500c9ad37e8b609589247f5cc2d",
        "data_block_ids": [
          52,
          53,
          54,
          55,
          56,
          57,
          58
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_yield0"
      },
      {
        "name": "ch3b_yield1",
        "inode": 8,
        "size": 6841,
        "type": 2,
        "nlink": null,
        "sha256": "8a2e9948901e5e7f9f834242114820de5c2b160e63716a64c16217a6c4f07496",
        "data_block_ids": [
          59,
          60,
          61,
          62,
          63,
          64,
          65
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_yield1"
      },
      {
        "name": "ch3b_yield2",
        "inode": 9,
        "size": 6841,
        "type": 2,
        "nlink": null,
        "sha256": "4751f81ce9964235fe0c05c0bc27ff4a6a78225631139ae2d5e2433c0eae6773",
        "data_block_ids": [
          66,
          67,
          68,
          69,
          70,
          71,
          72
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_yield2"
      },
      {
        "name": "ch5b_exec_simp",
        "inode": 10,
        "size": 6769,
        "type": 2,
        "nlink": null,
        "sha256": "c7eb9413e279f64d1b675bef7050ed82bc92c49084ad8bd279931c6189347327",
        "data_block_ids": [
          73,
          74,
          75,
          76,
          77,
          78,
          79
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_exec_simple"
      },
      {
        "name": "ch5b_exit",
        "inode": 11,
        "size": 7105,
        "type": 2,
        "nlink": null,
        "sha256": "7aa3f31fe179ee79417a82dc9c08745e67a74bf17ca2f1c2c1b4fb7fdf36c6c2",
        "data_block_ids": [
          80,
          81,
          82,
          83,
          84,
          85,
          86
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_exit"
      },
      {
        "name": "ch5b_forktest0",
        "inode": 12,
        "size": 7417,
        "type": 2,
        "nlink": null,
        "sha256": "a3c216b34c2e4db83f3708fe93112dc8ec0883db132bc64d4e0030028f4fe320",
        "data_block_ids": [
          87,
          88,
          89,
          90,
          91,
          92,
          93,
          94
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_forktest0"
      },
      {
        "name": "ch5b_forktest1",
        "inode": 13,
        "size": 7153,
        "type": 2,
        "nlink": null,
        "sha256": "07df25de0f0be372386bceabaab30138adbde19c028a72c4538cd822ccf2ff9b",
        "data_block_ids": [
          95,
          96,
          97,
          98,
          99,
          100,
          101
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_forktest1"
      },
      {
        "name": "ch5b_forktest2",
        "inode": 14,
        "size": 7265,
        "type": 2,
        "nlink": null,
        "sha256": "db1c19e3d4bea3edd1c4ae46a40691e2c2c2984f1ac46c996a7fde1b4fab2e3a",
        "data_block_ids": [
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_forktest2"
      },
      {
        "name": "ch5b_getpid",
        "inode": 15,
        "size": 7041,
        "type": 2,
        "nlink": null,
        "sha256": "c16f287518665cad934c95a57b1e20a8744fac7b05f6ab8f87108400c533dacb",
        "data_block_ids": [
          110,
          111,
          112,
          113,
          114,
          115,
          116
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_getpid"
      },
      {
        "name": "ch5b_usertest",
        "inode": 16,
        "size": 7881,
        "type": 2,
        "nlink": null,
        "sha256": "1b563a61eb5902ae6b8f13e671a015d6b293b6010759017478b5f117e284e1bf",
        "data_block_ids": [
          117,
          118,
          119,
          120,
          121,
          122,
          123,
          124
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_usertest"
      },
      {
        "name": "ch6b_args",
        "inode": 17,
        "size": 6793,
        "type": 2,
        "nlink": null,
        "sha256": "b3cc3367ec71c47a312fd3ba28cb5bc26972cf30d9f33fb5b8d52d5c66675686",
        "data_block_ids": [
          125,
          126,
          127,
          128,
          129,
          130,
          131
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_args"
      },
      {
        "name": "ch6b_assert",
        "inode": 18,
        "size": 6881,
        "type": 2,
        "nlink": null,
        "sha256": "665a2d6632087de07a5dc6debb0f92dada9b42b5d3c4e3d1a142990888df5ac7",
        "data_block_ids": [
          132,
          133,
          134,
          135,
          136,
          137,
          138
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_assert"
      },
      {
        "name": "ch6b_cat",
        "inode": 19,
        "size": 6833,
        "type": 2,
        "nlink": null,
        "sha256": "2803811bed6fe04469bcb280b9bec19346f257455d1028f1e29cfd9180103493",
        "data_block_ids": [
          139,
          140,
          141,
          142,
          143,
          144,
          145
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_cat"
      },
      {
        "name": "ch6b_exec",
        "inode": 20,
        "size": 6881,
        "type": 2,
        "nlink": null,
        "sha256": "5494e1fc16edef77714e48087221fd1ffdd431aed7e24d5f8e2130f3e2315c2b",
        "data_block_ids": [
          146,
          147,
          148,
          149,
          150,
          151,
          152
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_exec"
      },
      {
        "name": "ch6b_filetest",
        "inode": 21,
        "size": 7089,
        "type": 2,
        "nlink": null,
        "sha256": "3e62b6bd5994d0559c677ea90172d54361e53c55622193bb66c7b910898d5b6e",
        "data_block_ids": [
          153,
          154,
          155,
          156,
          157,
          158,
          159
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_filetest"
      },
      {
        "name": "ch6b_filetest_",
        "inode": 22,
        "size": 7385,
        "type": 2,
        "nlink": null,
        "sha256": "d34d1ab5b63b1c536aa8be4a2feae5ae5afa0da3a936b8d06c5b7e51b2a2175c",
        "data_block_ids": [
          160,
          161,
          162,
          163,
          164,
          165,
          166,
          167
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_filetest_simple"
      },
      {
        "name": "ch6b_panic",
        "inode": 23,
        "size": 6897,
        "type": 2,
        "nlink": null,
        "sha256": "c6d03692c11432b5d937f93e7598da801d96f60266c2312e9009e04fdf230afa",
        "data_block_ids": [
          168,
          169,
          170,
          171,
          172,
          173,
          174
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_panic"
      },
      {
        "name": "ch6b_usertest",
        "inode": 24,
        "size": 7961,
        "type": 2,
        "nlink": null,
        "sha256": "f8a5af2225543009c4d2b1d7f22ac2e2fa25ef085dcb7cc656518fd667239ab1",
        "data_block_ids": [
          175,
          176,
          177,
          178,
          179,
          180,
          181,
          182
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_usertest"
      },
      {
        "name": "usershell",
        "inode": 25,
        "size": 8273,
        "type": 2,
        "nlink": null,
        "sha256": "58cbbce4d0ae1f505e448e2b1c94236f11fef668f95edec2a40b6142e8cb009a",
        "data_block_ids": [
          183,
          184,
          185,
          186,
          187,
          188,
          189,
          190,
          191
        ],
        "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/usershell"
      }
    ],
    "inspector_sha256": "87db5ee660fee887db44526a4a915e7deef035dba03528b451ccdff1bfd2f49c"
  },
  "filesystem_after": {
    "image": "/home/joseph/nf/education-2026A-20260927/runs/ucore-2026A-ch6-basic-observed/filesystem-after.img",
    "sha256": "f4e3656f0f52c8782a00ba231c710637b59a9fd6c20d7da821261c20f86fbe4a",
    "bytes": 1024000,
    "block_size": 1024,
    "geometry": {
      "total_blocks": 1000,
      "data_blocks": 984,
      "inodes": 200,
      "inode_start": 2,
      "bitmap_start": 15
    },
    "root": {
      "size": 1024,
      "type": 1,
      "direct": [
        16,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "indirect": 0
    },
    "root_data_block_ids": [
      16
    ],
    "files": [
      {
        "name": "ch2b_exit",
        "inode": 2,
        "size": 6721,
        "type": 2,
        "nlink": null,
        "sha256": "4bb7a3be7a2fb8dd764fa8f6229ca17f9deb1bc2f825ef16039e2c1d6742ad2c",
        "data_block_ids": [
          17,
          18,
          19,
          20,
          21,
          22,
          23
        ]
      },
      {
        "name": "ch2b_hello_wor",
        "inode": 3,
        "size": 6785,
        "type": 2,
        "nlink": null,
        "sha256": "f283d76194ecfdff6aae97d900aa517170a167434977e130b4c47d99c72c518e",
        "data_block_ids": [
          24,
          25,
          26,
          27,
          28,
          29,
          30
        ]
      },
      {
        "name": "ch2b_power",
        "inode": 4,
        "size": 6905,
        "type": 2,
        "nlink": null,
        "sha256": "c49901abbc4d919649f64c11387b10ecfeaf931f3bc692b65009cd26eefb8b60",
        "data_block_ids": [
          31,
          32,
          33,
          34,
          35,
          36,
          37
        ]
      },
      {
        "name": "ch3b_sleep",
        "inode": 5,
        "size": 7001,
        "type": 2,
        "nlink": null,
        "sha256": "06c11256b2456a97fee2d14fee621d56cdbfecf9a3b3274b8e76b89d18c81b5e",
        "data_block_ids": [
          38,
          39,
          40,
          41,
          42,
          43,
          44
        ]
      },
      {
        "name": "ch3b_sleep1",
        "inode": 6,
        "size": 6873,
        "type": 2,
        "nlink": null,
        "sha256": "9cb7b78b6e3a871e9d0dea30dfb28249eba92752a866df90524db58f89ef8d60",
        "data_block_ids": [
          45,
          46,
          47,
          48,
          49,
          50,
          51
        ]
      },
      {
        "name": "ch3b_yield0",
        "inode": 7,
        "size": 6841,
        "type": 2,
        "nlink": null,
        "sha256": "f00cf883e3b1542fe7fb26e258f46945c2506500c9ad37e8b609589247f5cc2d",
        "data_block_ids": [
          52,
          53,
          54,
          55,
          56,
          57,
          58
        ]
      },
      {
        "name": "ch3b_yield1",
        "inode": 8,
        "size": 6841,
        "type": 2,
        "nlink": null,
        "sha256": "8a2e9948901e5e7f9f834242114820de5c2b160e63716a64c16217a6c4f07496",
        "data_block_ids": [
          59,
          60,
          61,
          62,
          63,
          64,
          65
        ]
      },
      {
        "name": "ch3b_yield2",
        "inode": 9,
        "size": 6841,
        "type": 2,
        "nlink": null,
        "sha256": "4751f81ce9964235fe0c05c0bc27ff4a6a78225631139ae2d5e2433c0eae6773",
        "data_block_ids": [
          66,
          67,
          68,
          69,
          70,
          71,
          72
        ]
      },
      {
        "name": "ch5b_exec_simp",
        "inode": 10,
        "size": 6769,
        "type": 2,
        "nlink": null,
        "sha256": "c7eb9413e279f64d1b675bef7050ed82bc92c49084ad8bd279931c6189347327",
        "data_block_ids": [
          73,
          74,
          75,
          76,
          77,
          78,
          79
        ]
      },
      {
        "name": "ch5b_exit",
        "inode": 11,
        "size": 7105,
        "type": 2,
        "nlink": null,
        "sha256": "7aa3f31fe179ee79417a82dc9c08745e67a74bf17ca2f1c2c1b4fb7fdf36c6c2",
        "data_block_ids": [
          80,
          81,
          82,
          83,
          84,
          85,
          86
        ]
      },
      {
        "name": "ch5b_forktest0",
        "inode": 12,
        "size": 7417,
        "type": 2,
        "nlink": null,
        "sha256": "a3c216b34c2e4db83f3708fe93112dc8ec0883db132bc64d4e0030028f4fe320",
        "data_block_ids": [
          87,
          88,
          89,
          90,
          91,
          92,
          93,
          94
        ]
      },
      {
        "name": "ch5b_forktest1",
        "inode": 13,
        "size": 7153,
        "type": 2,
        "nlink": null,
        "sha256": "07df25de0f0be372386bceabaab30138adbde19c028a72c4538cd822ccf2ff9b",
        "data_block_ids": [
          95,
          96,
          97,
          98,
          99,
          100,
          101
        ]
      },
      {
        "name": "ch5b_forktest2",
        "inode": 14,
        "size": 7265,
        "type": 2,
        "nlink": null,
        "sha256": "db1c19e3d4bea3edd1c4ae46a40691e2c2c2984f1ac46c996a7fde1b4fab2e3a",
        "data_block_ids": [
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109
        ]
      },
      {
        "name": "ch5b_getpid",
        "inode": 15,
        "size": 7041,
        "type": 2,
        "nlink": null,
        "sha256": "c16f287518665cad934c95a57b1e20a8744fac7b05f6ab8f87108400c533dacb",
        "data_block_ids": [
          110,
          111,
          112,
          113,
          114,
          115,
          116
        ]
      },
      {
        "name": "ch5b_usertest",
        "inode": 16,
        "size": 7881,
        "type": 2,
        "nlink": null,
        "sha256": "1b563a61eb5902ae6b8f13e671a015d6b293b6010759017478b5f117e284e1bf",
        "data_block_ids": [
          117,
          118,
          119,
          120,
          121,
          122,
          123,
          124
        ]
      },
      {
        "name": "ch6b_args",
        "inode": 17,
        "size": 6793,
        "type": 2,
        "nlink": null,
        "sha256": "b3cc3367ec71c47a312fd3ba28cb5bc26972cf30d9f33fb5b8d52d5c66675686",
        "data_block_ids": [
          125,
          126,
          127,
          128,
          129,
          130,
          131
        ]
      },
      {
        "name": "ch6b_assert",
        "inode": 18,
        "size": 6881,
        "type": 2,
        "nlink": null,
        "sha256": "665a2d6632087de07a5dc6debb0f92dada9b42b5d3c4e3d1a142990888df5ac7",
        "data_block_ids": [
          132,
          133,
          134,
          135,
          136,
          137,
          138
        ]
      },
      {
        "name": "ch6b_cat",
        "inode": 19,
        "size": 6833,
        "type": 2,
        "nlink": null,
        "sha256": "2803811bed6fe04469bcb280b9bec19346f257455d1028f1e29cfd9180103493",
        "data_block_ids": [
          139,
          140,
          141,
          142,
          143,
          144,
          145
        ]
      },
      {
        "name": "ch6b_exec",
        "inode": 20,
        "size": 6881,
        "type": 2,
        "nlink": null,
        "sha256": "5494e1fc16edef77714e48087221fd1ffdd431aed7e24d5f8e2130f3e2315c2b",
        "data_block_ids": [
          146,
          147,
          148,
          149,
          150,
          151,
          152
        ]
      },
      {
        "name": "ch6b_filetest",
        "inode": 21,
        "size": 7089,
        "type": 2,
        "nlink": null,
        "sha256": "3e62b6bd5994d0559c677ea90172d54361e53c55622193bb66c7b910898d5b6e",
        "data_block_ids": [
          153,
          154,
          155,
          156,
          157,
          158,
          159
        ]
      },
      {
        "name": "ch6b_filetest_",
        "inode": 22,
        "size": 7385,
        "type": 2,
        "nlink": null,
        "sha256": "d34d1ab5b63b1c536aa8be4a2feae5ae5afa0da3a936b8d06c5b7e51b2a2175c",
        "data_block_ids": [
          160,
          161,
          162,
          163,
          164,
          165,
          166,
          167
        ]
      },
      {
        "name": "ch6b_panic",
        "inode": 23,
        "size": 6897,
        "type": 2,
        "nlink": null,
        "sha256": "c6d03692c11432b5d937f93e7598da801d96f60266c2312e9009e04fdf230afa",
        "data_block_ids": [
          168,
          169,
          170,
          171,
          172,
          173,
          174
        ]
      },
      {
        "name": "ch6b_usertest",
        "inode": 24,
        "size": 7961,
        "type": 2,
        "nlink": null,
        "sha256": "f8a5af2225543009c4d2b1d7f22ac2e2fa25ef085dcb7cc656518fd667239ab1",
        "data_block_ids": [
          175,
          176,
          177,
          178,
          179,
          180,
          181,
          182
        ]
      },
      {
        "name": "usershell",
        "inode": 25,
        "size": 8273,
        "type": 2,
        "nlink": null,
        "sha256": "58cbbce4d0ae1f505e448e2b1c94236f11fef668f95edec2a40b6142e8cb009a",
        "data_block_ids": [
          183,
          184,
          185,
          186,
          187,
          188,
          189,
          190,
          191
        ]
      },
      {
        "name": "filea",
        "inode": 26,
        "size": 14,
        "type": 2,
        "nlink": null,
        "sha256": "d9014c4624844aa5bac314773d6b689ad467fa4e1d1a50a1b8a99d5a95f72ff5",
        "data_block_ids": [
          192
        ]
      }
    ],
    "inspector_sha256": "87db5ee660fee887db44526a4a915e7deef035dba03528b451ccdff1bfd2f49c"
  },
  "versions": {
    "riscv64-unknown-elf-gcc": "riscv64-unknown-elf-gcc (Debian 14.2.0-19) 14.2.0",
    "cmake": "cmake version 3.31.6"
  },
  "build_context": {
    "status": "PASS",
    "kernel_commit": "df045c4455f2dacb81caf39510aed994bf49ade7",
    "user_commit": "1733f460c596b013b1c509ad42afa428640783b0",
    "reference_build": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-build-final.json",
    "reference_build_sha256": "5be98a750ab1653e1b0a6bddc35b09a169aabad330ea7bfa4b197b946001b56f",
    "reference_kernel_elf_sha256": "58d8fd24f65926d116c66e86157fde93d5af2d4e1a50554c106fa6586dd33bb0",
    "reference_filesystem_sha256": "6deab196619184e63ab9963fa9eeecba8a1296b04ef3a76c2ded5d72ca905923",
    "driver_sha256": "77ed6dc651ffc4a537ca234a4a4e2947a2f9cf4254112a9b4cf2947598fa323c",
    "path": "/home/joseph/nf/education-2026A-20260927/cmake-3.31.6-linux-x86_64/bin:/home/joseph/nf/qemu-10.2.2/bin:/home/joseph/.cargo/bin:/home/joseph/nf/education-2026A-20260927/tool-bin:/usr/local/bin:/usr/bin:/bin",
    "commands": [
      {
        "argv": [
          "git",
          "clone",
          "--no-hardlinks",
          "--no-checkout",
          "/home/joseph/nf/education-2026A-20260927/ucore-ch6",
          "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-clone.log",
        "returncode": 0,
        "log_sha256": "0d4cc141f496efac4983ac926175c5e23c230f52ef6f17cc9d7b6b11eb26584a"
      },
      {
        "argv": [
          "git",
          "checkout",
          "--detach",
          "df045c4455f2dacb81caf39510aed994bf49ade7"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-checkout.log",
        "returncode": 0,
        "log_sha256": "4306ed3d48cea7f8893a7d6dfa13c6a19cfee7839d66ce541a3118a5fb954bf8"
      },
      {
        "argv": [
          "git",
          "apply",
          "--check",
          "/home/joseph/nf/education-2026A-20260927/ucore-2026a-build.patch"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-ucore-2026a-build.patch-check.log",
        "returncode": 0,
        "log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      },
      {
        "argv": [
          "git",
          "apply",
          "/home/joseph/nf/education-2026A-20260927/ucore-2026a-build.patch"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-ucore-2026a-build.patch-apply.log",
        "returncode": 0,
        "log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      },
      {
        "argv": [
          "git",
          "apply",
          "--check",
          "/home/joseph/nf/education-2026A-20260927/ucore-2026a-ch6-observation.patch"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-ucore-2026a-ch6-observation.patch-check.log",
        "returncode": 0,
        "log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      },
      {
        "argv": [
          "git",
          "apply",
          "/home/joseph/nf/education-2026A-20260927/ucore-2026a-ch6-observation.patch"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-ucore-2026a-ch6-observation.patch-apply.log",
        "returncode": 0,
        "log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      },
      {
        "argv": [
          "git",
          "add",
          "-N",
          "os/nftrace.c",
          "os/nftrace.h"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-intent-to-add.log",
        "returncode": 0,
        "log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      },
      {
        "argv": [
          "git",
          "clone",
          "--no-hardlinks",
          "--no-checkout",
          "/home/joseph/nf/education-2026A-20260927/ucore-ch6/user",
          "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-user-clone.log",
        "returncode": 0,
        "log_sha256": "73ca79e6b0046ef20e0f20b1794dcaba3755a3264bbc2bfe3a6ae488b67d8874"
      },
      {
        "argv": [
          "git",
          "checkout",
          "--detach",
          "1733f460c596b013b1c509ad42afa428640783b0"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-user-checkout.log",
        "returncode": 0,
        "log_sha256": "42d28980aedcf25f311d804c4f0eed3a591918b18059eaea3b081ad31fb87bf0"
      },
      {
        "argv": [
          "git",
          "apply",
          "--check",
          "-"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-user-patch-check.log",
        "stdin_patch": "diff --git a/CMakeLists.txt b/CMakeLists.txt\nindex f5a9fac..ab1986d 100644\n--- a/CMakeLists.txt\n+++ b/CMakeLists.txt\n@@ -15,12 +15,12 @@ set(ASM_DIR asm)\n set(BIN_DIR bin)\n \n # Toolchain\n-set(PREFIX ${ARCH}-linux-musl-)\n+set(PREFIX ${ARCH}-linux-musl- CACHE STRING \"Cross compiler prefix\")\n \n if (${ARCH} STREQUAL riscv32)\n-    set(CMAKE_C_FLAGS       \"-march=rv32imac -mabi=ilp32 -mcmodel=medany\")\n+    set(CMAKE_C_FLAGS       \"-march=rv32imac_zicsr_zifencei -mabi=ilp32 -mcmodel=medany\")\n elseif (${ARCH} STREQUAL riscv64)\n-    set(CMAKE_C_FLAGS       \"-march=rv64imac -mabi=lp64 -mcmodel=medany\")\n+    set(CMAKE_C_FLAGS       \"-march=rv64imac_zicsr_zifencei -mabi=lp64 -mcmodel=medany\")\n else()\n     message(\"Unsupported arch: ${ARCH}\")\n endif ()\ndiff --git a/Makefile b/Makefile\nindex be632ac..64f1ab6 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -7,15 +7,16 @@ app_dir = src\n elf_dir := build/$(ARCH)\n bin_dir := build/bin\n out_dir := target\n-cmake_build_args := -DARCH=$(ARCH) -DCHAPTER=$(CHAPTER)\n+TOOLPREFIX ?= $(ARCH)-linux-musl-\n+cmake_build_args := -DARCH=$(ARCH) -DCHAPTER=$(CHAPTER) -DPREFIX=$(TOOLPREFIX)\n ifeq ($(MODE), release)\n cmake_build_args += -DCMAKE_BUILD_TYPE=Release\n else ifeq ($(MODE), debug)\n cmake_build_args += -DCMAKE_BUILD_TYPE=Debug\n endif\n \n-OBJCOPY := $(ARCH)-linux-musl-objcopy\n-OBJDUMP := $(ARCH)-linux-musl-objdump\n+OBJCOPY := $(TOOLPREFIX)objcopy\n+OBJDUMP := $(TOOLPREFIX)objdump\n CP := cp\n CH_TESTS :=  \n \ndiff --git a/src/ch6b_exec.c b/src/ch6b_exec.c\nindex 1a1d9c6..b67cf35 100644\n--- a/src/ch6b_exec.c\n+++ b/src/ch6b_exec.c\n@@ -5,7 +5,7 @@\n int main()\n {\n \tchar *_argv[] = {\n-\t\t\"(*o*)\", \"(>.<)\", \"(O.O)\", \"(QwQ)\", \"orz\", \"没有了呀\"\n+\t\t\"(*o*)\", \"(>.<)\", \"(O.O)\", \"(QwQ)\", \"orz\", \"没有了呀\", NULL\n \t};\n \texec(\"ch6b_args\", _argv);\n \treturn 0;\ndiff --git a/src/ch6b_filetest_simple.c b/src/ch6b_filetest_simple.c\nindex 062cecf..a27e982 100644\n--- a/src/ch6b_filetest_simple.c\n+++ b/src/ch6b_filetest_simple.c\n@@ -15,7 +15,9 @@ int main()\n \tfd = open(filea, O_RDONLY);\n \tassert(fd > 0);\n \tchar buf[16];\n-\tread(fd, buf, 16);\n+\tint nread = read(fd, buf, sizeof(buf) - 1);\n+\tassert_eq(nread, strlen(s));\n+\tbuf[nread] = '\\0';\n \tclose(fd);\n \tassert(strcmp(s, buf) == 0);\n \tputs(\"file_test passed!\");\ndiff --git a/src/ch6b_usertest.c b/src/ch6b_usertest.c\nindex cdd9fc8..1cb5f3a 100644\n--- a/src/ch6b_usertest.c\n+++ b/src/ch6b_usertest.c\n@@ -11,7 +11,7 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",      \"ch3b_yield0\\0\",\t  \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",      \"ch5b_getpid\\0\",\t  \"ch5b_forktest0\\0\",\n \t\"ch5b_forktest1\\0\",   \"ch5b_forktest2\\0\", \"ch5b_exit\\0\",\n-\t\"ch6b_filetest\\0\",    \"ch6b_exec\\0\",\n+\t\"ch6b_filetest_simple\\0\",    \"ch6b_exec\\0\",\n };\n \n int main()\ndiff --git a/src/ch7b_usertest.c b/src/ch7b_usertest.c\nindex 1f634d4..8bfc7c8 100644\n--- a/src/ch7b_usertest.c\n+++ b/src/ch7b_usertest.c\n@@ -10,7 +10,7 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",      \"ch3b_yield0\\0\",\t  \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",      \"ch5b_exit\\0\",\t  \"ch5b_getpid\\0\",\n \t\"ch5b_forktest0\\0\",   \"ch5b_forktest1\\0\", \"ch5b_forktest2\\0\",\n-\t\"ch5b_exit\\0\",\t      \"ch6b_filetest\\0\",  \"ch6b_exec\\0\",\n+\t\"ch5b_exit\\0\",\t      \"ch6b_filetest_simple\\0\",  \"ch6b_exec\\0\",\n \t\"ch7b_pipetest\\0\",\n };\n \ndiff --git a/src/ch8b_usertest.c b/src/ch8b_usertest.c\nindex 1cce5ce..f088c38 100644\n--- a/src/ch8b_usertest.c\n+++ b/src/ch8b_usertest.c\n@@ -10,9 +10,9 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",        \"ch3b_yield0\\0\",      \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",        \"ch5b_getpid\\0\",      \"ch5b_forktest0\\0\",\n \t\"ch5b_forktest1\\0\",     \"ch5b_forktest2\\0\",   \"ch5b_exit\\0\",\n-\t\"ch6b_filetest\\0\",      \"ch6b_exec\\0\",        \"ch7b_pipetest\\0\",\n+\t\"ch6b_filetest_simple\\0\",      \"ch6b_exec\\0\",        \"ch7b_pipetest\\0\",\n \t\"ch8b_mpsc_sem\\0\",\n-\t\"ch8b_mut_phi_din.c\",   \"ch8b_mut_race\\0\",    \"ch8b_sync_sem\\0\",\n+\t   \"ch8b_mut_race\\0\",    \"ch8b_sync_sem\\0\",\n \t\"ch8b_test_condvar\\0\",  \"ch8b_threads_arg\\0\", \"ch8b_threads\\0\",      \n \t\"ch8b_spin_mut_race\\0\", \"ch8b_mut_phi_din\\0\",\n };\n",
        "returncode": 0,
        "log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      },
      {
        "argv": [
          "git",
          "apply",
          "-"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-user-patch-apply.log",
        "stdin_patch": "diff --git a/CMakeLists.txt b/CMakeLists.txt\nindex f5a9fac..ab1986d 100644\n--- a/CMakeLists.txt\n+++ b/CMakeLists.txt\n@@ -15,12 +15,12 @@ set(ASM_DIR asm)\n set(BIN_DIR bin)\n \n # Toolchain\n-set(PREFIX ${ARCH}-linux-musl-)\n+set(PREFIX ${ARCH}-linux-musl- CACHE STRING \"Cross compiler prefix\")\n \n if (${ARCH} STREQUAL riscv32)\n-    set(CMAKE_C_FLAGS       \"-march=rv32imac -mabi=ilp32 -mcmodel=medany\")\n+    set(CMAKE_C_FLAGS       \"-march=rv32imac_zicsr_zifencei -mabi=ilp32 -mcmodel=medany\")\n elseif (${ARCH} STREQUAL riscv64)\n-    set(CMAKE_C_FLAGS       \"-march=rv64imac -mabi=lp64 -mcmodel=medany\")\n+    set(CMAKE_C_FLAGS       \"-march=rv64imac_zicsr_zifencei -mabi=lp64 -mcmodel=medany\")\n else()\n     message(\"Unsupported arch: ${ARCH}\")\n endif ()\ndiff --git a/Makefile b/Makefile\nindex be632ac..64f1ab6 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -7,15 +7,16 @@ app_dir = src\n elf_dir := build/$(ARCH)\n bin_dir := build/bin\n out_dir := target\n-cmake_build_args := -DARCH=$(ARCH) -DCHAPTER=$(CHAPTER)\n+TOOLPREFIX ?= $(ARCH)-linux-musl-\n+cmake_build_args := -DARCH=$(ARCH) -DCHAPTER=$(CHAPTER) -DPREFIX=$(TOOLPREFIX)\n ifeq ($(MODE), release)\n cmake_build_args += -DCMAKE_BUILD_TYPE=Release\n else ifeq ($(MODE), debug)\n cmake_build_args += -DCMAKE_BUILD_TYPE=Debug\n endif\n \n-OBJCOPY := $(ARCH)-linux-musl-objcopy\n-OBJDUMP := $(ARCH)-linux-musl-objdump\n+OBJCOPY := $(TOOLPREFIX)objcopy\n+OBJDUMP := $(TOOLPREFIX)objdump\n CP := cp\n CH_TESTS :=  \n \ndiff --git a/src/ch6b_exec.c b/src/ch6b_exec.c\nindex 1a1d9c6..b67cf35 100644\n--- a/src/ch6b_exec.c\n+++ b/src/ch6b_exec.c\n@@ -5,7 +5,7 @@\n int main()\n {\n \tchar *_argv[] = {\n-\t\t\"(*o*)\", \"(>.<)\", \"(O.O)\", \"(QwQ)\", \"orz\", \"没有了呀\"\n+\t\t\"(*o*)\", \"(>.<)\", \"(O.O)\", \"(QwQ)\", \"orz\", \"没有了呀\", NULL\n \t};\n \texec(\"ch6b_args\", _argv);\n \treturn 0;\ndiff --git a/src/ch6b_filetest_simple.c b/src/ch6b_filetest_simple.c\nindex 062cecf..a27e982 100644\n--- a/src/ch6b_filetest_simple.c\n+++ b/src/ch6b_filetest_simple.c\n@@ -15,7 +15,9 @@ int main()\n \tfd = open(filea, O_RDONLY);\n \tassert(fd > 0);\n \tchar buf[16];\n-\tread(fd, buf, 16);\n+\tint nread = read(fd, buf, sizeof(buf) - 1);\n+\tassert_eq(nread, strlen(s));\n+\tbuf[nread] = '\\0';\n \tclose(fd);\n \tassert(strcmp(s, buf) == 0);\n \tputs(\"file_test passed!\");\ndiff --git a/src/ch6b_usertest.c b/src/ch6b_usertest.c\nindex cdd9fc8..1cb5f3a 100644\n--- a/src/ch6b_usertest.c\n+++ b/src/ch6b_usertest.c\n@@ -11,7 +11,7 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",      \"ch3b_yield0\\0\",\t  \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",      \"ch5b_getpid\\0\",\t  \"ch5b_forktest0\\0\",\n \t\"ch5b_forktest1\\0\",   \"ch5b_forktest2\\0\", \"ch5b_exit\\0\",\n-\t\"ch6b_filetest\\0\",    \"ch6b_exec\\0\",\n+\t\"ch6b_filetest_simple\\0\",    \"ch6b_exec\\0\",\n };\n \n int main()\ndiff --git a/src/ch7b_usertest.c b/src/ch7b_usertest.c\nindex 1f634d4..8bfc7c8 100644\n--- a/src/ch7b_usertest.c\n+++ b/src/ch7b_usertest.c\n@@ -10,7 +10,7 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",      \"ch3b_yield0\\0\",\t  \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",      \"ch5b_exit\\0\",\t  \"ch5b_getpid\\0\",\n \t\"ch5b_forktest0\\0\",   \"ch5b_forktest1\\0\", \"ch5b_forktest2\\0\",\n-\t\"ch5b_exit\\0\",\t      \"ch6b_filetest\\0\",  \"ch6b_exec\\0\",\n+\t\"ch5b_exit\\0\",\t      \"ch6b_filetest_simple\\0\",  \"ch6b_exec\\0\",\n \t\"ch7b_pipetest\\0\",\n };\n \ndiff --git a/src/ch8b_usertest.c b/src/ch8b_usertest.c\nindex 1cce5ce..f088c38 100644\n--- a/src/ch8b_usertest.c\n+++ b/src/ch8b_usertest.c\n@@ -10,9 +10,9 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",        \"ch3b_yield0\\0\",      \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",        \"ch5b_getpid\\0\",      \"ch5b_forktest0\\0\",\n \t\"ch5b_forktest1\\0\",     \"ch5b_forktest2\\0\",   \"ch5b_exit\\0\",\n-\t\"ch6b_filetest\\0\",      \"ch6b_exec\\0\",        \"ch7b_pipetest\\0\",\n+\t\"ch6b_filetest_simple\\0\",      \"ch6b_exec\\0\",        \"ch7b_pipetest\\0\",\n \t\"ch8b_mpsc_sem\\0\",\n-\t\"ch8b_mut_phi_din.c\",   \"ch8b_mut_race\\0\",    \"ch8b_sync_sem\\0\",\n+\t   \"ch8b_mut_race\\0\",    \"ch8b_sync_sem\\0\",\n \t\"ch8b_test_condvar\\0\",  \"ch8b_threads_arg\\0\", \"ch8b_threads\\0\",      \n \t\"ch8b_spin_mut_race\\0\", \"ch8b_mut_phi_din\\0\",\n };\n",
        "returncode": 0,
        "log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      },
      {
        "argv": [
          "cp",
          "-a",
          "/home/joseph/nf/education-2026A-20260927/ucore-ch6/user/target",
          "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-copy-user-target.log",
        "returncode": 0,
        "log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      },
      {
        "argv": [
          "make",
          "build",
          "LOG=info",
          "CHAPTER=6",
          "INIT_PROC=ch6b_usertest"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-kernel-build.log",
        "returncode": 0,
        "log_sha256": "fbc6d56dca8acf12bb8c759cb63fda30258996627ba9d4281dcc5275f20b256e"
      },
      {
        "argv": [
          "cp",
          "/home/joseph/nf/education-2026A-20260927/ucore-ch6-original.img",
          "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/nfs/fs.img"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-copy-initial-image.log",
        "returncode": 0,
        "log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      },
      {
        "argv": [
          "cp",
          "/home/joseph/nf/education-2026A-20260927/ucore-ch6-original.img",
          "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/nfs/fs-copy.img"
        ],
        "cwd": "/home/joseph/nf/education-2026A-20260927",
        "environment": {},
        "log": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-copy-working-image.log",
        "returncode": 0,
        "log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      }
    ],
    "patches": [
      {
        "path": "/home/joseph/nf/education-2026A-20260927/ucore-2026a-build.patch",
        "sha256": "47950de22450332ea265b179a03ce9bc9b12a1bc83629941f3c27ec08d2ffd9e"
      },
      {
        "path": "/home/joseph/nf/education-2026A-20260927/ucore-2026a-ch6-observation.patch",
        "sha256": "46de4f83bf5c8815c455944a32febf39b9748998db18b839950d49a85b624660"
      }
    ],
    "kernel_elf": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/build/kernel",
    "kernel_elf_sha256": "93a37a4b856ad4051232bb431fa5ca00ff63cf2826b50dc80f79f84e3264e096",
    "kernel_patch": "diff --git a/Makefile b/Makefile\nindex c335803..cfe7d0c 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -16,7 +16,7 @@ GDB = $(TOOLPREFIX)gdb\n CP = cp\n BUILDDIR = build\n C_SRCS = $(wildcard $K/*.c)\n-AS_SRCS = $(wildcard $K/*.S)\n+AS_SRCS := $(wildcard $K/*.S)\n C_OBJS = $(addprefix $(BUILDDIR)/, $(addsuffix .o, $(basename $(C_SRCS))))\n AS_OBJS = $(addprefix $(BUILDDIR)/, $(addsuffix .o, $(basename $(AS_SRCS))))\n OBJS = $(C_OBJS) $(AS_OBJS)\ndiff --git a/os/kalloc.c b/os/kalloc.c\nindex 3c7c48b..5bea13e 100644\n--- a/os/kalloc.c\n+++ b/os/kalloc.c\n@@ -1,6 +1,7 @@\n #include \"kalloc.h\"\n #include \"defs.h\"\n #include \"riscv.h\"\n+#include \"nftrace.h\"\n \n extern char ekernel[];\n \n@@ -12,6 +13,10 @@ struct {\n \tstruct linklist *freelist;\n } kmem;\n \n+static uint64 nf_free_pages;\n+static uint64 nf_used_pages;\n+static int nftrace_ready;\n+\n void freerange(void *pa_start, void *pa_end)\n {\n \tchar *p;\n@@ -23,6 +28,8 @@ void freerange(void *pa_start, void *pa_end)\n void kinit()\n {\n \tfreerange(ekernel, (void *)PHYSTOP);\n+\tnftrace_ready = 1;\n+\tnftrace_allocator_state(nf_free_pages, nf_used_pages);\n }\n \n // Free the page of physical memory pointed at by v,\n@@ -40,6 +47,11 @@ void kfree(void *pa)\n \tl = (struct linklist *)pa;\n \tl->next = kmem.freelist;\n \tkmem.freelist = l;\n+\tnf_free_pages++;\n+\tif (nftrace_ready) {\n+\t\tnf_used_pages--;\n+\t\tnftrace_page_free((uint64)pa, nf_free_pages, nf_used_pages);\n+\t}\n }\n \n // Allocate one 4096-byte page of physical memory.\n@@ -51,7 +63,11 @@ void *kalloc()\n \tl = kmem.freelist;\n \tif (l) {\n \t\tkmem.freelist = l->next;\n+\t\tnf_free_pages--;\n+\t\tnf_used_pages++;\n \t\tmemset((char *)l, 5, PGSIZE); // fill with junk\n \t}\n+\tif (nftrace_ready)\n+\t\tnftrace_page_alloc((uint64)l, nf_free_pages, nf_used_pages);\n \treturn (void *)l;\n-}\n\\ No newline at end of file\n+}\ndiff --git a/os/nftrace.c b/os/nftrace.c\nnew file mode 100644\nindex 0000000..8d99129\n--- /dev/null\n+++ b/os/nftrace.c\n@@ -0,0 +1,39 @@\n+#include \"nftrace.h\"\n+\n+__attribute__((noinline))\n+void nftrace_commit_point(const struct nftrace_record *record)\n+{\n+\tif (record != 0)\n+\t\t__asm__ volatile(\"\" : : \"r\"(*(volatile const uint64 *)record) : \"memory\");\n+}\n+\n+static inline void emit(uint64 type, uint64 a0, uint64 a1, uint64 a2, uint64 a3)\n+{\n+\tconst struct nftrace_record record = { type, { a0, a1, a2, a3 } };\n+\tnftrace_commit_point(&record);\n+}\n+\n+void nftrace_page_alloc(uint64 pa, uint64 free_pages, uint64 used_pages)\n+{\n+\temit(1, pa, 1, free_pages, used_pages);\n+}\n+\n+void nftrace_page_free(uint64 pa, uint64 free_pages, uint64 used_pages)\n+{\n+\temit(5, pa, 1, free_pages, used_pages);\n+}\n+\n+void nftrace_allocator_state(uint64 free_pages, uint64 used_pages)\n+{\n+\temit(6, free_pages, used_pages, 0, 0);\n+}\n+\n+void nftrace_proc_fork(uint64 parent, uint64 child)\n+{\n+\temit(2, parent, child, 0, 0);\n+}\n+\n+void nftrace_sched_switch(uint64 from_task, uint64 to_task, uint64 from_pid, uint64 to_pid)\n+{\n+\temit(4, from_task, to_task, from_pid, to_pid);\n+}\ndiff --git a/os/nftrace.h b/os/nftrace.h\nnew file mode 100644\nindex 0000000..e1428ae\n--- /dev/null\n+++ b/os/nftrace.h\n@@ -0,0 +1,18 @@\n+#ifndef NFTRACE_H\n+#define NFTRACE_H\n+\n+#include \"types.h\"\n+\n+struct nftrace_record {\n+\tuint64 type;\n+\tuint64 a[4];\n+};\n+\n+void nftrace_commit_point(const struct nftrace_record *record);\n+void nftrace_page_alloc(uint64 pa, uint64 free_pages, uint64 used_pages);\n+void nftrace_page_free(uint64 pa, uint64 free_pages, uint64 used_pages);\n+void nftrace_allocator_state(uint64 free_pages, uint64 used_pages);\n+void nftrace_proc_fork(uint64 parent, uint64 child);\n+void nftrace_sched_switch(uint64 from_task, uint64 to_task, uint64 from_pid, uint64 to_pid);\n+\n+#endif\ndiff --git a/os/proc.c b/os/proc.c\nindex 6aa7fbb..e394800 100644\n--- a/os/proc.c\n+++ b/os/proc.c\n@@ -4,6 +4,7 @@\n #include \"trap.h\"\n #include \"vm.h\"\n #include \"queue.h\"\n+#include \"nftrace.h\"\n \n struct proc pool[NPROC];\n __attribute__((aligned(16))) char kstack[NPROC][PAGE_SIZE];\n@@ -145,6 +146,7 @@ void scheduler()\n \t\ttracef(\"swtich to proc %d\", p - pool);\n \t\tp->state = RUNNING;\n \t\tcurrent_proc = p;\n+\t\tnftrace_sched_switch((uint64)&idle, (uint64)p, (uint64)-1, p->pid);\n \t\tswtch(&idle.context, &p->context);\n \t}\n }\n@@ -161,6 +163,7 @@ void sched()\n \tstruct proc *p = curr_proc();\n \tif (p->state == RUNNING)\n \t\tpanic(\"sched running\");\n+\tnftrace_sched_switch((uint64)p, (uint64)&idle, p->pid, (uint64)-1);\n \tswtch(&p->context, &idle.context);\n }\n \n@@ -227,6 +230,7 @@ int fork()\n \tnp->parent = p;\n \tnp->state = RUNNABLE;\n \tadd_task(np);\n+\tnftrace_proc_fork(p->pid, np->pid);\n \treturn np->pid;\n }\n \ndiff --git a/os/vm.c b/os/vm.c\nindex 8e20fab..5b5a5e1 100644\n--- a/os/vm.c\n+++ b/os/vm.c\n@@ -3,6 +3,12 @@\n #include \"plic.h\"\n #include \"riscv.h\"\n \n+__attribute__((noinline))\n+void nodefusion_pagetable_map(uint64 va, uint64 pa, uint64 flags)\n+{\n+\t__asm__ volatile(\"\" : : \"r\"(va), \"r\"(pa), \"r\"(flags) : \"memory\");\n+}\n+\n pagetable_t kernel_pagetable;\n \n extern char e_text[]; // kernel.ld sets this to end of kernel code.\n@@ -131,6 +137,7 @@ int mappages(pagetable_t pagetable, uint64 va, uint64 size, uint64 pa, int perm)\n \t\t\treturn -1;\n \t\t}\n \t\t*pte = PA2PTE(pa) | perm | PTE_V;\n+\t\tnodefusion_pagetable_map(a, pa, perm | PTE_V);\n \t\tif (a == last)\n \t\t\tbreak;\n \t\ta += PGSIZE;\n@@ -407,4 +414,3 @@ uint64 uvmdealloc(pagetable_t pagetable, uint64 oldsz, uint64 newsz)\n \n         return newsz;\n }\n-\n",
    "user_patch": "diff --git a/CMakeLists.txt b/CMakeLists.txt\nindex f5a9fac..ab1986d 100644\n--- a/CMakeLists.txt\n+++ b/CMakeLists.txt\n@@ -15,12 +15,12 @@ set(ASM_DIR asm)\n set(BIN_DIR bin)\n \n # Toolchain\n-set(PREFIX ${ARCH}-linux-musl-)\n+set(PREFIX ${ARCH}-linux-musl- CACHE STRING \"Cross compiler prefix\")\n \n if (${ARCH} STREQUAL riscv32)\n-    set(CMAKE_C_FLAGS       \"-march=rv32imac -mabi=ilp32 -mcmodel=medany\")\n+    set(CMAKE_C_FLAGS       \"-march=rv32imac_zicsr_zifencei -mabi=ilp32 -mcmodel=medany\")\n elseif (${ARCH} STREQUAL riscv64)\n-    set(CMAKE_C_FLAGS       \"-march=rv64imac -mabi=lp64 -mcmodel=medany\")\n+    set(CMAKE_C_FLAGS       \"-march=rv64imac_zicsr_zifencei -mabi=lp64 -mcmodel=medany\")\n else()\n     message(\"Unsupported arch: ${ARCH}\")\n endif ()\ndiff --git a/Makefile b/Makefile\nindex be632ac..64f1ab6 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -7,15 +7,16 @@ app_dir = src\n elf_dir := build/$(ARCH)\n bin_dir := build/bin\n out_dir := target\n-cmake_build_args := -DARCH=$(ARCH) -DCHAPTER=$(CHAPTER)\n+TOOLPREFIX ?= $(ARCH)-linux-musl-\n+cmake_build_args := -DARCH=$(ARCH) -DCHAPTER=$(CHAPTER) -DPREFIX=$(TOOLPREFIX)\n ifeq ($(MODE), release)\n cmake_build_args += -DCMAKE_BUILD_TYPE=Release\n else ifeq ($(MODE), debug)\n cmake_build_args += -DCMAKE_BUILD_TYPE=Debug\n endif\n \n-OBJCOPY := $(ARCH)-linux-musl-objcopy\n-OBJDUMP := $(ARCH)-linux-musl-objdump\n+OBJCOPY := $(TOOLPREFIX)objcopy\n+OBJDUMP := $(TOOLPREFIX)objdump\n CP := cp\n CH_TESTS :=  \n \ndiff --git a/src/ch6b_exec.c b/src/ch6b_exec.c\nindex 1a1d9c6..b67cf35 100644\n--- a/src/ch6b_exec.c\n+++ b/src/ch6b_exec.c\n@@ -5,7 +5,7 @@\n int main()\n {\n \tchar *_argv[] = {\n-\t\t\"(*o*)\", \"(>.<)\", \"(O.O)\", \"(QwQ)\", \"orz\", \"没有了呀\"\n+\t\t\"(*o*)\", \"(>.<)\", \"(O.O)\", \"(QwQ)\", \"orz\", \"没有了呀\", NULL\n \t};\n \texec(\"ch6b_args\", _argv);\n \treturn 0;\ndiff --git a/src/ch6b_filetest_simple.c b/src/ch6b_filetest_simple.c\nindex 062cecf..a27e982 100644\n--- a/src/ch6b_filetest_simple.c\n+++ b/src/ch6b_filetest_simple.c\n@@ -15,7 +15,9 @@ int main()\n \tfd = open(filea, O_RDONLY);\n \tassert(fd > 0);\n \tchar buf[16];\n-\tread(fd, buf, 16);\n+\tint nread = read(fd, buf, sizeof(buf) - 1);\n+\tassert_eq(nread, strlen(s));\n+\tbuf[nread] = '\\0';\n \tclose(fd);\n \tassert(strcmp(s, buf) == 0);\n \tputs(\"file_test passed!\");\ndiff --git a/src/ch6b_usertest.c b/src/ch6b_usertest.c\nindex cdd9fc8..1cb5f3a 100644\n--- a/src/ch6b_usertest.c\n+++ b/src/ch6b_usertest.c\n@@ -11,7 +11,7 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",      \"ch3b_yield0\\0\",\t  \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",      \"ch5b_getpid\\0\",\t  \"ch5b_forktest0\\0\",\n \t\"ch5b_forktest1\\0\",   \"ch5b_forktest2\\0\", \"ch5b_exit\\0\",\n-\t\"ch6b_filetest\\0\",    \"ch6b_exec\\0\",\n+\t\"ch6b_filetest_simple\\0\",    \"ch6b_exec\\0\",\n };\n \n int main()\ndiff --git a/src/ch7b_usertest.c b/src/ch7b_usertest.c\nindex 1f634d4..8bfc7c8 100644\n--- a/src/ch7b_usertest.c\n+++ b/src/ch7b_usertest.c\n@@ -10,7 +10,7 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",      \"ch3b_yield0\\0\",\t  \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",      \"ch5b_exit\\0\",\t  \"ch5b_getpid\\0\",\n \t\"ch5b_forktest0\\0\",   \"ch5b_forktest1\\0\", \"ch5b_forktest2\\0\",\n-\t\"ch5b_exit\\0\",\t      \"ch6b_filetest\\0\",  \"ch6b_exec\\0\",\n+\t\"ch5b_exit\\0\",\t      \"ch6b_filetest_simple\\0\",  \"ch6b_exec\\0\",\n \t\"ch7b_pipetest\\0\",\n };\n \ndiff --git a/src/ch8b_usertest.c b/src/ch8b_usertest.c\nindex 1cce5ce..f088c38 100644\n--- a/src/ch8b_usertest.c\n+++ b/src/ch8b_usertest.c\n@@ -10,9 +10,9 @@ const char *TESTS[] = {\n \t\"ch3b_sleep1\\0\",        \"ch3b_yield0\\0\",      \"ch3b_yield1\\0\",\n \t\"ch3b_yield2\\0\",        \"ch5b_getpid\\0\",      \"ch5b_forktest0\\0\",\n \t\"ch5b_forktest1\\0\",     \"ch5b_forktest2\\0\",   \"ch5b_exit\\0\",\n-\t\"ch6b_filetest\\0\",      \"ch6b_exec\\0\",        \"ch7b_pipetest\\0\",\n+\t\"ch6b_filetest_simple\\0\",      \"ch6b_exec\\0\",        \"ch7b_pipetest\\0\",\n \t\"ch8b_mpsc_sem\\0\",\n-\t\"ch8b_mut_phi_din.c\",   \"ch8b_mut_race\\0\",    \"ch8b_sync_sem\\0\",\n+\t   \"ch8b_mut_race\\0\",    \"ch8b_sync_sem\\0\",\n \t\"ch8b_test_condvar\\0\",  \"ch8b_threads_arg\\0\", \"ch8b_threads\\0\",      \n \t\"ch8b_spin_mut_race\\0\", \"ch8b_mut_phi_din\\0\",\n };\n",
    "disk_image": {
      "image": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/nfs/fs.img",
      "sha256": "6deab196619184e63ab9963fa9eeecba8a1296b04ef3a76c2ded5d72ca905923",
      "bytes": 1024000,
      "block_size": 1024,
      "geometry": {
        "total_blocks": 1000,
        "data_blocks": 984,
        "inodes": 200,
        "inode_start": 2,
        "bitmap_start": 15
      },
      "root": {
        "size": 1024,
        "type": 1,
        "direct": [
          16,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "indirect": 0
      },
      "root_data_block_ids": [
        16
      ],
      "files": [
        {
          "name": "ch2b_exit",
          "inode": 2,
          "size": 6721,
          "type": 2,
          "nlink": null,
          "sha256": "4bb7a3be7a2fb8dd764fa8f6229ca17f9deb1bc2f825ef16039e2c1d6742ad2c",
          "data_block_ids": [
            17,
            18,
            19,
            20,
            21,
            22,
            23
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch2b_exit"
        },
        {
          "name": "ch2b_hello_wor",
          "inode": 3,
          "size": 6785,
          "type": 2,
          "nlink": null,
          "sha256": "f283d76194ecfdff6aae97d900aa517170a167434977e130b4c47d99c72c518e",
          "data_block_ids": [
            24,
            25,
            26,
            27,
            28,
            29,
            30
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch2b_hello_world"
        },
        {
          "name": "ch2b_power",
          "inode": 4,
          "size": 6905,
          "type": 2,
          "nlink": null,
          "sha256": "c49901abbc4d919649f64c11387b10ecfeaf931f3bc692b65009cd26eefb8b60",
          "data_block_ids": [
            31,
            32,
            33,
            34,
            35,
            36,
            37
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch2b_power"
        },
        {
          "name": "ch3b_sleep",
          "inode": 5,
          "size": 7001,
          "type": 2,
          "nlink": null,
          "sha256": "06c11256b2456a97fee2d14fee621d56cdbfecf9a3b3274b8e76b89d18c81b5e",
          "data_block_ids": [
            38,
            39,
            40,
            41,
            42,
            43,
            44
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_sleep"
        },
        {
          "name": "ch3b_sleep1",
          "inode": 6,
          "size": 6873,
          "type": 2,
          "nlink": null,
          "sha256": "9cb7b78b6e3a871e9d0dea30dfb28249eba92752a866df90524db58f89ef8d60",
          "data_block_ids": [
            45,
            46,
            47,
            48,
            49,
            50,
            51
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_sleep1"
        },
        {
          "name": "ch3b_yield0",
          "inode": 7,
          "size": 6841,
          "type": 2,
          "nlink": null,
          "sha256": "f00cf883e3b1542fe7fb26e258f46945c2506500c9ad37e8b609589247f5cc2d",
          "data_block_ids": [
            52,
            53,
            54,
            55,
            56,
            57,
            58
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_yield0"
        },
        {
          "name": "ch3b_yield1",
          "inode": 8,
          "size": 6841,
          "type": 2,
          "nlink": null,
          "sha256": "8a2e9948901e5e7f9f834242114820de5c2b160e63716a64c16217a6c4f07496",
          "data_block_ids": [
            59,
            60,
            61,
            62,
            63,
            64,
            65
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_yield1"
        },
        {
          "name": "ch3b_yield2",
          "inode": 9,
          "size": 6841,
          "type": 2,
          "nlink": null,
          "sha256": "4751f81ce9964235fe0c05c0bc27ff4a6a78225631139ae2d5e2433c0eae6773",
          "data_block_ids": [
            66,
            67,
            68,
            69,
            70,
            71,
            72
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch3b_yield2"
        },
        {
          "name": "ch5b_exec_simp",
          "inode": 10,
          "size": 6769,
          "type": 2,
          "nlink": null,
          "sha256": "c7eb9413e279f64d1b675bef7050ed82bc92c49084ad8bd279931c6189347327",
          "data_block_ids": [
            73,
            74,
            75,
            76,
            77,
            78,
            79
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_exec_simple"
        },
        {
          "name": "ch5b_exit",
          "inode": 11,
          "size": 7105,
          "type": 2,
          "nlink": null,
          "sha256": "7aa3f31fe179ee79417a82dc9c08745e67a74bf17ca2f1c2c1b4fb7fdf36c6c2",
          "data_block_ids": [
            80,
            81,
            82,
            83,
            84,
            85,
            86
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_exit"
        },
        {
          "name": "ch5b_forktest0",
          "inode": 12,
          "size": 7417,
          "type": 2,
          "nlink": null,
          "sha256": "a3c216b34c2e4db83f3708fe93112dc8ec0883db132bc64d4e0030028f4fe320",
          "data_block_ids": [
            87,
            88,
            89,
            90,
            91,
            92,
            93,
            94
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_forktest0"
        },
        {
          "name": "ch5b_forktest1",
          "inode": 13,
          "size": 7153,
          "type": 2,
          "nlink": null,
          "sha256": "07df25de0f0be372386bceabaab30138adbde19c028a72c4538cd822ccf2ff9b",
          "data_block_ids": [
            95,
            96,
            97,
            98,
            99,
            100,
            101
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_forktest1"
        },
        {
          "name": "ch5b_forktest2",
          "inode": 14,
          "size": 7265,
          "type": 2,
          "nlink": null,
          "sha256": "db1c19e3d4bea3edd1c4ae46a40691e2c2c2984f1ac46c996a7fde1b4fab2e3a",
          "data_block_ids": [
            102,
            103,
            104,
            105,
            106,
            107,
            108,
            109
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_forktest2"
        },
        {
          "name": "ch5b_getpid",
          "inode": 15,
          "size": 7041,
          "type": 2,
          "nlink": null,
          "sha256": "c16f287518665cad934c95a57b1e20a8744fac7b05f6ab8f87108400c533dacb",
          "data_block_ids": [
            110,
            111,
            112,
            113,
            114,
            115,
            116
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_getpid"
        },
        {
          "name": "ch5b_usertest",
          "inode": 16,
          "size": 7881,
          "type": 2,
          "nlink": null,
          "sha256": "1b563a61eb5902ae6b8f13e671a015d6b293b6010759017478b5f117e284e1bf",
          "data_block_ids": [
            117,
            118,
            119,
            120,
            121,
            122,
            123,
            124
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch5b_usertest"
        },
        {
          "name": "ch6b_args",
          "inode": 17,
          "size": 6793,
          "type": 2,
          "nlink": null,
          "sha256": "b3cc3367ec71c47a312fd3ba28cb5bc26972cf30d9f33fb5b8d52d5c66675686",
          "data_block_ids": [
            125,
            126,
            127,
            128,
            129,
            130,
            131
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_args"
        },
        {
          "name": "ch6b_assert",
          "inode": 18,
          "size": 6881,
          "type": 2,
          "nlink": null,
          "sha256": "665a2d6632087de07a5dc6debb0f92dada9b42b5d3c4e3d1a142990888df5ac7",
          "data_block_ids": [
            132,
            133,
            134,
            135,
            136,
            137,
            138
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_assert"
        },
        {
          "name": "ch6b_cat",
          "inode": 19,
          "size": 6833,
          "type": 2,
          "nlink": null,
          "sha256": "2803811bed6fe04469bcb280b9bec19346f257455d1028f1e29cfd9180103493",
          "data_block_ids": [
            139,
            140,
            141,
            142,
            143,
            144,
            145
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_cat"
        },
        {
          "name": "ch6b_exec",
          "inode": 20,
          "size": 6881,
          "type": 2,
          "nlink": null,
          "sha256": "5494e1fc16edef77714e48087221fd1ffdd431aed7e24d5f8e2130f3e2315c2b",
          "data_block_ids": [
            146,
            147,
            148,
            149,
            150,
            151,
            152
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_exec"
        },
        {
          "name": "ch6b_filetest",
          "inode": 21,
          "size": 7089,
          "type": 2,
          "nlink": null,
          "sha256": "3e62b6bd5994d0559c677ea90172d54361e53c55622193bb66c7b910898d5b6e",
          "data_block_ids": [
            153,
            154,
            155,
            156,
            157,
            158,
            159
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_filetest"
        },
        {
          "name": "ch6b_filetest_",
          "inode": 22,
          "size": 7385,
          "type": 2,
          "nlink": null,
          "sha256": "d34d1ab5b63b1c536aa8be4a2feae5ae5afa0da3a936b8d06c5b7e51b2a2175c",
          "data_block_ids": [
            160,
            161,
            162,
            163,
            164,
            165,
            166,
            167
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_filetest_simple"
        },
        {
          "name": "ch6b_panic",
          "inode": 23,
          "size": 6897,
          "type": 2,
          "nlink": null,
          "sha256": "c6d03692c11432b5d937f93e7598da801d96f60266c2312e9009e04fdf230afa",
          "data_block_ids": [
            168,
            169,
            170,
            171,
            172,
            173,
            174
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_panic"
        },
        {
          "name": "ch6b_usertest",
          "inode": 24,
          "size": 7961,
          "type": 2,
          "nlink": null,
          "sha256": "f8a5af2225543009c4d2b1d7f22ac2e2fa25ef085dcb7cc656518fd667239ab1",
          "data_block_ids": [
            175,
            176,
            177,
            178,
            179,
            180,
            181,
            182
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/ch6b_usertest"
        },
        {
          "name": "usershell",
          "inode": 25,
          "size": 8273,
          "type": 2,
          "nlink": null,
          "sha256": "58cbbce4d0ae1f505e448e2b1c94236f11fef668f95edec2a40b6142e8cb009a",
          "data_block_ids": [
            183,
            184,
            185,
            186,
            187,
            188,
            189,
            190,
            191
          ],
          "compiled_payload": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed/user/target/bin/usershell"
        }
      ],
      "inspector_sha256": "87db5ee660fee887db44526a4a915e7deef035dba03528b451ccdff1bfd2f49c"
    },
    "versions": {
      "riscv64-unknown-elf-gcc": "riscv64-unknown-elf-gcc (Debian 14.2.0-19) 14.2.0",
      "cmake": "cmake version 3.31.6"
    }
  },
  "build_command": [
    "make",
    "build",
    "LOG=info",
    "CHAPTER=6",
    "INIT_PROC=ch6b_usertest"
  ],
  "build_cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed",
  "record_command": [
    "/home/joseph/nf/venv313/bin/python",
    "-m",
    "nodefusion.host.cli",
    "record",
    "--kernel",
    "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed",
    "--kernel-kind",
    "ucore",
    "--runs",
    "/home/joseph/nf/education-2026A-20260927/runs",
    "--name",
    "ucore-2026A-ch6-basic-observed",
    "--no-build",
    "--function-returns",
    "--watch-all",
    "--profile",
    "uniform",
    "--snapshots",
    "80",
    "--max-ram-bytes",
    "268435456",
    "--timeout",
    "600",
    "--no-render",
    "--event-stream",
    "never"
  ],
  "record_cwd": "/home/joseph/nf/education-2026A-20260927/tool",
  "analysis_command": [
    "/home/joseph/nf/venv313/bin/python",
    "-m",
    "scripts.regenerate_artifact",
    "--run",
    "/home/joseph/nf/education-2026A-20260927/runs/ucore-2026A-ch6-basic-observed",
    "--out",
    "/home/joseph/nf/education-2026A-20260927/runs/ucore-2026A-ch6-basic-observed/ucore-2026A-ch6-basic-observed.html"
  ],
  "analysis_cwd": "/home/joseph/nf/education-2026A-20260927/tool",
  "record_driver_sha256": "f06954e9cf27c75ba3f00a29401826abecb21cabc3f5610c4b023f10c79075a6",
  "filesystem_analysis_command": [
    "/home/joseph/nf/venv313/bin/python",
    "/home/joseph/nf/education-2026A-20260927/inspect-ch6-observed-v2.py",
    "ucore-2026A-ch6-basic-observed"
  ],
  "filesystem_analysis_cwd": "/home/joseph",
  "filesystem_analysis_script_sha256": "2ae4eeb6abff17819d0d360497e23742c08e1976fe27b3e6bd07bf0a9f0683b1",
  "filesystem_analysis_source": {
    "archive": {
      "path": "/home/joseph/nf/education-2026A-20260927/ch6-publication.tar.gz",
      "sha256": "6cdab59e0bd60bfc75bec1f98e53421b77925169c13a6fcec9d582afc1cedf51",
      "bytes": 12134523
    },
    "script": {
      "sha256": "2ae4eeb6abff17819d0d360497e23742c08e1976fe27b3e6bd07bf0a9f0683b1",
      "bytes": 7278
    },
    "deployed_source_files": {
      "nodefusion/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/_vendor/elftools/__init__.py": "9385fdca231d9ad83e27a59aa1bc59b252efad8c24cf08c9f39e0b543f675746",
      "nodefusion/_vendor/elftools/common/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/_vendor/elftools/common/construct_utils.py": "d1de2461e60636b52cfc446d00f7a31f152f2ccc43c1a53bc2ba82187ca1e460",
      "nodefusion/_vendor/elftools/common/exceptions.py": "bedd7aa994281100ba13a40dfaad8b03eec17a725a1c4cb23893572d99bbd1ef",
      "nodefusion/_vendor/elftools/common/utils.py": "36a5f64bfb3aab0dba30d9fa05aa1b3f9fbbf86f297eee27c7c12652f5ac308b",
      "nodefusion/_vendor/elftools/construct/__init__.py": "15104eb011a640e4268a9b9221d07201a0360ff0b1c8b49e252ef41fdfbb35de",
      "nodefusion/_vendor/elftools/construct/adapters.py": "5745745b25eb849174ee5c3179b9867b03e0471633e9eac8276aa439fe4c8841",
      "nodefusion/_vendor/elftools/construct/core.py": "df9719893de6454f5bc4c912afc892bcc278ef45ac1553bf4a409278ba347c9d",
      "nodefusion/_vendor/elftools/construct/debug.py": "491486779e464e0f4a59cfd429d8e93c577a0f0d9b969847e69400a3c86acb1c",
      "nodefusion/_vendor/elftools/construct/lib/__init__.py": "973420ec247c18b9e5488743bb099ae82f19c7287ef31dcb529a7283b6e42eb3",
      "nodefusion/_vendor/elftools/construct/lib/binary.py": "f18e4161a11bc95732bd01c577cbe98373081afd5b4112b02fec51a0e1df2e11",
      "nodefusion/_vendor/elftools/construct/lib/bitstream.py": "ee8081769bed1d00a086399c8749a847c1a48b8d08637506bf7d1229b6e1808a",
      "nodefusion/_vendor/elftools/construct/lib/container.py": "0385a420febf5bac714153ceaadd192ff9d09862bc7e17c203bf759aa18b2bb4",
      "nodefusion/_vendor/elftools/construct/lib/hex.py": "55f82dc36f273347c08e9e469fd497368241453b7a63e69e167ad6b316e5e2c7",
      "nodefusion/_vendor/elftools/construct/macros.py": "0244e84cf4f598ac8da7c3d8f1f09b06112a508e71fb8d381b377f1c0472a4e3",
      "nodefusion/_vendor/elftools/dwarf/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/_vendor/elftools/dwarf/abbrevtable.py": "d7d338a6eddd4c1fe02c66d9c2b1c202c36ebcfda28f438a0ac0546dc5a63eb1",
      "nodefusion/_vendor/elftools/dwarf/aranges.py": "399d17d0e3cc18527337d60c1ffc0cfcfc8d5ddcf86af1ef6c359453538344e3",
      "nodefusion/_vendor/elftools/dwarf/callframe.py": "6c77dd3c1b482434d8d86f35922f0c88b1a71c1c19055fa512224d44876a4b5a",
      "nodefusion/_vendor/elftools/dwarf/compileunit.py": "2681263026c2bdd3fd9033e60230024e6b25ca90280df91c3ae0b0fe97bdb9d3",
      "nodefusion/_vendor/elftools/dwarf/constants.py": "30377a1636c5ac41b7a09f7c79c6bae67b49696c4e9b9d904a1a0acaba7dabdb",
      "nodefusion/_vendor/elftools/dwarf/datatype_cpp.py": "b3df1fc9ef56f941e0b38a9ad5da05a3c3821dd1cdc4b440c7c1934bee00a770",
      "nodefusion/_vendor/elftools/dwarf/descriptions.py": "6692ed493344018f4d96fdb70e9b04bdb3ec1428df0448f17fc8ffab2a205851",
      "nodefusion/_vendor/elftools/dwarf/die.py": "b653e8091a49f6926a955d8c05f26c36798ece3d902c00d2b5da10af637bfce7",
      "nodefusion/_vendor/elftools/dwarf/dwarf_expr.py": "db6d4cb9f3f1ee7e85ac1f9286831093d1b65f8c472fe0f9331a7aa164782bcb",
      "nodefusion/_vendor/elftools/dwarf/dwarf_util.py": "2e1cc3030a3cc669e0832e3cb5d4b1e3c82e22ff5a1164e6a878931f8531ce0d",
      "nodefusion/_vendor/elftools/dwarf/dwarfinfo.py": "3cfff046c35f7b063ba4288f1d9bb5167be4f3fdda0af756a299d832d660b75f",
      "nodefusion/_vendor/elftools/dwarf/enums.py": "10d18e4acabc383b8e8527cf4c011874dc9459c3bc30bd65b9212885a146bd7a",
      "nodefusion/_vendor/elftools/dwarf/lineprogram.py": "d9472d85b8c62fe56a7d6371d8cdb8af6268416970bdf909898ccb2606fa850c",
      "nodefusion/_vendor/elftools/dwarf/locationlists.py": "5167c3fb6208e3bafe0a52fc4d48eb164dc84dbd4980643acec19be26639a194",
      "nodefusion/_vendor/elftools/dwarf/namelut.py": "4b62eb965afd3e099835eb8bb9112f2d1ec89cb42adc6b55c1f113b6068d17b3",
      "nodefusion/_vendor/elftools/dwarf/ranges.py": "da3856ee646cf5b305751fa73a2d5fd9b0a21413377ca11cf93ce20e7040386e",
      "nodefusion/_vendor/elftools/dwarf/structs.py": "dfb1d6d755bcc7cf9a0363620e470c5b4a74bf7499a32d82f261652ffe71bef8",
      "nodefusion/_vendor/elftools/dwarf/typeunit.py": "c1bae01e11001941ebd0a10b72d569b4a0800600b3006b20a0b37f88536d1bc9",
      "nodefusion/_vendor/elftools/ehabi/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/_vendor/elftools/ehabi/constants.py": "a386df95ebe53338db1cdfe498a06acf8e976007b5fab5c4eed2b8904932caa8",
      "nodefusion/_vendor/elftools/ehabi/decoder.py": "3380c750ed972e33510a42a1d4de725f744cfc156e44a5d50ae199239cacb10e",
      "nodefusion/_vendor/elftools/ehabi/ehabiinfo.py": "e442ea16826888c9903893db8ccd9cb47f9f634476c1837812c84b6ce4be1b4c",
      "nodefusion/_vendor/elftools/ehabi/structs.py": "5ebdda74af71d7637d41eb0510403d8776d3b7ea70f715edc58aabc836aaae87",
      "nodefusion/_vendor/elftools/elf/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/_vendor/elftools/elf/constants.py": "d805c36820815a58fce8593206a5527c46009756b9397298d086679b6a9d9f23",
      "nodefusion/_vendor/elftools/elf/descriptions.py": "02771b6d1d4eb829b7334e417f580f78eb253c14f895c427c99b870537d363ef",
      "nodefusion/_vendor/elftools/elf/dynamic.py": "13c2621f118f30c6a8b6a0d999bdf8a7d082f0c2b7713eb4203d7b877082f0f7",
      "nodefusion/_vendor/elftools/elf/elffile.py": "0b8629b86828f0f05dea1200261ffaf1849ae675e52943e88a37e6a5e0b73d51",
      "nodefusion/_vendor/elftools/elf/enums.py": "9beb3eb13c4dfe6e2e75ed5db7a75dbb6da7917ed7ea7ad9c2ab7b697c284256",
      "nodefusion/_vendor/elftools/elf/gnuversions.py": "d22136e3242cf4ff379154b5c830706f3be1d77ee41ffab7efeed57e4876c740",
      "nodefusion/_vendor/elftools/elf/hash.py": "538c9b253f89a4b200eeb9c7d82f9cd0c3ae08146b3295538363ba5fced3627a",
      "nodefusion/_vendor/elftools/elf/notes.py": "17cf2c2a9ec9a0bf8f3415cbaeca42d3ab8f1102556251b290a2814e86f16f63",
      "nodefusion/_vendor/elftools/elf/relocation.py": "b0fd391fe0e293ac7dc5bdad495a8d2e72454442c35291781952fa5016f77b0f",
      "nodefusion/_vendor/elftools/elf/sections.py": "5acbfe427062f3f80cad1d556c4113d60136cbe526636e621a6e820ade5d6ab5",
      "nodefusion/_vendor/elftools/elf/segments.py": "103f945c2c7d67eff713609ea189601e94c0e7122274110c6b20d038a5b8bf74",
      "nodefusion/_vendor/elftools/elf/structs.py": "a0f439925915d7f1a69938673da2cebefd0d10860d60caddc81370ce017d8623",
      "nodefusion/host/__init__.py": "eb4e72c7ca2b3242527b39bd840ced588631e97404cea0e72e3131406cdeec59",
      "nodefusion/host/__main__.py": "13a1a5b340cdcfc1902b62be90e508c7c71886000d5bf087e7854aadf09fb35e",
      "nodefusion/host/analyze.py": "310d26f5c89334c05ee697bb5709a8e8bbce140bcb67f2d3450a09232a3d38b7",
      "nodefusion/host/assets/app.css": "4a6f97f6046f1658f683e28107b5e524cf64507c57e7ad76035a7e8d745740eb",
      "nodefusion/host/assets/app.js": "c253b16d88ddc73d1c78ec3729800800ad255b923712893dbe12f66faab2aca2",
      "nodefusion/host/bundle.py": "cec890de70422513db45c7a592e758c9dba368a638fc2b337d0e3156a607f8e0",
      "nodefusion/host/callstack.py": "7a1ce5d70940e2c98792f57543e3df2cbc7b9f96ec5d8c7b280ccf17c78f9bde",
      "nodefusion/host/cdp.py": "983be57750320be8265405b3fa4c3490288a34bba5b2f0c32820d51895210264",
      "nodefusion/host/cli.py": "6a2f09d5d4ea15299e3f9cbc0f7a2312a322e9c43beb3837d61b2276787af9dd",
      "nodefusion/host/dwarf.py": "158545b640bd312050c9cef773a19f0de839229cb08925a0298a5bb2751b5993",
      "nodefusion/host/elfid.py": "43c44bed9a69fa2b92fc7520342843e71caf0c6a3849d2b23b54e9a22dfdcfa0",
      "nodefusion/host/guest.py": "6871f08f11b9eda17b8a0618e8b8f43a544ddf05a37d7b530daa18d30d4c455a",
      "nodefusion/host/kernels.py": "10dcd1d97aae33b5b389d4106bdf5867468df41a39ce769300448f6d1727b103",
      "nodefusion/host/layout.py": "2f74bd4970af88fa38519c850fbcc494b8a1e4f5ddf7ed87897a442175f0ab82",
      "nodefusion/host/nfelf.py": "5495b1bc5e3406268ba66054e831dfb3fc8857c47b881d95cd995bafa65c5315",
      "nodefusion/host/nftrace.py": "d4fa97efd6527535ab90e4c623e8211bf8b9bf7d189beee47b56b216718c2f76",
      "nodefusion/host/procview.py": "ae1874f57bafa6b694c50aa3c0185671e60fcf0f784d139ee5e807e2f98e9689",
      "nodefusion/host/record.py": "ed6668c5711bcddff0e30a4b82eaf9235e6700746ce186042e39e45219b55428",
      "nodefusion/host/render.py": "46d000d2f40eb934180fba10ec8d8ccb8cc5d1e53e558304fdba941bfcff7dd8",
      "nodefusion/host/resources.py": "019a7be1fc7d86f221f2a67c3a5f7df271d1901500371a02a2113518483fb702",
      "nodefusion/host/shell.py": "08a9b0318ab79c0642d9a0b29683dc65b86c4e529f547530baf4e60b1e67f0af",
      "nodefusion/host/video.py": "1f49810a036f9388ae10153b8691504ed79c3e8b0e19a6bc2818de2ef1fe699d",
      "nodefusion/host/watchlist.py": "1b820dd5d741a118b28959b44d95b886e5fe7518dd5beef3e5561e3cf39822d1",
      "nodefusion/host/wslenv.py": "6b8f5d9e3f71b292e51c980f921dd498315c510d952ef90b24dfbf775b3afa6c",
      "nodefusion/manifests/alien.toml": "da290fe1014168a7e8f44844f30430c3041a14550449c5d51fa06847f23f7aeb",
      "nodefusion/manifests/arceos.toml": "cad48257d081aa1c660d3e7af2f4fbec79bbe232322c71453a9a5b1c9ac7be44",
      "nodefusion/manifests/axvisor.toml": "d6cd2cc9d9662f74a5d25f29e8d02591ae5a205fe18166307ef430edbc7432b3",
      "nodefusion/manifests/rcore.toml": "4a6c4746a885ce7ed68a374516188f02d5955028c94ecfa7e73c5ddf08b73e75",
      "nodefusion/manifests/rel4.toml": "ca43c2847a9ca757542ef3ed3e276dc7130c92b25150c73deb3e2a20faf8c37e",
      "nodefusion/manifests/starry.toml": "8a3ce9735d4c948322962b8c532be334034ad608aac28a041bb58876012dcae8",
      "nodefusion/manifests/ucore.toml": "7ca738a5abfb1c21afdb75b44c2fc0ce81b19d3d2db9aa3d820850b8abf74327",
      "nodefusion/manifests/xv6.toml": "0f501a4441214a2de3b1b50d39665ee23faad6f93024b3b92d30f542bc9b7964",
      "nodefusion/model/__init__.py": "9864ab2acb9890ed2fcbf815f30042fd97e3bd5ce069531f8c76fa2eed60b9d0",
      "nodefusion/model/ctxbuild.py": "552c0d3d87d640e73bfb4c3fc237453c7b84298c721f2d37594c85d1ab5eb86d",
      "nodefusion/model/dwarfsrc.py": "02688f5f8419ba6c8fd64ea4f347929f74c8b70299b632223c5535bab298f265",
      "nodefusion/model/exec.py": "148e68fa1c7054716e4fcb3e7bddb7c0d384ab6a6bfcb00bd15f7a869f6d86ec",
      "nodefusion/model/kinds.py": "0432ef9f134654bc36554ec55afcb9f91c593110cdacf0a58d0ac4d1d05ac569",
      "nodefusion/model/layout.py": "cd2639282b0c4fac684d06309e11e95922213d3d32698f275e65dd060f677fd6",
      "nodefusion/model/manifest.py": "d592aaac9ae308760cda947327c0d7c0e964a26d517740ed66838747e2334a22",
      "nodefusion/model/plan.py": "374fbb225a6717c2c391ac8bdda54aa957638821a45b2865b40a7be9bcc808c6",
      "nodefusion/model/probe.py": "30546d56bbd47ef12567826b49dd910de07e2af8fffc5c4350e04a57f70da5b8",
      "nodefusion/model/readers/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "nodefusion/model/readers/containers.py": "6eec01bd4f30858e1eda2ee7de890a9d93f94eda25e02d0a1bdf3558d31a1610",
      "nodefusion/model/readers/pointers.py": "72f989d643df6bdd477494023aac2da851f2d1f123d5e1e64b7629a0be6eae6b",
      "nodefusion/model/readers/registry.py": "2c35cc0b1f8db857e67c08e9c7976bf47c6ab21faabb4e242d8a0be42f9634ee",
      "nodefusion/model/readers/scalars.py": "a145fe5c4a250cc11fe44d0a4caabae908fbc44994335663955230296f695cbc",
      "nodefusion/model/resolve.py": "0c588760d0ec6494617007b02d786285ba190593935f574f6c53b99ad62ac8c0",
      "nodefusion/model/roles.py": "8d35b0497bd0b2d9abf639d9803fc6b7bd1e1ee5153c0f47ff53a26356dcc8c5",
      "nodefusion/model/rt.py": "3d62e9c6169e89a2593b29ff49919e84a2dda1df1b6fc16d3e54c7cc5d1744af",
      "nodefusion/model/snapshot.py": "e9c4ce76b858a9003e43d9eec363e1b88d4024338c3401b7a47a9871fe5dab7a",
      "nodefusion/model/symbols.py": "39f23be73d754e52221a4889c0101d50d8d8962ec21f1628d1cc36f07acdecb8",
      "nodefusion/model/watchsel.py": "bc3a9d6763950c265efaacce3f0c98194f54808d676b449c5b320b3a90cc7bf1",
      "nodefusion/tests/conftest.py": "2dfa19b096e309beadff0df9a05761d412ec6234e74968854292d7bfecf1b7a5",
      "nodefusion/tests/crosscheck_artifacts.py": "6ee173a31795c3875f93af0a0eaebcb27346c185c24e3f1d32846f5ca89d60a0",
      "nodefusion/tests/fuzz_trace.py": "af6189a6538747d369f982dfb86016f5e48842da0ce73f651b63c0b482b1c37e",
      "nodefusion/tests/kernelelf.py": "9a35d1389243849c6ed16f801a007568eb1304eee3d2cf3bcb8d1e38e12e2aed",
      "nodefusion/tests/stress_pagetable.py": "5db6d3671739ad5d0a3f76908049126185ea000726d0044d4d87ef215f26f737",
      "nodefusion/tests/test_absent_declaration.py": "535d4ace194fc5f923ba989e18634b55cffd0660eaefdfc7a59dcb4377eac266",
      "nodefusion/tests/test_analysis_lookup_cache.py": "aa4fbc0b8f06c64278bc5b11edf21cfe3ec737e3f0d88901b52478aca29765f3",
      "nodefusion/tests/test_analyze_alias.py": "345f6cbd8fae2a7c7729130460112a08a23599461234865f2da72055c3621064",
      "nodefusion/tests/test_arg_names.py": "a0f4cd7c7017da1926fc317d6c73bcb6bd4bacde579e3818fa277079991a4af4",
      "nodefusion/tests/test_artifact_guard.py": "8b53fababf688ceaf4afd1556d3c1352d3a13c60ea43fe14e3d3eae24698d1d0",
      "nodefusion/tests/test_artifact_output_safety.py": "cbed1bfa5928e7b12edc85b506f8018dd3216f017c43461525daf0a299bea9aa",
      "nodefusion/tests/test_bundle_shape.py": "55f2f20855a890967caba83581ca1dda43fa6606a5af6ab1ee7b07b074e7c82b",
      "nodefusion/tests/test_cache_hit_contract.py": "087277fe75bf38d8e83453b3671da4825f7586382fc1fa5300b3dc79272fbee7",
      "nodefusion/tests/test_calibration_failure_reason.py": "02449f59da919dc09781a66ad57789a98775b3888d1480f4f3064b4d8a1139da",
      "nodefusion/tests/test_callstack.py": "78bc55f0ccf1a6dde2836aaa256ca0ce9fc0f9b4c6dcc4b144732460144d901e",
      "nodefusion/tests/test_capability_notes.py": "a2fb61afdc826c0c5408ea3b385761f896b27191e54881c3e10b10a2f01cc272",
      "nodefusion/tests/test_compact_capability_ui.py": "07542f2beb95353f3dd3861ca3ffcec93d1f46c966c3dd74c82d27fc3b6427ad",
      "nodefusion/tests/test_consolidate_artifacts.py": "5ffa4d01f5adb051f2153c3097d2264dfa7c63533f4cf6c09159fc50cd843cdd",
      "nodefusion/tests/test_context_switch_snapshot.py": "db5c77b5ab4ad93d34a96266386dbeec80694db7482bfa5856c1547f773ccb9d",
      "nodefusion/tests/test_corpus_selection.py": "1717ce9682ecde7a05675b790914a8e5a590e1d83556944ddbfff1e38918d050",
      "nodefusion/tests/test_coverage_evidence.py": "fdbb041e7339f8d94a52a1833b01e315657a749e9bc7d21fee6a2724f23a86f3",
      "nodefusion/tests/test_demangle_v0.py": "9f91c7ab6d2f681368c63d2bde9109cb4dd501f4d5df3e1f728a7b8975a0b061",
      "nodefusion/tests/test_dwarf_generic_base.py": "f9204c883a298151406288885c32c04fd1e7db423fe6cb0747f0f4392ba0fef5",
      "nodefusion/tests/test_dwarf_tombstones.py": "ed608be359e8180a5355cafe93e64d417543cc014461710f55fcd5997bef7295",
      "nodefusion/tests/test_dwarfsrc_location.py": "bcd7c6e8cf00a086fd9c712ffa35aebfbb4e09aaf20ddaedc4f2f5b41604cad9",
      "nodefusion/tests/test_elf_archive.py": "573747576adf2bf4daf66d5f99b6a149eff663ebcd6743b79b4b39d57d20dda5",
      "nodefusion/tests/test_elfid.py": "3efd46b3688e79f7ccc376abb32f20b495b7c074dbd84c5181d67fade3db729c",
      "nodefusion/tests/test_event_kind_pairs_measured_from_runs.py": "ef1a4ce55dc22b8f1073f3d4ac9120b30c68cf0877ba6e4dc5788f81217cdf55",
      "nodefusion/tests/test_event_kind_registry.py": "276bb984ee002622d0284558df13234328a3779853c5b1681d71d827069bfd9d",
      "nodefusion/tests/test_event_kinds.py": "67eee9315e36a7484d1141590701ad8e4e23c4be212b1ac9c0c4949983beef52",
      "nodefusion/tests/test_event_snapshot_throttle.py": "2709d806da483ef8bcdb57ddb6c59a73da83a859b793d7cd5d15891ccfcedd87",
      "nodefusion/tests/test_event_when_branches.py": "0b866c908cbc40deca18830293d161eb9b1f3401792d3fed1b1041e7e9b5e2de",
      "nodefusion/tests/test_exec_iter_map.py": "026e1e908df1884c4d241902c845dd72a43c095e5ab28e94fb7069f621698562",
      "nodefusion/tests/test_exec_walk.py": "67fc662f5b36cff81c1c1ab6a1dfe842081a05a1c3f69a64e8d212da0b7cb985",
      "nodefusion/tests/test_func_events_scope.py": "de9f69b6673c312537ce72cfd6c91baa4355749558609ca0b696c21d8f790198",
      "nodefusion/tests/test_kernel_elf_fixture.py": "ada3976b4b49734884bdb9b3844886e92251240671fe8ae219ed1f70c32c935b",
      "nodefusion/tests/test_kernel_image_fit.py": "32c7bd1bf3b66c7071b36582ca32838af2777157f1ae999a46785e6a39675476",
      "nodefusion/tests/test_kernel_integrations.py": "8e3ecdcf6ad5ea3b7fa44a3e3244a2c9678255b62c02d8cd48de9cfc1189b376",
      "nodefusion/tests/test_kernel_view.py": "4cc544296573cab8df9858947e6d7040fb22aba4b29aac1b43a565b39d9e7ab5",
      "nodefusion/tests/test_kind_three_states.py": "64764f687af895b3b37bc69179f2729f49efe2fb5fc5a24ecc09c41ea38e70ed",
      "nodefusion/tests/test_layout_routing.py": "14631aae85b75dcb1c1c5cec92c344f1c01433e2ae6eb90a3c105ac583372a5c",
      "nodefusion/tests/test_list_arceos.py": "22dbff8051cf7076ad5be6f919ed6d9a0c7a70bd1b6e09ca2f6589b5fb94493f",
      "nodefusion/tests/test_list_wiring.py": "e5f187b746738a5ca027936468df8ab7d2e48e32fe550eca3fa57f217c60d5cb",
      "nodefusion/tests/test_manifest_docs.py": "9be0200ca41d0f0512519356c81911cbbaf2aca63530d99e2aba53de9a1eea37",
      "nodefusion/tests/test_manifest_lint.py": "ad03a1e3519feb79fbeacdbe6576f90b05e7c6c9cb3034c44bd1032163b69888",
      "nodefusion/tests/test_manifest_roles.py": "b1a8fca196f9b37b614f3cd39abe33ad64c58894d1c933996d553c8f573d147e",
      "nodefusion/tests/test_manifest_vocabulary.py": "834eb61d446df47b1c6ebcd4e8a7347eabc24486da052b4be8f5b0660b0f631d",
      "nodefusion/tests/test_metric_deps_are_kinds_not_xv6_names.py": "07f411bb3fcbb14c2eb6c222f4a4928426a86a45d82f11cb242130c49eb6c717",
      "nodefusion/tests/test_no_build.py": "4bc6168bfe29297a6cb93ec91824dcbb9764c9ae8551f3d71446cd97e619d4ad",
      "nodefusion/tests/test_pagetable_arch.py": "9946ed7788d72107d6c6ea81fa4204843e1a0ae291add95259f3e96a0f661eb2",
      "nodefusion/tests/test_path_index_gate.py": "8486e4f1d0d8f91800321a7907ae6797a59d6576cae0614c8db6f91c8ecee9ae",
      "nodefusion/tests/test_percpu_layout.py": "4ecfcf97552e678173bca5fe81eb661bc7f417ba2f4ea4de3c540ba956152495",
      "nodefusion/tests/test_percpu_runtime_layout.py": "ba54784385c6a6716eb3f3317635c8b2dd09b40e5e3e5e6112ca5b92d4e7c62c",
      "nodefusion/tests/test_phys_alloc_gate.py": "a1b68458d8268d052082ad92b80f86753c46423eec7c86c3bdd6019e23b8186a",
      "nodefusion/tests/test_plan_iter_map.py": "58fcacc67e31cf6638ce4d846dccf32312ae17caed1d9470d0ba468fd95a4b5a",
      "nodefusion/tests/test_plan_percpu.py": "5ece34163ede167484cc5edd5d3255d8514935af7a385b171b1b64c6e928140e",
      "nodefusion/tests/test_plan_steps.py": "0241755b6c85983779fad700e2eba5332ab595cc64e6297e8358ba4d15f9dfb7",
      "nodefusion/tests/test_procs_gate.py": "8acd3d3e2398fcd008dd4f5bae735183008eb4cecf6f4c09d0fffaefdf50cd8d",
      "nodefusion/tests/test_procview.py": "9f48157ccc96833a83a42f2f3c3eb26a82bd7f6918c0c3c91a6052c5d9657428",
      "nodefusion/tests/test_profile_from_manifest.py": "9f7cf3aa6cb931445e9e6c763bf2c30b1505e4b728f759514033994b5b60b16c",
      "nodefusion/tests/test_rcore_fs_vocabulary.py": "48c49c9f091d4c964715cf55216b8354ea59697a0ef58ec18850f5e8e89f80c5",
      "nodefusion/tests/test_rcore_inlined_halves.py": "fd61e489c857fcaa5cdbe2466e74b1ba6a547eb7b18fd12fbda80ce927c6f516",
      "nodefusion/tests/test_readers_containers.py": "b0f882dd388f9bc3796b8f5d8c29d72c7dd6b5d8b7866055f810a7bbb2295d2f",
      "nodefusion/tests/test_readers_pointers.py": "e15d27e41ca320d960720f6760ffd0ff6216f658c74ab373148dc3307fa24fd8",
      "nodefusion/tests/test_readers_registry.py": "b139bcca13c15f203e73a427d9d6dc5804b97fc76a28d14025325f191cc4a6a5",
      "nodefusion/tests/test_readers_scalars.py": "3a15bf0648767fb8e7d24044aeb61eb312ace64ab51f834e0a2dfe39072b9cd5",
      "nodefusion/tests/test_record_icount.py": "f76528d2c5a7fc18938d0afc88b5ee9e9626d63801bccc6ced57c1e4b2c823a0",
      "nodefusion/tests/test_recording_tail.py": "833b8e33c6d111b49790beea1ba7ab81b23bd7ea907a2155f981967bcb61a614",
      "nodefusion/tests/test_regenerate_artifact.py": "0098a8fc52b7cd42889036de78ca54cec00064396d701eadd224b3febd3c043b",
      "nodefusion/tests/test_resolve.py": "b14f432eb380c5514b73431978b01b0d715ed9a49f92deb547358fb35dd4d8ec",
      "nodefusion/tests/test_resources.py": "0860476f362a770bd04355592a83fdb15aa9df3787c6c740d407cb8ee4fc817e",
      "nodefusion/tests/test_sampled_counts_are_not_exact.py": "7bd598eb07ef0b067cee3460ef0c61d18b8b918ae697d80b01617cf73eaf0a9a",
      "nodefusion/tests/test_shell_verdict.py": "22baff1ad7cb43b5c5574b424812c40b194e30e3800921429659f7b31cbe20f4",
      "nodefusion/tests/test_snapshot.py": "a1e5383c15e3c3c18222f6e07991712b1f22dfebd3ec67178eb58e4710a921ea",
      "nodefusion/tests/test_source_combine.py": "506ebb5c6dda153e92b854887fb671cf4aa08d33fd8305b359139a1d38ee4349",
      "nodefusion/tests/test_spec_nftrace_registry.py": "c529a4ed1f86bee4951e4699b09d466d51a5bd0623accc49bff9abcfdf15e615",
      "nodefusion/tests/test_split_rawvec.py": "e80f55fc42e246f3f638979500c7c40548eb0f630c512a93b8eaa00df312eac4",
      "nodefusion/tests/test_switch_attribution.py": "c773376888e9dc2ce87ddbebc14ccb0649ea77da189319692e20aff16eddb73d",
      "nodefusion/tests/test_symbols_static_wrapper.py": "cf634a6545564e8949b9129cee0c5f01f3dcf60effd49883c3b908aa28af7f82",
      "nodefusion/tests/test_trace_complete.py": "ac33d1da9aba97c98c68502188522a253709e96cf3fbb8d3c94b85c661cea366",
      "nodefusion/tests/test_trace_streaming.py": "6c972f95a790afac5b9aa84320038bf0eab41b926126334db7290d095f2b1e10",
      "nodefusion/tests/test_units.py": "9bf99f5d3080ed458a97e736e30b84025eb99c1e43e693d9aa33f519896106b3",
      "nodefusion/tests/test_unobservable_does_not_speak_for_the_kernel.py": "448c03147a2306d8205762bdc9a9e0d9e8d5eb0e0c5199d17d80c2f076f87547",
      "nodefusion/tests/test_video_sections.py": "c84c17b471460ae45a25341a8f893768816f57a9eb94e9f9a90e7e20406c4a31",
      "nodefusion/tests/test_watchlist_wire.py": "1e01dd4fde92169c0ab1296dbd249865cddde4173ec8de3c71c39f61356f74c3",
      "nodefusion/tests/test_watchsel.py": "89c8bb635534d079e0502d1c118f32eaa806250d74195a9d99bb71d07aabcd2d",
      "nodefusion/tools/crosscheck_decoder.py": "2f69a3f636d910f93f24939bcd03b41d9b0a17184ce4a4b15250e00f65b47a28",
      "nodefusion/tools/crosscheck_dwarf.py": "b30ecfa371c6959b2522db6d9edabf7e0c7be238feef34ff9411d76a4b4fdf01",
      "nodefusion/tools/crosscheck_layout.py": "d77ebd7aaa1ace070392eca0051f1b34dbf65d08c355edf87101b7e449aa7106",
      "nodefusion/tools/crosscheck_offsetof.py": "732e30d19129e0a1f15e33a2c1f96d940abaa1a26829b8f0d7bc44bf873cdc87",
      "nodefusion/tools/crosscheck_procinfo.py": "c3d6dd588b28d9252ddb712dea0ab8d3212dffed7f9256b9b936860fa0dfb8a9",
      "nodefusion/tools/crosscheck_procs.py": "b497c8fd050c0d6d1e4154eda00c1eef05502d3826546b1165b8a740c6fee562",
      "nodefusion/tools/crosscheck_resources.py": "98b04ac869e3c9e38020728473d480b8ed0b15385bc1d530e466919807ad1ac3",
      "nodefusion/tools/crosscheck_watchsel.py": "52142d49e919f2f040371b404cabdef0d0edbbf977abdcb1af5063b910d0aad8",
      "nodefusion/tools/survey_chapters.py": "6952dbdb8036916acd17bd5f642ea0b62aa10cbbec2bb4227e58f5132683589b",
      "scripts/benchmark_trace.py": "0faf86ba735bc31a20ee8e7ae3d3aad8aef78f0f43cdd33e831658f4e2a71494",
      "scripts/consolidate_artifacts.py": "31700c7f0a1f21fef653e061115b0091aa1a4ce539b9baa9cb48ad914889dadd",
      "scripts/finalize_artifacts.py": "a10224f43e0554eeb347a201dfd29781fbe0a39b979f890cccbec65e76cea9eb",
      "scripts/regenerate_artifact.py": "aed10d1eedc5689b6fd68e84a9bb8ae0c98f7bb8456fd8bd280e8bae470b8e9a"
    },
    "source_archive": {
      "path": "/home/joseph/nf/education-2026A-20260927/ucore-2026A-ch6-basic-observed-source.tar.gz",
      "sha256": "47ab7ae2295cded7fb967a21755839a21944f99f50cec5dc6ec23af765c59d2b",
      "bytes": 1033735
    }
  },
  "ordinary_course_check": {
    "status": "PASS",
    "kernel_elf_sha256": "93a37a4b856ad4051232bb431fa5ca00ff63cf2826b50dc80f79f84e3264e096",
    "driver_sha256": "fb78a56fc8d1bf04b48ae6cfc3545508d64deffa511d0f4a8812252e325fd5a3",
    "course_verifier_sha256": "ee65ff4e4e69d7792619278ea7d2028efd11843f59c18d50fd67eaf49d6338db",
    "argv": [
      "qemu-system-riscv64",
      "-nographic",
      "-machine",
      "virt",
      "-m",
      "128M",
      "-smp",
      "1",
      "-bios",
      "default",
      "-kernel",
      "build/kernel",
      "-drive",
      "file=/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-course.img,if=none,format=raw,id=x0",
      "-device",
      "virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0"
    ],
    "cwd": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed",
    "disk_before_sha256": "6deab196619184e63ab9963fa9eeecba8a1296b04ef3a76c2ded5d72ca905923",
    "completion": "ch6b Usertests passed!",
    "timeout": 120,
    "qemu_exit": 0,
    "stopped_after_suite": true,
    "disk_after": {
      "image": "/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed-course.img",
      "sha256": "f4e3656f0f52c8782a00ba231c710637b59a9fd6c20d7da821261c20f86fbe4a",
      "bytes": 1024000,
      "block_size": 1024,
      "geometry": {
        "total_blocks": 1000,
        "data_blocks": 984,
        "inodes": 200,
        "inode_start": 2,
        "bitmap_start": 15
      },
      "root": {
        "size": 1024,
        "type": 1,
        "direct": [
          16,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "indirect": 0
      },
      "root_data_block_ids": [
        16
      ],
      "files": [
        {
          "name": "ch2b_exit",
          "inode": 2,
          "size": 6721,
          "type": 2,
          "nlink": null,
          "sha256": "4bb7a3be7a2fb8dd764fa8f6229ca17f9deb1bc2f825ef16039e2c1d6742ad2c",
          "data_block_ids": [
            17,
            18,
            19,
            20,
            21,
            22,
            23
          ]
        },
        {
          "name": "ch2b_hello_wor",
          "inode": 3,
          "size": 6785,
          "type": 2,
          "nlink": null,
          "sha256": "f283d76194ecfdff6aae97d900aa517170a167434977e130b4c47d99c72c518e",
          "data_block_ids": [
            24,
            25,
            26,
            27,
            28,
            29,
            30
          ]
        },
        {
          "name": "ch2b_power",
          "inode": 4,
          "size": 6905,
          "type": 2,
          "nlink": null,
          "sha256": "c49901abbc4d919649f64c11387b10ecfeaf931f3bc692b65009cd26eefb8b60",
          "data_block_ids": [
            31,
            32,
            33,
            34,
            35,
            36,
            37
          ]
        },
        {
          "name": "ch3b_sleep",
          "inode": 5,
          "size": 7001,
          "type": 2,
          "nlink": null,
          "sha256": "06c11256b2456a97fee2d14fee621d56cdbfecf9a3b3274b8e76b89d18c81b5e",
          "data_block_ids": [
            38,
            39,
            40,
            41,
            42,
            43,
            44
          ]
        },
        {
          "name": "ch3b_sleep1",
          "inode": 6,
          "size": 6873,
          "type": 2,
          "nlink": null,
          "sha256": "9cb7b78b6e3a871e9d0dea30dfb28249eba92752a866df90524db58f89ef8d60",
          "data_block_ids": [
            45,
            46,
            47,
            48,
            49,
            50,
            51
          ]
        },
        {
          "name": "ch3b_yield0",
          "inode": 7,
          "size": 6841,
          "type": 2,
          "nlink": null,
          "sha256": "f00cf883e3b1542fe7fb26e258f46945c2506500c9ad37e8b609589247f5cc2d",
          "data_block_ids": [
            52,
            53,
            54,
            55,
            56,
            57,
            58
          ]
        },
        {
          "name": "ch3b_yield1",
          "inode": 8,
          "size": 6841,
          "type": 2,
          "nlink": null,
          "sha256": "8a2e9948901e5e7f9f834242114820de5c2b160e63716a64c16217a6c4f07496",
          "data_block_ids": [
            59,
            60,
            61,
            62,
            63,
            64,
            65
          ]
        },
        {
          "name": "ch3b_yield2",
          "inode": 9,
          "size": 6841,
          "type": 2,
          "nlink": null,
          "sha256": "4751f81ce9964235fe0c05c0bc27ff4a6a78225631139ae2d5e2433c0eae6773",
          "data_block_ids": [
            66,
            67,
            68,
            69,
            70,
            71,
            72
          ]
        },
        {
          "name": "ch5b_exec_simp",
          "inode": 10,
          "size": 6769,
          "type": 2,
          "nlink": null,
          "sha256": "c7eb9413e279f64d1b675bef7050ed82bc92c49084ad8bd279931c6189347327",
          "data_block_ids": [
            73,
            74,
            75,
            76,
            77,
            78,
            79
          ]
        },
        {
          "name": "ch5b_exit",
          "inode": 11,
          "size": 7105,
          "type": 2,
          "nlink": null,
          "sha256": "7aa3f31fe179ee79417a82dc9c08745e67a74bf17ca2f1c2c1b4fb7fdf36c6c2",
          "data_block_ids": [
            80,
            81,
            82,
            83,
            84,
            85,
            86
          ]
        },
        {
          "name": "ch5b_forktest0",
          "inode": 12,
          "size": 7417,
          "type": 2,
          "nlink": null,
          "sha256": "a3c216b34c2e4db83f3708fe93112dc8ec0883db132bc64d4e0030028f4fe320",
          "data_block_ids": [
            87,
            88,
            89,
            90,
            91,
            92,
            93,
            94
          ]
        },
        {
          "name": "ch5b_forktest1",
          "inode": 13,
          "size": 7153,
          "type": 2,
          "nlink": null,
          "sha256": "07df25de0f0be372386bceabaab30138adbde19c028a72c4538cd822ccf2ff9b",
          "data_block_ids": [
            95,
            96,
            97,
            98,
            99,
            100,
            101
          ]
        },
        {
          "name": "ch5b_forktest2",
          "inode": 14,
          "size": 7265,
          "type": 2,
          "nlink": null,
          "sha256": "db1c19e3d4bea3edd1c4ae46a40691e2c2c2984f1ac46c996a7fde1b4fab2e3a",
          "data_block_ids": [
            102,
            103,
            104,
            105,
            106,
            107,
            108,
            109
          ]
        },
        {
          "name": "ch5b_getpid",
          "inode": 15,
          "size": 7041,
          "type": 2,
          "nlink": null,
          "sha256": "c16f287518665cad934c95a57b1e20a8744fac7b05f6ab8f87108400c533dacb",
          "data_block_ids": [
            110,
            111,
            112,
            113,
            114,
            115,
            116
          ]
        },
        {
          "name": "ch5b_usertest",
          "inode": 16,
          "size": 7881,
          "type": 2,
          "nlink": null,
          "sha256": "1b563a61eb5902ae6b8f13e671a015d6b293b6010759017478b5f117e284e1bf",
          "data_block_ids": [
            117,
            118,
            119,
            120,
            121,
            122,
            123,
            124
          ]
        },
        {
          "name": "ch6b_args",
          "inode": 17,
          "size": 6793,
          "type": 2,
          "nlink": null,
          "sha256": "b3cc3367ec71c47a312fd3ba28cb5bc26972cf30d9f33fb5b8d52d5c66675686",
          "data_block_ids": [
            125,
            126,
            127,
            128,
            129,
            130,
            131
          ]
        },
        {
          "name": "ch6b_assert",
          "inode": 18,
          "size": 6881,
          "type": 2,
          "nlink": null,
          "sha256": "665a2d6632087de07a5dc6debb0f92dada9b42b5d3c4e3d1a142990888df5ac7",
          "data_block_ids": [
            132,
            133,
            134,
            135,
            136,
            137,
            138
          ]
        },
        {
          "name": "ch6b_cat",
          "inode": 19,
          "size": 6833,
          "type": 2,
          "nlink": null,
          "sha256": "2803811bed6fe04469bcb280b9bec19346f257455d1028f1e29cfd9180103493",
          "data_block_ids": [
            139,
            140,
            141,
            142,
            143,
            144,
            145
          ]
        },
        {
          "name": "ch6b_exec",
          "inode": 20,
          "size": 6881,
          "type": 2,
          "nlink": null,
          "sha256": "5494e1fc16edef77714e48087221fd1ffdd431aed7e24d5f8e2130f3e2315c2b",
          "data_block_ids": [
            146,
            147,
            148,
            149,
            150,
            151,
            152
          ]
        },
        {
          "name": "ch6b_filetest",
          "inode": 21,
          "size": 7089,
          "type": 2,
          "nlink": null,
          "sha256": "3e62b6bd5994d0559c677ea90172d54361e53c55622193bb66c7b910898d5b6e",
          "data_block_ids": [
            153,
            154,
            155,
            156,
            157,
            158,
            159
          ]
        },
        {
          "name": "ch6b_filetest_",
          "inode": 22,
          "size": 7385,
          "type": 2,
          "nlink": null,
          "sha256": "d34d1ab5b63b1c536aa8be4a2feae5ae5afa0da3a936b8d06c5b7e51b2a2175c",
          "data_block_ids": [
            160,
            161,
            162,
            163,
            164,
            165,
            166,
            167
          ]
        },
        {
          "name": "ch6b_panic",
          "inode": 23,
          "size": 6897,
          "type": 2,
          "nlink": null,
          "sha256": "c6d03692c11432b5d937f93e7598da801d96f60266c2312e9009e04fdf230afa",
          "data_block_ids": [
            168,
            169,
            170,
            171,
            172,
            173,
            174
          ]
        },
        {
          "name": "ch6b_usertest",
          "inode": 24,
          "size": 7961,
          "type": 2,
          "nlink": null,
          "sha256": "f8a5af2225543009c4d2b1d7f22ac2e2fa25ef085dcb7cc656518fd667239ab1",
          "data_block_ids": [
            175,
            176,
            177,
            178,
            179,
            180,
            181,
            182
          ]
        },
        {
          "name": "usershell",
          "inode": 25,
          "size": 8273,
          "type": 2,
          "nlink": null,
          "sha256": "58cbbce4d0ae1f505e448e2b1c94236f11fef668f95edec2a40b6142e8cb009a",
          "data_block_ids": [
            183,
            184,
            185,
            186,
            187,
            188,
            189,
            190,
            191
          ]
        },
        {
          "name": "filea",
          "inode": 26,
          "size": 14,
          "type": 2,
          "nlink": null,
          "sha256": "d9014c4624844aa5bac314773d6b689ad467fa4e1d1a50a1b8a99d5a95f72ff5",
          "data_block_ids": [
            192
          ]
        }
      ],
      "inspector_sha256": "87db5ee660fee887db44526a4a915e7deef035dba03528b451ccdff1bfd2f49c"
    },
    "console_sha256": "5b1640ca94fc7fd6ac59e55669d743f5770e40c9e68d328cdf20516fbb75b851"
  },
  "observations": {
    "schema": "nodefusion.filesystem-observations/1",
    "run": "ucore-2026A-ch6-basic-observed",
    "driver_sha256": "2ae4eeb6abff17819d0d360497e23742c08e1976fe27b3e6bd07bf0a9f0683b1",
    "input_sha256": {
      "manifest.json": "696e0b288ad918ba51653fcc064a34101e7a827f55648c0934f225b079ea4fd3",
      "trace.nfb": "559ea5edf6e710050164d059e0fcac233343aff696b86b607d3d24c4a4b389d6",
      "watchlist.json": "d6ad892de006cece06744bd31b73534274caa99ce2d40deaa16949a6a23ca124",
      "kernel_layout.json": "a29a2d2aa7e2e1631d906b130289742d8f675228c9426b0f786f9e5f5a647de2"
    },
    "kernel_elf_sha256": "93a37a4b856ad4051232bb431fa5ca00ff63cf2826b50dc80f79f84e3264e096",
    "record_status": "completed",
    "function_counts": {
      "add_task": 258225,
      "allocpid": 63,
      "allocproc": 63,
      "balloc": 1,
      "bget@0": 636,
      "bin_loader": 21,
      "binit": 1,
      "bmap": 580,
      "bread": 636,
      "brelse": 636,
      "bwrite": 8,
      "clean_bss": 1,
      "console_putchar": 5492,
      "console_write": 180,
      "consputc": 1242,
      "copyin": 1,
      "copyinstr": 208,
      "copyout": 128755,
      "cpuid": 277,
      "curr_proc": 1420418,
      "devintr": 467,
      "dirlink": 1,
      "dirlookup": 24,
      "dirls": 1,
      "dummy": 1807200,
      "either_copyin": 2,
      "either_copyout": 578,
      "exec": 20,
      "exit": 63,
      "fdalloc": 2,
      "fetch_task": 258226,
      "filealloc": 5,
      "fileclose": 191,
      "fileopen": 2,
      "fork": 62,
      "free_desc": 414,
      "freepagetable": 63,
      "freeproc": 63,
      "freerange": 1,
      "freewalk": 315,
      "fsinit": 1,
      "get_cycle": 128726,
      "ialloc": 1,
      "iget": 47,
      "init_queue": 1,
      "init_stdio": 1,
      "inoderead": 1,
      "inodewrite": 1,
      "iput": 24,
      "iupdate": 3,
      "ivalid": 50,
      "kalloc": 635,
      "kerneltrap": 142,
      "kfree": 31651,
      "kinit": 1,
      "kvm_init": 1,
      "kvmmake": 1,
      "kvmmap": 5,
      "load_init_app": 1,
      "main": 1,
      "mappages": 380,
      "memmove": 129548,
      "memset": 32970,
      "namei": 22,
      "nftrace_allocator_state": 1,
      "nftrace_commit_point": 517712,
      "nftrace_page_alloc": 635,
      "nftrace_page_free": 564,
      "nftrace_proc_fork": 62,
      "nftrace_sched_switch": 516450,
      "nodefusion_pagetable_map": 33657,
      "plic_claim": 138,
      "plic_complete": 138,
      "plicinit": 1,
      "pop_queue": 258226,
      "printf": 48,
      "printint": 47,
      "proc_init": 1,
      "push_argv": 21,
      "push_queue": 258225,
      "readi": 469,
      "root_dir": 24,
      "sched": 258225,
      "scheduler": 1,
      "set_next_timer": 330,
      "set_timer": 330,
      "show_all_files": 1,
      "shutdown": 1,
      "stdio_init": 3,
      "strlen": 14,
      "strncmp": 257,
      "strncpy": 1,
      "swtch": 516450,
      "sys_clone": 62,
      "sys_close": 2,
      "sys_exec": 20,
      "sys_getpid": 2,
      "sys_getppid": 2,
      "sys_gettimeofday": 128726,
      "sys_openat": 2,
      "sys_read": 1,
      "sys_wait": 67,
      "sys_write": 181,
      "syscall": 257871,
      "threadid": 2,
      "timer_init": 1,
      "trap_init": 1,
      "useraddr": 74,
      "usertrap": 258196,
      "usertrapret": 258196,
      "uvmcopy": 62,
      "uvmcreate": 63,
      "uvmfree": 63,
      "uvmunmap": 209,
      "virtio_disk_init": 1,
      "virtio_disk_intr": 138,
      "virtio_disk_rw": 138,
      "wait": 67,
      "walk": 163546,
      "walkaddr": 129038,
      "writei": 2,
      "yield": 129068
    },
    "entry_examples": {
      "freerange": [
        {
          "insn": 24843754,
          "cpu": 0,
          "pc": 2149585878,
          "sp": 2149679072,
          "ra": 2149585982,
          "satp": 0,
          "flags": 0,
          "a": [
            2154369024,
            2281701376,
            14757395258967641293,
            2154176512,
            2154364286,
            1,
            2152083456,
            2154180608
          ]
        }
      ],
      "kfree": [
        {
          "insn": 24843775,
          "cpu": 0,
          "pc": 2149585698,
          "sp": 2149679024,
          "ra": 2149585932,
          "satp": 0,
          "flags": 0,
          "a": [
            2154369024,
            2281701376,
            14757395258967641293,
            2154176512,
            18446744073709547520,
            4096,
            2152083456,
            2154180608
          ]
        },
        {
          "insn": 24856117,
          "cpu": 0,
          "pc": 2149585698,
          "sp": 2149679024,
          "ra": 2149585932,
          "satp": 0,
          "flags": 0,
          "a": [
            2154373120,
            1,
            4096,
            2154176512,
            0,
            0,
            2152083456,
            2154180608
          ]
        },
        {
          "insn": 24868459,
          "cpu": 0,
          "pc": 2149585698,
          "sp": 2149679024,
          "ra": 2149585932,
          "satp": 0,
          "flags": 0,
          "a": [
            2154377216,
            2,
            4096,
            2154176512,
            2154369024,
            0,
            2152083456,
            2154180608
          ]
        },
        {
          "insn": 24880801,
          "cpu": 0,
          "pc": 2149585698,
          "sp": 2149679024,
          "ra": 2149585932,
          "satp": 0,
          "flags": 0,
          "a": [
            2154381312,
            3,
            4096,
            2154176512,
            2154373120,
            0,
            2152083456,
            2154180608
          ]
        }
      ],
      "nftrace_allocator_state": [
        {
          "insn": 408519543,
          "cpu": 0,
          "pc": 2149587218,
          "sp": 2149679072,
          "ra": 2149586016,
          "satp": 0,
          "flags": 0,
          "a": [
            31087,
            0,
            4096,
            2154176512,
            2154366016,
            1,
            2152083456,
            2154180608
          ]
        }
      ],
      "kalloc": [
        {
          "insn": 408519590,
          "cpu": 0,
          "pc": 2149586024,
          "sp": 2149679040,
          "ra": 2149597110,
          "satp": 0,
          "flags": 0,
          "a": [
            2149679016,
            0,
            4096,
            2154176512,
            2154366016,
            6,
            2152083456,
            2154180608
          ]
        },
        {
          "insn": 408544343,
          "cpu": 0,
          "pc": 2149586024,
          "sp": 2149678864,
          "ra": 2149596626,
          "satp": 0,
          "flags": 0,
          "a": [
            2281697280,
            268439552,
            1,
            268439552,
            18446744073709547520,
            0,
            2152083456,
            2154180608
          ]
        },
        {
          "insn": 408569038,
          "cpu": 0,
          "pc": 2149586024,
          "sp": 2149678864,
          "ra": 2149596626,
          "satp": 0,
          "flags": 0,
          "a": [
            2281693184,
            0,
            4096,
            268439552,
            2281697280,
            0,
            2152083456,
            2154180608
          ]
        },
        {
          "insn": 408593867,
          "cpu": 0,
          "pc": 2149586024,
          "sp": 2149678864,
          "ra": 2149596626,
          "satp": 0,
          "flags": 0,
          "a": [
            2281697280,
            201326592,
            1,
            201326592,
            18446744073709547520,
            0,
            2152083456,
            2154180608
          ]
        }
      ],
      "nftrace_page_alloc": [
        {
          "insn": 408531927,
          "cpu": 0,
          "pc": 2149587116,
          "sp": 2149679008,
          "ra": 2149586144,
          "satp": 0,
          "flags": 0,
          "a": [
            2281697280,
            31086,
            1,
            2154176512,
            2281701376,
            1,
            2152083456,
            2154180608
          ]
        },
        {
          "insn": 408556680,
          "cpu": 0,
          "pc": 2149587116,
          "sp": 2149678832,
          "ra": 2149586144,
          "satp": 0,
          "flags": 0,
          "a": [
            2281693184,
            31085,
            2,
            268439552,
            2281697280,
            1,
            2152083456,
            2154180608
          ]
        },
        {
          "insn": 408581375,
          "cpu": 0,
          "pc": 2149587116,
          "sp": 2149678832,
          "ra": 2149586144,
          "satp": 0,
          "flags": 0,
          "a": [
            2281689088,
            31084,
            3,
            268439552,
            2281693184,
            1,
            2152083456,
            2154180608
          ]
        },
        {
          "insn": 408606204,
          "cpu": 0,
          "pc": 2149587116,
          "sp": 2149678832,
          "ra": 2149586144,
          "satp": 0,
          "flags": 0,
          "a": [
            2281684992,
            31083,
            4,
            201326592,
            2281689088,
            1,
            2152083456,
            2154180608
          ]
        }
      ],
      "threadid": [
        {
          "insn": 413068167,
          "cpu": 0,
          "pc": 2149588170,
          "sp": 2149679072,
          "ra": 2149597318,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            9223372036855332863,
            2149601280,
            11,
            2149601280,
            2281414656,
            9223372036854775808,
            2152083456,
            2154180608
          ]
        },
        {
          "insn": 413482994,
          "cpu": 0,
          "pc": 2149588170,
          "sp": 2149679088,
          "ra": 2149587050,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            0,
            1,
            0,
            2149982528,
            1,
            2,
            2154352640
          ]
        }
      ],
      "virtio_disk_init": [
        {
          "insn": 413090539,
          "cpu": 0,
          "pc": 2149595226,
          "sp": 2149679088,
          "ra": 2149587010,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            0,
            0,
            2149678833,
            2,
            203427840,
            2149608232,
            1
          ]
        }
      ],
      "bread": [
        {
          "insn": 413115489,
          "cpu": 0,
          "pc": 2149580906,
          "sp": 2149679056,
          "ra": 2149583274,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            1,
            2149708896,
            2149711024,
            2149711872,
            2149711024,
            2149608232,
            1
          ]
        },
        {
          "insn": 413217542,
          "cpu": 0,
          "pc": 2149580906,
          "sp": 2149678944,
          "ra": 2149583818,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            2,
            2149978056,
            0,
            0,
            0,
            1,
            0
          ]
        },
        {
          "insn": 413234194,
          "cpu": 0,
          "pc": 2149580906,
          "sp": 2149678800,
          "ra": 2149584306,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            16,
            2149678912,
            0,
            16,
            0,
            2,
            2154352640
          ]
        },
        {
          "insn": 413250446,
          "cpu": 0,
          "pc": 2149580906,
          "sp": 2149678800,
          "ra": 2149584306,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            16,
            2149678912,
            16,
            32,
            0,
            2,
            2154352640
          ]
        }
      ],
      "virtio_disk_rw": [
        {
          "insn": 413115638,
          "cpu": 0,
          "pc": 2149595652,
          "sp": 2149679024,
          "ra": 2149581092,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149679104,
            0,
            2149708896,
            2149711024,
            2149711024,
            1,
            2149608232,
            1
          ]
        },
        {
          "insn": 413217693,
          "cpu": 0,
          "pc": 2149595652,
          "sp": 2149678912,
          "ra": 2149581092,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149680168,
            0,
            2149978056,
            0,
            2149711024,
            1,
            1,
            0
          ]
        },
        {
          "insn": 413234347,
          "cpu": 0,
          "pc": 2149595652,
          "sp": 2149678768,
          "ra": 2149581092,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149681232,
            0,
            2149678912,
            0,
            2149711024,
            1,
            2,
            2154352640
          ]
        },
        {
          "insn": 413258748,
          "cpu": 0,
          "pc": 2149595652,
          "sp": 2149678864,
          "ra": 2149581092,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149682296,
            0,
            2149978056,
            1,
            2149711024,
            1,
            1,
            2154352640
          ]
        }
      ],
      "virtio_disk_intr": [
        {
          "insn": 413116419,
          "cpu": 0,
          "pc": 2149596248,
          "sp": 2149678592,
          "ra": 2149594212,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            2149596000,
            9223372036854775817,
            2154352768,
            2154352768,
            1,
            2,
            2154352640
          ]
        },
        {
          "insn": 413233449,
          "cpu": 0,
          "pc": 2149596248,
          "sp": 2149678480,
          "ra": 2149594212,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            2149596002,
            9223372036854775817,
            2154352770,
            1,
            1,
            2,
            2154352640
          ]
        },
        {
          "insn": 413249824,
          "cpu": 0,
          "pc": 2149596248,
          "sp": 2149678336,
          "ra": 2149594212,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            2149596002,
            9223372036854775817,
            2154352772,
            1,
            1,
            2,
            2154352640
          ]
        },
        {
          "insn": 413270541,
          "cpu": 0,
          "pc": 2149596248,
          "sp": 2149678432,
          "ra": 2149594212,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            2149596002,
            9223372036854775817,
            2154352774,
            1,
            1,
            2,
            2154352640
          ]
        }
      ],
      "free_desc": [
        {
          "insn": 413116563,
          "cpu": 0,
          "pc": 2149595008,
          "sp": 2149678928,
          "ra": 2149596082,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            2154360832,
            1,
            2154352768,
            0,
            2154352640,
            2,
            2154352640
          ]
        },
        {
          "insn": 413116612,
          "cpu": 0,
          "pc": 2149595008,
          "sp": 2149678928,
          "ra": 2149596082,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            2154360832,
            1,
            2154352640,
            16,
            2154352656,
            2,
            2154352640
          ]
        },
        {
          "insn": 413116661,
          "cpu": 0,
          "pc": 2149595008,
          "sp": 2149678928,
          "ra": 2149596082,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2,
            2154360832,
            1,
            2154352656,
            32,
            2154352672,
            2,
            2154352640
          ]
        },
        {
          "insn": 413233592,
          "cpu": 0,
          "pc": 2149595008,
          "sp": 2149678816,
          "ra": 2149596082,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            2154360832,
            1,
            2154352770,
            0,
            2154352640,
            2,
            2154352640
          ]
        }
      ],
      "allocproc": [
        {
          "insn": 413117290,
          "cpu": 0,
          "pc": 2149588614,
          "sp": 2149679040,
          "ra": 2149586716,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            0,
            0,
            2149679168,
            270544960,
            125000,
            2,
            0
          ]
        },
        {
          "insn": 413663093,
          "cpu": 0,
          "pc": 2149588614,
          "sp": 2152087408,
          "ra": 2149589450,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            220,
            36,
            11416,
            36,
            220,
            10,
            0
          ]
        },
        {
          "insn": 414326527,
          "cpu": 0,
          "pc": 2149588614,
          "sp": 2152087408,
          "ra": 2149589450,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            220,
            30,
            11416,
            30,
            220,
            10,
            0
          ]
        },
        {
          "insn": 416536414,
          "cpu": 0,
          "pc": 2149588614,
          "sp": 2152087408,
          "ra": 2149589450,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            220,
            30,
            11416,
            30,
            220,
            10,
            0
          ]
        }
      ],
      "allocpid": [
        {
          "insn": 413117303,
          "cpu": 0,
          "pc": 2149588382,
          "sp": 2149679008,
          "ra": 2149588664,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            0,
            0,
            2149679168,
            2154344448,
            0,
            2,
            0
          ]
        },
        {
          "insn": 413663110,
          "cpu": 0,
          "pc": 2149588382,
          "sp": 2152087376,
          "ra": 2149588664,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            220,
            36,
            11416,
            2154344448,
            0,
            10,
            0
          ]
        },
        {
          "insn": 414326544,
          "cpu": 0,
          "pc": 2149588382,
          "sp": 2152087376,
          "ra": 2149588664,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            220,
            30,
            11416,
            2154344448,
            0,
            10,
            0
          ]
        },
        {
          "insn": 416536431,
          "cpu": 0,
          "pc": 2149588382,
          "sp": 2152087376,
          "ra": 2149588664,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            220,
            30,
            11416,
            2154344448,
            0,
            10,
            0
          ]
        }
      ],
      "filealloc": [
        {
          "insn": 413217068,
          "cpu": 0,
          "pc": 2149581496,
          "sp": 2149678960,
          "ra": 2149581578,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            0,
            128,
            2149986304,
            4096,
            0,
            2,
            0
          ]
        },
        {
          "insn": 413217120,
          "cpu": 0,
          "pc": 2149581496,
          "sp": 2149678960,
          "ra": 2149581578,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            0,
            8192,
            0,
            1,
            0,
            2,
            0
          ]
        },
        {
          "insn": 413217177,
          "cpu": 0,
          "pc": 2149581496,
          "sp": 2149678960,
          "ra": 2149581578,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2,
            0,
            8192,
            0,
            0,
            0,
            2,
            0
          ]
        },
        {
          "insn": 927879867,
          "cpu": 0,
          "pc": 2149581496,
          "sp": 2152091248,
          "ra": 2149582028,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            2154360832,
            1,
            2154352672,
            2,
            2,
            2,
            2154352640
          ]
        }
      ],
      "readi": [
        {
          "insn": 413234131,
          "cpu": 0,
          "pc": 2149584144,
          "sp": 2149678912,
          "ra": 2149584902,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            0,
            2149678912,
            0,
            16,
            1024,
            2,
            2154352640
          ]
        },
        {
          "insn": 413250383,
          "cpu": 0,
          "pc": 2149584144,
          "sp": 2149678912,
          "ra": 2149584902,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            0,
            2149678912,
            16,
            16,
            1024,
            2,
            2154352640
          ]
        },
        {
          "insn": 413250729,
          "cpu": 0,
          "pc": 2149584144,
          "sp": 2149678912,
          "ra": 2149584902,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            0,
            2149678912,
            32,
            16,
            1024,
            2,
            2154352640
          ]
        },
        {
          "insn": 413251075,
          "cpu": 0,
          "pc": 2149584144,
          "sp": 2149678912,
          "ra": 2149584902,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            0,
            2149678912,
            48,
            16,
            1024,
            2,
            2154352640
          ]
        }
      ],
      "bmap": [
        {
          "insn": 413234167,
          "cpu": 0,
          "pc": 2149583006,
          "sp": 2149678800,
          "ra": 2149584294,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            0,
            2149678912,
            0,
            16,
            1024,
            2,
            2154352640
          ]
        },
        {
          "insn": 413250419,
          "cpu": 0,
          "pc": 2149583006,
          "sp": 2149678800,
          "ra": 2149584294,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            0,
            2149678912,
            16,
            32,
            1024,
            2,
            2154352640
          ]
        },
        {
          "insn": 413250765,
          "cpu": 0,
          "pc": 2149583006,
          "sp": 2149678800,
          "ra": 2149584294,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            0,
            2149678912,
            32,
            48,
            1024,
            2,
            2154352640
          ]
        },
        {
          "insn": 413251111,
          "cpu": 0,
          "pc": 2149583006,
          "sp": 2149678800,
          "ra": 2149584294,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            0,
            2149678912,
            48,
            64,
            1024,
            2,
            2154352640
          ]
        }
      ],
      "nftrace_sched_switch": [
        {
          "insn": 413640496,
          "cpu": 0,
          "pc": 2149587318,
          "sp": 2149679008,
          "ra": 2149589006,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149978112,
            2154180608,
            18446744073709551615,
            1,
            2149982528,
            2154180608,
            1,
            1
          ]
        },
        {
          "insn": 413914599,
          "cpu": 0,
          "pc": 2149587318,
          "sp": 2152087312,
          "ra": 2149589126,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2154180608,
            2149978112,
            1,
            18446744073709551615,
            3,
            4,
            10,
            0
          ]
        },
        {
          "insn": 413914771,
          "cpu": 0,
          "pc": 2149587318,
          "sp": 2149679008,
          "ra": 2149589006,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149978112,
            2154180928,
            18446744073709551615,
            2,
            2149978432,
            2154180928,
            10,
            0
          ]
        },
        {
          "insn": 414283929,
          "cpu": 0,
          "pc": 2149587318,
          "sp": 2152091488,
          "ra": 2149589126,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2154180928,
            2149978112,
            2,
            18446744073709551615,
            5,
            4,
            10,
            12414
          ]
        }
      ],
      "swtch": [
        {
          "insn": 413640527,
          "cpu": 0,
          "pc": 2149599328,
          "sp": 2149679008,
          "ra": 2149589020,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149978152,
            2154180648,
            18446744073709551615,
            1,
            2149982528,
            4,
            1,
            1
          ]
        },
        {
          "insn": 413914631,
          "cpu": 0,
          "pc": 2149599328,
          "sp": 2152087312,
          "ra": 2149589146,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2154180648,
            2149978152,
            1,
            18446744073709551615,
            3,
            4,
            10,
            0
          ]
        },
        {
          "insn": 413914802,
          "cpu": 0,
          "pc": 2149599328,
          "sp": 2149679008,
          "ra": 2149589020,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149978152,
            2154180968,
            18446744073709551615,
            2,
            2149978432,
            4,
            10,
            0
          ]
        },
        {
          "insn": 414283961,
          "cpu": 0,
          "pc": 2149599328,
          "sp": 2152091488,
          "ra": 2149589146,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2154180968,
            2149978152,
            2,
            18446744073709551615,
            5,
            4,
            10,
            12414
          ]
        }
      ],
      "sys_write": [
        {
          "insn": 413641158,
          "cpu": 0,
          "pc": 2149592002,
          "sp": 2152087456,
          "ra": 2149593592,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            11416,
            13,
            11416,
            2149608252,
            2149593576,
            10,
            10
          ]
        },
        {
          "insn": 413647870,
          "cpu": 0,
          "pc": 2149592002,
          "sp": 2152087456,
          "ra": 2149593592,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            11416,
            36,
            11416,
            2149608252,
            2149593576,
            10,
            11451
          ]
        },
        {
          "insn": 414139353,
          "cpu": 0,
          "pc": 2149592002,
          "sp": 2152091552,
          "ra": 2149593592,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            10592,
            36,
            10592,
            2149608252,
            2149593576,
            10,
            10627
          ]
        },
        {
          "insn": 414154815,
          "cpu": 0,
          "pc": 2149592002,
          "sp": 2152091552,
          "ra": 2149593592,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            10592,
            21,
            10592,
            2149608252,
            2149593576,
            10,
            10
          ]
        }
      ],
      "console_write": [
        {
          "insn": 413641197,
          "cpu": 0,
          "pc": 2149591776,
          "sp": 2152087408,
          "ra": 2149592082,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            11416,
            13,
            13,
            11416,
            2,
            2,
            10,
            10
          ]
        },
        {
          "insn": 413647909,
          "cpu": 0,
          "pc": 2149591776,
          "sp": 2152087408,
          "ra": 2149592082,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            11416,
            36,
            36,
            11416,
            2,
            2,
            10,
            11451
          ]
        },
        {
          "insn": 414139392,
          "cpu": 0,
          "pc": 2149591776,
          "sp": 2152091504,
          "ra": 2149592082,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            10592,
            36,
            36,
            10592,
            2,
            2,
            10,
            10627
          ]
        },
        {
          "insn": 414154854,
          "cpu": 0,
          "pc": 2149591776,
          "sp": 2152091504,
          "ra": 2149592082,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            10592,
            21,
            21,
            10592,
            2,
            2,
            10,
            10
          ]
        }
      ],
      "fork": [
        {
          "insn": 413663083,
          "cpu": 0,
          "pc": 2149589422,
          "sp": 2152087440,
          "ra": 2149592696,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            220,
            36,
            11416,
            36,
            220,
            10,
            0
          ]
        },
        {
          "insn": 414326517,
          "cpu": 0,
          "pc": 2149589422,
          "sp": 2152087440,
          "ra": 2149592696,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            220,
            30,
            11416,
            30,
            220,
            10,
            0
          ]
        },
        {
          "insn": 416536404,
          "cpu": 0,
          "pc": 2149589422,
          "sp": 2152087440,
          "ra": 2149592696,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            220,
            30,
            11416,
            30,
            220,
            10,
            0
          ]
        },
        {
          "insn": 885902058,
          "cpu": 0,
          "pc": 2149589422,
          "sp": 2152087440,
          "ra": 2149592696,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            0,
            220,
            31,
            11416,
            31,
            220,
            10,
            0
          ]
        }
      ],
      "nftrace_proc_fork": [
        {
          "insn": 413911903,
          "cpu": 0,
          "pc": 2149587268,
          "sp": 2152087408,
          "ra": 2149589736,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            2,
            2,
            0,
            2149982528,
            2,
            11816,
            0
          ]
        },
        {
          "insn": 414575337,
          "cpu": 0,
          "pc": 2149587268,
          "sp": 2152087408,
          "ra": 2149589736,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            3,
            3,
            0,
            2149982528,
            4,
            11832,
            0
          ]
        },
        {
          "insn": 416785224,
          "cpu": 0,
          "pc": 2149587268,
          "sp": 2152087408,
          "ra": 2149589736,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            4,
            4,
            0,
            2149982528,
            8,
            11848,
            0
          ]
        },
        {
          "insn": 886150878,
          "cpu": 0,
          "pc": 2149587268,
          "sp": 2152087408,
          "ra": 2149589736,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            5,
            5,
            0,
            2149982528,
            439,
            11864,
            0
          ]
        }
      ],
      "sys_exec": [
        {
          "insn": 413915159,
          "cpu": 0,
          "pc": 2149592704,
          "sp": 2152091552,
          "ra": 2149593570,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            11800,
            0,
            11800,
            0,
            36,
            221,
            10,
            0
          ]
        },
        {
          "insn": 414578593,
          "cpu": 0,
          "pc": 2149592704,
          "sp": 2152091552,
          "ra": 2149593570,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            11824,
            0,
            11824,
            0,
            30,
            221,
            10,
            0
          ]
        },
        {
          "insn": 416788480,
          "cpu": 0,
          "pc": 2149592704,
          "sp": 2152091552,
          "ra": 2149593570,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            11840,
            0,
            11840,
            0,
            30,
            221,
            10,
            0
          ]
        },
        {
          "insn": 886154134,
          "cpu": 0,
          "pc": 2149592704,
          "sp": 2152091552,
          "ra": 2149593570,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            11856,
            0,
            11856,
            0,
            31,
            221,
            10,
            0
          ]
        }
      ],
      "exec": [
        {
          "insn": 413915458,
          "cpu": 0,
          "pc": 2149590270,
          "sp": 2152091008,
          "ra": 2149592890,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2152091272,
            2152091016,
            2152091472,
            129261456,
            0,
            2152091288,
            10,
            0
          ]
        },
        {
          "insn": 414578844,
          "cpu": 0,
          "pc": 2149590270,
          "sp": 2152091008,
          "ra": 2149592890,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2152091272,
            2152091016,
            2152091472,
            129261480,
            0,
            2152091282,
            10,
            0
          ]
        },
        {
          "insn": 416788731,
          "cpu": 0,
          "pc": 2149590270,
          "sp": 2152091008,
          "ra": 2149592890,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2152091272,
            2152091016,
            2152091472,
            129261496,
            0,
            2152091282,
            10,
            0
          ]
        },
        {
          "insn": 886154393,
          "cpu": 0,
          "pc": 2149590270,
          "sp": 2152091008,
          "ra": 2149592890,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2152091272,
            2152091016,
            2152091472,
            129261512,
            0,
            2152091283,
            10,
            0
          ]
        }
      ],
      "nftrace_page_free": [
        {
          "insn": 413946602,
          "cpu": 0,
          "pc": 2149587166,
          "sp": 2152090848,
          "ra": 2149585876,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281361408,
            31001,
            86,
            1,
            2281340928,
            2154364936,
            1,
            1
          ]
        },
        {
          "insn": 413959051,
          "cpu": 0,
          "pc": 2149587166,
          "sp": 2152090848,
          "ra": 2149585876,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281349120,
            31002,
            85,
            1,
            2281361408,
            2154364936,
            1,
            1
          ]
        },
        {
          "insn": 413971567,
          "cpu": 0,
          "pc": 2149587166,
          "sp": 2152090848,
          "ra": 2149585876,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281345024,
            31003,
            84,
            1,
            2281349120,
            2154364936,
            1,
            1
          ]
        },
        {
          "insn": 414176760,
          "cpu": 0,
          "pc": 2149587166,
          "sp": 2152091296,
          "ra": 2149585876,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281345024,
            31001,
            86,
            1,
            2281340928,
            2154364936,
            10,
            12414
          ]
        }
      ],
      "freeproc": [
        {
          "insn": 414164002,
          "cpu": 0,
          "pc": 2149589334,
          "sp": 2152091520,
          "ra": 2149590666,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2154180928,
            2,
            0,
            10592,
            2149608252,
            2149593688,
            10,
            12414
          ]
        },
        {
          "insn": 416376379,
          "cpu": 0,
          "pc": 2149589334,
          "sp": 2152091520,
          "ra": 2149590666,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2154180928,
            3,
            0,
            10712,
            2149608252,
            2149593688,
            10,
            12560
          ]
        },
        {
          "insn": 885740661,
          "cpu": 0,
          "pc": 2149589334,
          "sp": 2152091520,
          "ra": 2149590666,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2154180928,
            4,
            0,
            10808,
            2149608252,
            2149593688,
            10,
            12522
          ]
        },
        {
          "insn": 902019215,
          "cpu": 0,
          "pc": 2149589334,
          "sp": 2152091520,
          "ra": 2149590666,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2154180928,
            5,
            0,
            10680,
            2149608252,
            2149593688,
            10,
            12468
          ]
        }
      ],
      "freepagetable": [
        {
          "insn": 414164015,
          "cpu": 0,
          "pc": 2149589252,
          "sp": 2152091472,
          "ra": 2149589366,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281373696,
            5,
            0,
            10592,
            2149608252,
            2149593688,
            10,
            12414
          ]
        },
        {
          "insn": 416376392,
          "cpu": 0,
          "pc": 2149589252,
          "sp": 2152091472,
          "ra": 2149589366,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281373696,
            5,
            0,
            10712,
            2149608252,
            2149593688,
            10,
            12560
          ]
        },
        {
          "insn": 885740674,
          "cpu": 0,
          "pc": 2149589252,
          "sp": 2152091472,
          "ra": 2149589366,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281373696,
            5,
            0,
            10808,
            2149608252,
            2149593688,
            10,
            12522
          ]
        },
        {
          "insn": 902019228,
          "cpu": 0,
          "pc": 2149589252,
          "sp": 2152091472,
          "ra": 2149589366,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281373696,
            5,
            0,
            10680,
            2149608252,
            2149593688,
            10,
            12468
          ]
        }
      ],
      "uvmfree": [
        {
          "insn": 414164248,
          "cpu": 0,
          "pc": 2149598034,
          "sp": 2152091440,
          "ra": 2149589322,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281373696,
            5,
            0,
            0,
            199,
            537497799,
            10,
            12414
          ]
        },
        {
          "insn": 416376625,
          "cpu": 0,
          "pc": 2149598034,
          "sp": 2152091440,
          "ra": 2149589322,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281373696,
            5,
            0,
            0,
            199,
            537497799,
            10,
            12560
          ]
        },
        {
          "insn": 885740907,
          "cpu": 0,
          "pc": 2149598034,
          "sp": 2152091440,
          "ra": 2149589322,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281373696,
            5,
            0,
            0,
            199,
            537497799,
            10,
            12522
          ]
        },
        {
          "insn": 902019461,
          "cpu": 0,
          "pc": 2149598034,
          "sp": 2152091440,
          "ra": 2149589322,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281373696,
            5,
            0,
            0,
            199,
            537497799,
            10,
            12468
          ]
        }
      ],
      "freewalk": [
        {
          "insn": 414201778,
          "cpu": 0,
          "pc": 2149597886,
          "sp": 2152091408,
          "ra": 2149598058,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281373696,
            31003,
            84,
            1,
            2281349120,
            5,
            10,
            12414
          ]
        },
        {
          "insn": 414201799,
          "cpu": 0,
          "pc": 2149597886,
          "sp": 2152091360,
          "ra": 2149597928,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281357312,
            31003,
            84,
            1,
            1,
            556972,
            10,
            12414
          ]
        },
        {
          "insn": 414201820,
          "cpu": 0,
          "pc": 2149597886,
          "sp": 2152091312,
          "ra": 2149597928,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281353216,
            31003,
            84,
            1,
            1,
            556971,
            10,
            12414
          ]
        },
        {
          "insn": 414235556,
          "cpu": 0,
          "pc": 2149597886,
          "sp": 2152091360,
          "ra": 2149597928,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2281369600,
            31005,
            82,
            1,
            1,
            556975,
            10,
            12414
          ]
        }
      ],
      "fileclose": [
        {
          "insn": 414281724,
          "cpu": 0,
          "pc": 2149581300,
          "sp": 2152091472,
          "ra": 2149589398,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149712088,
            31008,
            79,
            1,
            2281369600,
            5,
            10,
            12414
          ]
        },
        {
          "insn": 414281748,
          "cpu": 0,
          "pc": 2149581300,
          "sp": 2152091472,
          "ra": 2149589398,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149712120,
            31008,
            79,
            1,
            2281369600,
            1,
            10,
            12414
          ]
        },
        {
          "insn": 414281772,
          "cpu": 0,
          "pc": 2149581300,
          "sp": 2152091472,
          "ra": 2149589398,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149712152,
            31008,
            79,
            1,
            2281369600,
            1,
            10,
            12414
          ]
        },
        {
          "insn": 416494101,
          "cpu": 0,
          "pc": 2149581300,
          "sp": 2152091472,
          "ra": 2149589398,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149712088,
            31008,
            79,
            1,
            2281369600,
            5,
            10,
            12560
          ]
        }
      ],
      "sys_openat": [
        {
          "insn": 927766279,
          "cpu": 0,
          "pc": 2149593014,
          "sp": 2152091552,
          "ra": 2149593664,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            11456,
            513,
            2,
            513,
            2149608252,
            2149593650,
            10,
            0
          ]
        },
        {
          "insn": 927954672,
          "cpu": 0,
          "pc": 2149593014,
          "sp": 2152091552,
          "ra": 2149593664,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            11456,
            0,
            2,
            0,
            2149608252,
            2149593650,
            0,
            1
          ]
        }
      ],
      "fileopen": [
        {
          "insn": 927766483,
          "cpu": 0,
          "pc": 2149581650,
          "sp": 2152091296,
          "ra": 2149593074,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2152091304,
            513,
            2152091504,
            129261080,
            0,
            2152091309,
            10,
            0
          ]
        },
        {
          "insn": 927954876,
          "cpu": 0,
          "pc": 2149581650,
          "sp": 2152091296,
          "ra": 2149593074,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2152091304,
            0,
            2152091504,
            129261080,
            0,
            2152091309,
            0,
            1
          ]
        }
      ],
      "ialloc": [
        {
          "insn": 927787139,
          "cpu": 0,
          "pc": 2149583394,
          "sp": 2152091248,
          "ra": 2149581810,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            2,
            16,
            2149682296,
            2149709960,
            1024,
            1,
            0
          ]
        }
      ],
      "bwrite": [
        {
          "insn": 927789399,
          "cpu": 0,
          "pc": 2149581098,
          "sp": 2152091184,
          "ra": 2149583590,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149701448,
            0,
            64,
            2149682296,
            2149702192,
            2149702192,
            1,
            0
          ]
        },
        {
          "insn": 927805847,
          "cpu": 0,
          "pc": 2149581098,
          "sp": 2152091216,
          "ra": 2149583728,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149701448,
            2149974408,
            52,
            2149974408,
            0,
            2149702192,
            1,
            2154352640
          ]
        },
        {
          "insn": 927838840,
          "cpu": 0,
          "pc": 2149581098,
          "sp": 2152091056,
          "ra": 2149584512,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149681232,
            2152091184,
            16,
            2152091184,
            0,
            2149681672,
            2,
            2154352640
          ]
        },
        {
          "insn": 927869410,
          "cpu": 0,
          "pc": 2149581098,
          "sp": 2152091024,
          "ra": 2149583728,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149680168,
            2149974332,
            52,
            2149974332,
            0,
            2149680336,
            2,
            2154352640
          ]
        }
      ],
      "dirlink": [
        {
          "insn": 927810121,
          "cpu": 0,
          "pc": 2149585262,
          "sp": 2152091248,
          "ra": 2149581862,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            2152091304,
            26,
            2154352672,
            2149680168,
            2149711872,
            2,
            2154352640
          ]
        }
      ],
      "writei": [
        {
          "insn": 927838593,
          "cpu": 0,
          "pc": 2149584394,
          "sp": 2152091168,
          "ra": 2149585468,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974256,
            0,
            2152091168,
            384,
            16,
            18446744071566675504,
            2,
            2154352640
          ]
        },
        {
          "insn": 927880498,
          "cpu": 0,
          "pc": 2149584394,
          "sp": 2152091456,
          "ra": 2149582268,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149974332,
            1,
            10792,
            0,
            14,
            1,
            0,
            10806
          ]
        }
      ],
      "fdalloc": [
        {
          "insn": 927879916,
          "cpu": 0,
          "pc": 2149590742,
          "sp": 2152091248,
          "ra": 2149582076,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149712184,
            2154360832,
            8192,
            0,
            2149712188,
            1,
            2,
            2154352640
          ]
        },
        {
          "insn": 927964114,
          "cpu": 0,
          "pc": 2149590742,
          "sp": 2152091248,
          "ra": 2149582076,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149712184,
            2149702192,
            8192,
            0,
            2149712188,
            0,
            1,
            1
          ]
        }
      ],
      "inodewrite": [
        {
          "insn": 927880475,
          "cpu": 0,
          "pc": 2149582218,
          "sp": 2152091504,
          "ra": 2149592154,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149712184,
            10792,
            14,
            10792,
            1,
            1,
            0,
            10806
          ]
        }
      ],
      "balloc": [
        {
          "insn": 927880552,
          "cpu": 0,
          "pc": 2149582676,
          "sp": 2152091296,
          "ra": 2149583142,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            1,
            0,
            10792,
            0,
            274432,
            0,
            0,
            10806
          ]
        }
      ],
      "sys_close": [
        {
          "insn": 927954231,
          "cpu": 0,
          "pc": 2149593088,
          "sp": 2152091552,
          "ra": 2149593682,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            3,
            57,
            3,
            10792,
            2149608252,
            2149593670,
            0,
            1
          ]
        },
        {
          "insn": 927965517,
          "cpu": 0,
          "pc": 2149593088,
          "sp": 2152091552,
          "ra": 2149593682,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            3,
            57,
            3,
            18374403900871474943,
            2149608252,
            2149593670,
            0,
            1
          ]
        }
      ],
      "sys_read": [
        {
          "insn": 927964583,
          "cpu": 0,
          "pc": 2149592220,
          "sp": 2152091552,
          "ra": 2149593644,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            3,
            20384,
            15,
            20384,
            2149608252,
            2149593628,
            0,
            1
          ]
        }
      ],
      "inoderead": [
        {
          "insn": 927964621,
          "cpu": 0,
          "pc": 2149582292,
          "sp": 2152091504,
          "ra": 2149592372,
          "satp": 9223372036855332863,
          "flags": 0,
          "a": [
            2149712184,
            20384,
            15,
            20384,
            1,
            1,
            0,
            1
          ]
        }
      ]
    },
    "watch_hits": 7897191,
    "entries_replaced_by_semantic_channel": {
      "fork": 62,
      "swtch": 516450,
      "kfree": 31651,
      "kalloc": 635,
      "nftrace_commit_point": 517712
    },
    "raw_events": 7612572,
    "raw_event_counts": {
      "bcache.get": 636,
      "bcache.init": 1,
      "bcache.read": 636,
      "bcache.release": 636,
      "bcache.write": 8,
      "disk.balloc": 1,
      "disk.interrupt": 138,
      "disk.io": 138,
      "file.alloc": 5,
      "file.close": 191,
      "file.read": 1,
      "file.write": 1,
      "firmware.trap": 19,
      "func.add_task": 258225,
      "func.allocpid": 63,
      "func.clean_bss": 1,
      "func.console_putchar": 5492,
      "func.console_write": 180,
      "func.consputc": 1242,
      "func.cpuid": 277,
      "func.curr_proc": 1420418,
      "func.dirlink": 1,
      "func.dirls": 1,
      "func.dummy": 1807200,
      "func.either_copyin": 2,
      "func.either_copyout": 578,
      "func.fdalloc": 2,
      "func.fetch_task": 258226,
      "func.fileopen": 2,
      "func.free_desc": 414,
      "func.freepagetable": 63,
      "func.freerange": 1,
      "func.freewalk": 315,
      "func.fsinit": 1,
      "func.get_cycle": 128726,
      "func.init_queue": 1,
      "func.init_stdio": 1,
      "func.ivalid": 50,
      "func.kinit": 1,
      "func.kvmmap": 5,
      "func.load_init_app": 1,
      "func.main": 1,
      "func.memmove": 129548,
      "func.memset": 32970,
      "func.nftrace_allocator_state": 1,
      "func.nftrace_page_alloc": 635,
      "func.nftrace_page_free": 564,
      "func.nftrace_proc_fork": 62,
      "func.nftrace_sched_switch": 516450,
      "func.plic_claim": 138,
      "func.plic_complete": 138,
      "func.plicinit": 1,
      "func.pop_queue": 258226,
      "func.printf": 48,
      "func.printint": 47,
      "func.push_argv": 21,
      "func.push_queue": 258225,
      "func.root_dir": 24,
      "func.set_next_timer": 330,
      "func.show_all_files": 1,
      "func.stdio_init": 3,
      "func.strlen": 14,
      "func.strncmp": 257,
      "func.strncpy": 1,
      "func.sys_getpid": 2,
      "func.sys_getppid": 2,
      "func.sys_gettimeofday": 128726,
      "func.threadid": 2,
      "func.timer_init": 1,
      "func.useraddr": 74,
      "func.uvmcreate": 63,
      "func.virtio_disk_init": 1,
      "func.walk": 163546,
      "inode.alloc": 1,
      "inode.bmap": 580,
      "inode.dirlookup": 24,
      "inode.get": 47,
      "inode.namei": 22,
      "inode.put": 24,
      "inode.read": 469,
      "inode.update": 3,
      "inode.write": 2,
      "interrupt.clock": 330,
      "interrupt.dispatch": 467,
      "interrupt.external": 138,
      "interrupt.timer": 329,
      "kernel.shutdown": 1,
      "pagetable.map": 33657,
      "phys.alloc": 635,
      "phys.free": 564,
      "proc.alloc": 63,
      "proc.exec": 20,
      "proc.exit": 63,
      "proc.fork": 62,
      "proc.free": 63,
      "proc.initproc": 1,
      "proc.wait": 67,
      "sbi.call": 5823,
      "sched.enter": 1,
      "sched.switch": 516450,
      "sched.yield": 129068,
      "sched.yield_to_scheduler": 258225,
      "syscall.close": 2,
      "syscall.dispatch": 257871,
      "syscall.enter": 257871,
      "syscall.exec": 20,
      "syscall.fork": 62,
      "syscall.open": 2,
      "syscall.read": 1,
      "syscall.waitpid": 67,
      "syscall.write": 181,
      "trap.init": 1,
      "trap.kerneltrap": 142,
      "trap.userret": 258196,
      "trap.usertrap": 258196,
      "vm.copy": 62,
      "vm.copyin": 1,
      "vm.copyout": 128755,
      "vm.free": 63,
      "vm.from_elf": 21,
      "vm.init": 1,
      "vm.kernel_init": 1,
      "vm.map": 380,
      "vm.translate_buffer": 129038,
      "vm.translate_str": 208,
      "vm.unmap": 209
    },
    "function_entries": {
      "raw": 6830681,
      "retained": 106783
    },
    "function_returns": {
      "raw": 7830906,
      "matched": 5277996,
      "nested_entries": 5176424
    },
    "nftrace_counts": {
      "6": 1,
      "1": 635,
      "4": 516450,
      "2": 62,
      "5": 564
    },
    "allocation_balance": {
      "initial_free_pages": 31087,
      "successful_allocations": 635,
      "allocation_failures": 0,
      "frees": 564,
      "peak_used_pages": 127,
      "final_used_pages": 71,
      "every_record_balanced": true
    },
    "forks": [
      {
        "insn": 413911916,
        "parent_pid": 1,
        "child_pid": 2
      },
      {
        "insn": 414575350,
        "parent_pid": 1,
        "child_pid": 3
      },
      {
        "insn": 416785237,
        "parent_pid": 1,
        "child_pid": 4
      },
      {
        "insn": 886150891,
        "parent_pid": 1,
        "child_pid": 5
      },
      {
        "insn": 902428913,
        "parent_pid": 1,
        "child_pid": 6
      },
      {
        "insn": 903117734,
        "parent_pid": 1,
        "child_pid": 7
      },
      {
        "insn": 903819150,
        "parent_pid": 1,
        "child_pid": 8
      },
      {
        "insn": 904517745,
        "parent_pid": 1,
        "child_pid": 9
      },
      {
        "insn": 904988792,
        "parent_pid": 9,
        "child_pid": 10
      },
      {
        "insn": 905549617,
        "parent_pid": 1,
        "child_pid": 11
      },
      {
        "insn": 906074866,
        "parent_pid": 11,
        "child_pid": 12
      },
      {
        "insn": 906666602,
        "parent_pid": 1,
        "child_pid": 13
      },
      {
        "insn": 907159790,
        "parent_pid": 13,
        "child_pid": 14
      },
      {
        "insn": 907419170,
        "parent_pid": 13,
        "child_pid": 15
      },
      {
        "insn": 907678554,
        "parent_pid": 13,
        "child_pid": 16
      },
      {
        "insn": 907937942,
        "parent_pid": 13,
        "child_pid": 17
      },
      {
        "insn": 908708244,
        "parent_pid": 13,
        "child_pid": 18
      },
      {
        "insn": 908967640,
        "parent_pid": 13,
        "child_pid": 19
      },
      {
        "insn": 909227040,
        "parent_pid": 13,
        "child_pid": 20
      },
      {
        "insn": 909486444,
        "parent_pid": 13,
        "child_pid": 21
      },
      {
        "insn": 909745852,
        "parent_pid": 13,
        "child_pid": 22
      },
      {
        "insn": 910643073,
        "parent_pid": 13,
        "child_pid": 23
      },
      {
        "insn": 910902489,
        "parent_pid": 13,
        "child_pid": 24
      },
      {
        "insn": 911161909,
        "parent_pid": 13,
        "child_pid": 25
      },
      {
        "insn": 911421333,
        "parent_pid": 13,
        "child_pid": 26
      },
      {
        "insn": 912192961,
        "parent_pid": 13,
        "child_pid": 27
      },
      {
        "insn": 912452393,
        "parent_pid": 13,
        "child_pid": 28
      },
      {
        "insn": 912711829,
        "parent_pid": 13,
        "child_pid": 29
      },
      {
        "insn": 912971269,
        "parent_pid": 13,
        "child_pid": 30
      },
      {
        "insn": 913230713,
        "parent_pid": 13,
        "child_pid": 31
      },
      {
        "insn": 914130108,
        "parent_pid": 13,
        "child_pid": 32
      },
      {
        "insn": 914389560,
        "parent_pid": 13,
        "child_pid": 33
      },
      {
        "insn": 914649016,
        "parent_pid": 13,
        "child_pid": 34
      },
      {
        "insn": 914908476,
        "parent_pid": 13,
        "child_pid": 35
      },
      {
        "insn": 915680582,
        "parent_pid": 13,
        "child_pid": 36
      },
      {
        "insn": 915940050,
        "parent_pid": 13,
        "child_pid": 37
      },
      {
        "insn": 916199522,
        "parent_pid": 13,
        "child_pid": 38
      },
      {
        "insn": 916458998,
        "parent_pid": 13,
        "child_pid": 39
      },
      {
        "insn": 916718478,
        "parent_pid": 13,
        "child_pid": 40
      },
      {
        "insn": 917617927,
        "parent_pid": 13,
        "child_pid": 41
      },
      {
        "insn": 917877415,
        "parent_pid": 13,
        "child_pid": 42
      },
      {
        "insn": 918136907,
        "parent_pid": 13,
        "child_pid": 43
      },
      {
        "insn": 918396403,
        "parent_pid": 13,
        "child_pid": 44
      },
      {
        "insn": 919168563,
        "parent_pid": 13,
        "child_pid": 45
      },
      {
        "insn": 919428067,
        "parent_pid": 13,
        "child_pid": 46
      },
      {
        "insn": 919687575,
        "parent_pid": 13,
        "child_pid": 47
      },
      {
        "insn": 919947087,
        "parent_pid": 13,
        "child_pid": 48
      },
      {
        "insn": 920206603,
        "parent_pid": 13,
        "child_pid": 49
      },
      {
        "insn": 921106106,
        "parent_pid": 13,
        "child_pid": 50
      },
      {
        "insn": 921365630,
        "parent_pid": 13,
        "child_pid": 51
      },
      {
        "insn": 921625158,
        "parent_pid": 13,
        "child_pid": 52
      },
      {
        "insn": 921884690,
        "parent_pid": 13,
        "child_pid": 53
      },
      {
        "insn": 922855661,
        "parent_pid": 1,
        "child_pid": 54
      },
      {
        "insn": 923378766,
        "parent_pid": 54,
        "child_pid": 55
      },
      {
        "insn": 923628012,
        "parent_pid": 54,
        "child_pid": 56
      },
      {
        "insn": 924531209,
        "parent_pid": 54,
        "child_pid": 57
      },
      {
        "insn": 924780463,
        "parent_pid": 54,
        "child_pid": 58
      },
      {
        "insn": 925029721,
        "parent_pid": 54,
        "child_pid": 59
      },
      {
        "insn": 926347173,
        "parent_pid": 1,
        "child_pid": 60
      },
      {
        "insn": 926898428,
        "parent_pid": 60,
        "child_pid": 61
      },
      {
        "insn": 927533741,
        "parent_pid": 1,
        "child_pid": 62
      },
      {
        "insn": 928387392,
        "parent_pid": 1,
        "child_pid": 63
      }
    ],
    "switches": {
      "idle_to_process": 258225,
      "process_to_idle": 258225
    },
    "faults": [],
    "filesystem_changes": {
      "unchanged_files": [
        "ch2b_exit",
        "ch2b_hello_wor",
        "ch2b_power",
        "ch3b_sleep",
        "ch3b_sleep1",
        "ch3b_yield0",
        "ch3b_yield1",
        "ch3b_yield2",
        "ch5b_exec_simp",
        "ch5b_exit",
        "ch5b_forktest0",
        "ch5b_forktest1",
        "ch5b_forktest2",
        "ch5b_getpid",
        "ch5b_usertest",
        "ch6b_args",
        "ch6b_assert",
        "ch6b_cat",
        "ch6b_exec",
        "ch6b_filetest",
        "ch6b_filetest_",
        "ch6b_panic",
        "ch6b_usertest",
        "usershell"
      ],
      "added_files": [
        {
          "name": "filea",
          "inode": 26,
          "size": 14,
          "type": 2,
          "nlink": null,
          "sha256": "d9014c4624844aa5bac314773d6b689ad467fa4e1d1a50a1b8a99d5a95f72ff5",
          "data_block_ids": [
            192
          ]
        }
      ],
      "removed_files": [],
      "changed_files": []
    },
    "filesystem_chain_examples": [
      {
        "frames": [
          "readi",
          "bmap"
        ],
        "retained_occurrences": 72
      },
      {
        "frames": [
          "kerneltrap",
          "devintr",
          "virtio_disk_intr"
        ],
        "retained_occurrences": 68
      },
      {
        "frames": [
          "readi",
          "bread"
        ],
        "retained_occurrences": 65
      },
      {
        "frames": [
          "usertrap",
          "syscall",
          "sys_exec",
          "exec",
          "namei",
          "dirlookup",
          "readi"
        ],
        "retained_occurrences": 5
      },
      {
        "frames": [
          "bwrite",
          "virtio_disk_rw"
        ],
        "retained_occurrences": 5
      },
      {
        "frames": [
          "init_stdio",
          "stdio_init",
          "filealloc"
        ],
        "retained_occurrences": 3
      },
      {
        "frames": [
          "usertrap",
          "syscall",
          "sys_exec",
          "exec",
          "namei",
          "dirlookup",
          "readi",
          "bmap"
        ],
        "retained_occurrences": 2
      },
      {
        "frames": [
          "usertrap",
          "syscall",
          "sys_openat",
          "fileopen"
        ],
        "retained_occurrences": 2
      },
      {
        "frames": [
          "usertrap",
          "syscall",
          "sys_close",
          "fileclose",
          "iput"
        ],
        "retained_occurrences": 2
      },
      {
        "frames": [
          "dirlookup",
          "readi"
        ],
        "retained_occurrences": 1
      },
      {
        "frames": [
          "dirlookup",
          "readi",
          "bmap"
        ],
        "retained_occurrences": 1
      },
      {
        "frames": [
          "show_all_files",
          "root_dir"
        ],
        "retained_occurrences": 1
      },
      {
        "frames": [
          "show_all_files",
          "root_dir",
          "iget"
        ],
        "retained_occurrences": 1
      },
      {
        "frames": [
          "show_all_files",
          "root_dir",
          "ivalid"
        ],
        "retained_occurrences": 1
      },
      {
        "frames": [
          "show_all_files",
          "dirls"
        ],
        "retained_occurrences": 1
      },
      {
        "frames": [
          "show_all_files",
          "dirls",
          "readi",
          "bread"
        ],
        "retained_occurrences": 1
      },
      {
        "frames": [
          "usertrap",
          "syscall",
          "sys_openat",
          "fileopen",
          "root_dir"
        ],
        "retained_occurrences": 1
      },
      {
        "frames": [
          "usertrap",
          "syscall",
          "sys_openat",
          "fileopen",
          "root_dir",
          "iget"
        ],
        "retained_occurrences": 1
      },
      {
        "frames": [
          "usertrap",
          "syscall",
          "sys_openat",
          "fileopen",
          "root_dir",
          "ivalid"
        ],
        "retained_occurrences": 1
      },
      {
        "frames": [
          "usertrap",
          "syscall",
          "sys_openat",
          "fileopen",
          "ivalid"
        ],
        "retained_occurrences": 1
      }
    ],
    "state_count": 4663,
    "coverage": {
      "status": "complete",
      "percent": 100.0,
      "passed": 2374681,
      "total": 2374681,
      "metrics": {
        "covered": 18,
        "applicable": 18,
        "not_applicable": [
          "log_commits"
        ],
        "missing": [],
        "sampled": []
      },
      "semantic_events": {
        "raw": 2240961,
        "unknown": 0,
        "unknown_fields": {},
        "dropped_from_interactive": 2115961
      },
      "snapshots": {
        "checked": 4663,
        "incomplete": 0,
        "physical_memory": 0,
        "physical_counters": 0,
        "processes": 0,
        "resources": 0,
        "pre_initialization": {
          "physical_memory": 0,
          "physical_counters": 2042,
          "processes": 0,
          "resources": 0
        }
      },
      "snapshot_not_applicable": [],
      "manifest_fields": {
        "cells": 98434,
        "states": {
          "absent": 7031,
          "empty": 4282,
          "present": 87121
        },
        "not_applicable": 7031,
        "unresolved": 0
      },
      "full_watch_scope": true,
      "function_watch_drops": 0,
      "function_stacks_available": true,
      "observation_points": {
        "unresolved": [],
        "reported_missing": 18,
        "layout_missing": []
      },
      "blockers": []
    }
  },
  "report": {
    "schema": "nodefusion.artifact-evidence/1",
    "run": "ucore-2026A-ch6-basic-observed",
    "kernel_kind": "ucore",
    "source_sha256": {
      "trace.nfb": "559ea5edf6e710050164d059e0fcac233343aff696b86b607d3d24c4a4b389d6",
      "manifest.json": "696e0b288ad918ba51653fcc064a34101e7a827f55648c0934f225b079ea4fd3",
      "watchlist.json": "d6ad892de006cece06744bd31b73534274caa99ce2d40deaa16949a6a23ca124",
      "kernel_layout.json": "a29a2d2aa7e2e1631d906b130289742d8f675228c9426b0f786f9e5f5a647de2"
    },
    "kernel_elf_sha256": "93a37a4b856ad4051232bb431fa5ca00ff63cf2826b50dc80f79f84e3264e096",
    "archive_bytes": {
      "trace.nfb": 1472524357,
      "kernel_elf": 151408
    },
    "html_sha256": "27cd13350cc846dea34ea57e6d1206130118d4d80ac2e0786eb3aac50358d8b6",
    "html_bytes": 2923078,
    "function_trace": {
      "kind": "return-matched observed frames",
      "raw": 6830681,
      "retained": 106783,
      "returns": 7830906,
      "matched_returns": 5277996,
      "nested_entries": 5176424
    },
    "event_selection": {
      "applied": true,
      "policy": "kind-preserving/systematic-v5",
      "raw": 7612572,
      "retained": 150000,
      "dropped": 7462572,
      "target_limit": 150000,
      "minimum_spare": 25000,
      "always_keep": "all events of kinds whose count fits their per-kind budget",
      "priority_raw": 2240961,
      "spare_raw": 5371611,
      "semantic_budget": 125000,
      "minimum_per_kind": 64,
      "semantic_kind_budgets": {
        "bcache.get": 95,
        "bcache.init": 1,
        "bcache.read": 95,
        "bcache.release": 95,
        "bcache.write": 8,
        "disk.balloc": 1,
        "disk.interrupt": 68,
        "disk.io": 68,
        "file.alloc": 5,
        "file.close": 71,
        "file.read": 1,
        "file.write": 1,
        "firmware.trap": 19,
        "inode.alloc": 1,
        "inode.bmap": 92,
        "inode.dirlookup": 24,
        "inode.get": 47,
        "inode.namei": 22,
        "inode.put": 24,
        "inode.read": 86,
        "inode.update": 3,
        "inode.write": 2,
        "interrupt.clock": 79,
        "interrupt.dispatch": 86,
        "interrupt.external": 68,
        "interrupt.timer": 79,
        "kernel.shutdown": 1,
        "pagetable.map": 1899,
        "phys.alloc": 95,
        "phys.free": 92,
        "proc.alloc": 63,
        "proc.exec": 20,
        "proc.exit": 63,
        "proc.fork": 62,
        "proc.free": 63,
        "proc.initproc": 1,
        "proc.wait": 64,
        "sbi.call": 378,
        "sched.enter": 1,
        "sched.switch": 28276,
        "sched.yield": 7112,
        "sched.yield_to_scheduler": 14168,
        "syscall.close": 2,
        "syscall.dispatch": 14149,
        "syscall.enter": 14148,
        "syscall.exec": 20,
        "syscall.fork": 62,
        "syscall.open": 2,
        "syscall.read": 1,
        "syscall.waitpid": 64,
        "syscall.write": 70,
        "trap.init": 1,
        "trap.kerneltrap": 68,
        "trap.userret": 14167,
        "trap.usertrap": 14167,
        "vm.copy": 62,
        "vm.copyin": 1,
        "vm.copyout": 7095,
        "vm.free": 63,
        "vm.from_elf": 21,
        "vm.init": 1,
        "vm.kernel_init": 1,
        "vm.map": 82,
        "vm.translate_buffer": 7110,
        "vm.translate_str": 72,
        "vm.unmap": 72
      },
      "diagnostic_kind_budgets": {
        "func.add_task": 1163,
        "func.allocpid": 63,
        "func.clean_bss": 1,
        "func.console_putchar": 87,
        "func.console_write": 64,
        "func.consputc": 69,
        "func.cpuid": 64,
        "func.curr_proc": 6107,
        "func.dirlink": 1,
        "func.dirls": 1,
        "func.dummy": 7753,
        "func.either_copyin": 2,
        "func.either_copyout": 67,
        "func.fdalloc": 2,
        "func.fetch_task": 1163,
        "func.fileopen": 2,
        "func.free_desc": 65,
        "func.freepagetable": 63,
        "func.freerange": 1,
        "func.freewalk": 65,
        "func.fsinit": 1,
        "func.get_cycle": 612,
        "func.init_queue": 1,
        "func.init_stdio": 1,
        "func.ivalid": 50,
        "func.kinit": 1,
        "func.kvmmap": 5,
        "func.load_init_app": 1,
        "func.main": 1,
        "func.memmove": 615,
        "func.memset": 204,
        "func.nftrace_allocator_state": 1,
        "func.nftrace_page_alloc": 66,
        "func.nftrace_page_free": 67,
        "func.nftrace_proc_fork": 62,
        "func.nftrace_sched_switch": 2261,
        "func.plic_claim": 65,
        "func.plic_complete": 64,
        "func.plicinit": 1,
        "func.pop_queue": 1162,
        "func.printf": 48,
        "func.printint": 47,
        "func.push_argv": 21,
        "func.push_queue": 1162,
        "func.root_dir": 24,
        "func.set_next_timer": 65,
        "func.show_all_files": 1,
        "func.stdio_init": 3,
        "func.strlen": 14,
        "func.strncmp": 64,
        "func.strncpy": 1,
        "func.sys_getpid": 2,
        "func.sys_getppid": 2,
        "func.sys_gettimeofday": 611,
        "func.threadid": 2,
        "func.timer_init": 1,
        "func.useraddr": 64,
        "func.uvmcreate": 63,
        "func.virtio_disk_init": 1,
        "func.walk": 760
      },
      "minimum_per_diagnostic_kind": 64,
      "semantic_retained": 125000,
      "spare_budget": 25000,
      "stride": null,
      "retained_kinds": {
        "bcache.get": 95,
        "bcache.init": 1,
        "bcache.read": 95,
        "bcache.release": 95,
        "bcache.write": 8,
        "disk.balloc": 1,
        "disk.interrupt": 68,
        "disk.io": 68,
        "file.alloc": 5,
        "file.close": 71,
        "file.read": 1,
        "file.write": 1,
        "firmware.trap": 19,
        "func.add_task": 1163,
        "func.allocpid": 63,
        "func.clean_bss": 1,
        "func.console_putchar": 87,
        "func.console_write": 64,
        "func.consputc": 69,
        "func.cpuid": 64,
        "func.curr_proc": 6107,
        "func.dirlink": 1,
        "func.dirls": 1,
        "func.dummy": 7753,
        "func.either_copyin": 2,
        "func.either_copyout": 67,
        "func.fdalloc": 2,
        "func.fetch_task": 1163,
        "func.fileopen": 2,
        "func.free_desc": 65,
        "func.freepagetable": 63,
        "func.freerange": 1,
        "func.freewalk": 65,
        "func.fsinit": 1,
        "func.get_cycle": 612,
        "func.init_queue": 1,
        "func.init_stdio": 1,
        "func.ivalid": 50,
        "func.kinit": 1,
        "func.kvmmap": 5,
        "func.load_init_app": 1,
        "func.main": 1,
        "func.memmove": 615,
        "func.memset": 204,
        "func.nftrace_allocator_state": 1,
        "func.nftrace_page_alloc": 66,
        "func.nftrace_page_free": 67,
        "func.nftrace_proc_fork": 62,
        "func.nftrace_sched_switch": 2261,
        "func.plic_claim": 65,
        "func.plic_complete": 64,
        "func.plicinit": 1,
        "func.pop_queue": 1162,
        "func.printf": 48,
        "func.printint": 47,
        "func.push_argv": 21,
        "func.push_queue": 1162,
        "func.root_dir": 24,
        "func.set_next_timer": 65,
        "func.show_all_files": 1,
        "func.stdio_init": 3,
        "func.strlen": 14,
        "func.strncmp": 64,
        "func.strncpy": 1,
        "func.sys_getpid": 2,
        "func.sys_getppid": 2,
        "func.sys_gettimeofday": 611,
        "func.threadid": 2,
        "func.timer_init": 1,
        "func.useraddr": 64,
        "func.uvmcreate": 63,
        "func.virtio_disk_init": 1,
        "func.walk": 760,
        "inode.alloc": 1,
        "inode.bmap": 92,
        "inode.dirlookup": 24,
        "inode.get": 47,
        "inode.namei": 22,
        "inode.put": 24,
        "inode.read": 86,
        "inode.update": 3,
        "inode.write": 2,
        "interrupt.clock": 79,
        "interrupt.dispatch": 86,
        "interrupt.external": 68,
        "interrupt.timer": 79,
        "kernel.shutdown": 1,
        "pagetable.map": 1899,
        "phys.alloc": 95,
        "phys.free": 92,
        "proc.alloc": 63,
        "proc.exec": 20,
        "proc.exit": 63,
        "proc.fork": 62,
        "proc.free": 63,
        "proc.initproc": 1,
        "proc.wait": 64,
        "sbi.call": 378,
        "sched.enter": 1,
        "sched.switch": 28276,
        "sched.yield": 7112,
        "sched.yield_to_scheduler": 14168,
        "syscall.close": 2,
        "syscall.dispatch": 14149,
        "syscall.enter": 14148,
        "syscall.exec": 20,
        "syscall.fork": 62,
        "syscall.open": 2,
        "syscall.read": 1,
        "syscall.waitpid": 64,
        "syscall.write": 70,
        "trap.init": 1,
        "trap.kerneltrap": 68,
        "trap.userret": 14167,
        "trap.usertrap": 14167,
        "vm.copy": 62,
        "vm.copyin": 1,
        "vm.copyout": 7095,
        "vm.free": 63,
        "vm.from_elf": 21,
        "vm.init": 1,
        "vm.kernel_init": 1,
        "vm.map": 82,
        "vm.translate_buffer": 7110,
        "vm.translate_str": 72,
        "vm.unmap": 72
      },
      "dropped_kinds": {
        "bcache.get": 541,
        "bcache.read": 541,
        "bcache.release": 541,
        "disk.interrupt": 70,
        "disk.io": 70,
        "file.close": 120,
        "func.add_task": 257062,
        "func.console_putchar": 5405,
        "func.console_write": 116,
        "func.consputc": 1173,
        "func.cpuid": 213,
        "func.curr_proc": 1414311,
        "func.dummy": 1799447,
        "func.either_copyout": 511,
        "func.fetch_task": 257063,
        "func.free_desc": 349,
        "func.freewalk": 250,
        "func.get_cycle": 128114,
        "func.memmove": 128933,
        "func.memset": 32766,
        "func.nftrace_page_alloc": 569,
        "func.nftrace_page_free": 497,
        "func.nftrace_sched_switch": 514189,
        "func.plic_claim": 73,
        "func.plic_complete": 74,
        "func.pop_queue": 257064,
        "func.push_queue": 257063,
        "func.set_next_timer": 265,
        "func.strncmp": 193,
        "func.sys_gettimeofday": 128115,
        "func.useraddr": 10,
        "func.walk": 162786,
        "inode.bmap": 488,
        "inode.read": 383,
        "interrupt.clock": 251,
        "interrupt.dispatch": 381,
        "interrupt.external": 70,
        "interrupt.timer": 250,
        "pagetable.map": 31758,
        "phys.alloc": 540,
        "phys.free": 472,
        "proc.wait": 3,
        "sbi.call": 5445,
        "sched.switch": 488174,
        "sched.yield": 121956,
        "sched.yield_to_scheduler": 244057,
        "syscall.dispatch": 243722,
        "syscall.enter": 243723,
        "syscall.waitpid": 3,
        "syscall.write": 111,
        "trap.kerneltrap": 74,
        "trap.userret": 244029,
        "trap.usertrap": 244029,
        "vm.copyout": 121660,
        "vm.map": 298,
        "vm.translate_buffer": 121928,
        "vm.translate_str": 136,
        "vm.unmap": 137
      }
    },
    "coverage": {
      "status": "complete",
      "percent": 100.0,
      "passed": 2374681,
      "total": 2374681,
      "metrics": {
        "covered": 18,
        "applicable": 18,
        "not_applicable": [
          "log_commits"
        ],
        "missing": [],
        "sampled": []
      },
      "semantic_events": {
        "raw": 2240961,
        "unknown": 0,
        "unknown_fields": {},
        "dropped_from_interactive": 2115961
      },
      "snapshots": {
        "checked": 4663,
        "incomplete": 0,
        "physical_memory": 0,
        "physical_counters": 0,
        "processes": 0,
        "resources": 0,
        "pre_initialization": {
          "physical_memory": 0,
          "physical_counters": 2042,
          "processes": 0,
          "resources": 0
        }
      },
      "snapshot_not_applicable": [],
      "manifest_fields": {
        "cells": 98434,
        "states": {
          "absent": 7031,
          "empty": 4282,
          "present": 87121
        },
        "not_applicable": 7031,
        "unresolved": 0
      },
      "full_watch_scope": true,
      "function_watch_drops": 0,
      "function_stacks_available": true,
      "observation_points": {
        "unresolved": [],
        "reported_missing": 18,
        "layout_missing": []
      },
      "blockers": []
    },
    "source_view": {
      "run": "ucore-2026A-ch6-basic-observed",
      "files": 20,
      "locations": 348,
      "revision": "df045c4455f2dacb81caf39510aed994bf49ade7"
    }
  },
  "console_sha256": "2e9da2d8d58548d0622f4ace3fce450c609f82f7ec3048c336ed00d10f12dbd4",
  "outcome": "completed",
  "trace_complete": true,
  "started_utc": "2026-09-27T16:18:57.797670+00:00",
  "qemu_command": "cd \"/home/joseph/nf/education-2026A-20260927/ucore-ch6-observed\" && exec qemu-system-riscv64 -machine virt -bios default -kernel build/kernel -m 128M -drive file=nfs/fs-copy.img,if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 -smp 1 -nographic -qmp tcp:127.0.0.1:55233,server=on,wait=off -plugin /home/joseph/nf/education-2026A-20260927/tool/nodefusion/plugin/libnf.so,out=/home/joseph/nf/education-2026A-20260927/runs/ucore-2026A-ch6-basic-observed/trace.nfb,sample=200000,snap=200000,maxram=268435456,returns=1,snapstart=0,bootsnap=0,ramsize=134217728,watch=/home/joseph/nf/education-2026A-20260927/runs/ucore-2026A-ch6-basic-observed/watchlist.txt -icount shift=3",
  "archive": {
    "run_path": "/home/joseph/nf/education-2026A-20260927/runs/ucore-2026A-ch6-basic-observed",
    "trace_sha256": "559ea5edf6e710050164d059e0fcac233343aff696b86b607d3d24c4a4b389d6",
    "trace_bytes": 1472524357
  }
}
