The heartbeat's one input walked all 335,544 Stadium cells every tick, about 15 ms on aarch64 TCG, longer than a tick. At fast pacing it took the CPU, and a birth missed the session's 300 s on CI. That was my 11-17 change. Captain Bob ruled: sample less often, scaled by the cells, measured first, as a slice each tick; the slope inference later. - stadium_heat_walk_step() walks STADIUM_HEAT_SLICE_CELLS cells per tick (Kconfig, 5500, about 0.25 ms on aarch64 TCG). - A completed walk is one sample. - The heartbeat's load takes a sample only when a walk is done. Test first: test_stadium_node (21 checks) and test_heartbeat (13). Both failed to build before. All kernel host tests pass. Four aarch64 boots in a row pass 18/18 each, BIRTH included. The evidence is in logs/20261119-heat-slice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
34 lines
2.8 KiB
Plaintext
34 lines
2.8 KiB
Plaintext
/home/user/LithosAnanke/kernel/tests/test_stadium_node.c: In function 'main':
|
|
/home/user/LithosAnanke/kernel/tests/test_stadium_node.c:71:9: error: unknown type name 'stadium_heat_walk'
|
|
71 | stadium_heat_walk w = { 0, 0 };
|
|
| ^~~~~~~~~~~~~~~~~
|
|
/home/user/LithosAnanke/kernel/tests/test_stadium_node.c:71:36: error: excess elements in scalar initializer [-Werror]
|
|
71 | stadium_heat_walk w = { 0, 0 };
|
|
| ^
|
|
/home/user/LithosAnanke/kernel/tests/test_stadium_node.c:71:36: note: (near initialization for 'w')
|
|
/home/user/LithosAnanke/kernel/tests/test_stadium_node.c:76:53: error: implicit declaration of function 'stadium_heat_walk_step' [-Werror=implicit-function-declaration]
|
|
76 | while (!done && calls < 10000000u) { done = stadium_heat_walk_step(&w, 7, &sample); calls++; }
|
|
| ^~~~~~~~~~~~~~~~~~~~~~
|
|
cc1: all warnings being treated as errors
|
|
make: *** [Makefile:56: /home/user/LithosAnanke/build/kernel-tests/test_stadium_node] Error 1
|
|
/home/user/LithosAnanke/kernel/tests/test_heartbeat.c: In function 'main':
|
|
/home/user/LithosAnanke/kernel/tests/test_heartbeat.c:69:25: error: passing argument 1 of 'heartbeat_pace_from' from incompatible pointer type [-Werror=incompatible-pointer-types]
|
|
69 | heartbeat_pace_from(load);
|
|
| ^~~~
|
|
| |
|
|
| int (*)(uint64_t *) {aka int (*)(long unsigned int *)}
|
|
In file included from /home/user/LithosAnanke/kernel/tests/test_heartbeat.c:18:
|
|
/home/user/LithosAnanke/kernel/include/starkernel/timer.h:207:48: note: expected 'heartbeat_load_fn' {aka 'long unsigned int (*)(void)'} but argument is of type 'int (*)(uint64_t *)' {aka 'int (*)(long unsigned int *)'}
|
|
207 | void heartbeat_pace_from(heartbeat_load_fn load); /* 0: no source, no pacing */
|
|
| ~~~~~~~~~~~~~~~~~~^~~~
|
|
/home/user/LithosAnanke/kernel/tests/test_heartbeat.c:109:25: error: passing argument 1 of 'heartbeat_pace_from' from incompatible pointer type [-Werror=incompatible-pointer-types]
|
|
109 | heartbeat_pace_from(load);
|
|
| ^~~~
|
|
| |
|
|
| int (*)(uint64_t *) {aka int (*)(long unsigned int *)}
|
|
/home/user/LithosAnanke/kernel/include/starkernel/timer.h:207:48: note: expected 'heartbeat_load_fn' {aka 'long unsigned int (*)(void)'} but argument is of type 'int (*)(uint64_t *)' {aka 'int (*)(long unsigned int *)'}
|
|
207 | void heartbeat_pace_from(heartbeat_load_fn load); /* 0: no source, no pacing */
|
|
| ~~~~~~~~~~~~~~~~~~^~~~
|
|
cc1: all warnings being treated as errors
|
|
make: *** [Makefile:56: /home/user/LithosAnanke/build/kernel-tests/test_heartbeat] Error 1
|