checkpointing, heavy dev

This commit is contained in:
2025-07-24 14:32:50 +02:00
parent a3bc63d2d9
commit c2040a5c08
89 changed files with 741883 additions and 477 deletions

View File

@@ -13,7 +13,7 @@ fmt:
fmt-check:
@echo "Checking formatting..."
@test -z "$$(gofmt -l .)" || (echo "Files need formatting. Run 'make fmt'" && gofmt -l . && exit 1)
@test -z "$$(gofmt -l . | grep -v '^vendor/')" || (echo "Files need formatting. Run 'make fmt'" && gofmt -l . | grep -v '^vendor/' && exit 1)
lint:
golangci-lint run
@@ -39,4 +39,25 @@ run-daemon: build
deps:
go mod download
go mod tidy
go mod tidy
# VM Testing
.PHONY: vmtest
vmtest:
cd test/qemu-ubuntu-test && ./run-qemu.sh
# Debug build
.PHONY: debug
debug:
go build -gcflags="all=-N -l" -o hdmistat-debug ./cmd/hdmistat
@echo "Debug build complete: hdmistat-debug"
@echo ""
@echo "Debug features:"
@echo " - SIGUSR1 dumps all goroutine stack traces"
@echo " - Built with debug symbols (-N -l)"
@echo ""
@echo "To debug a hang:"
@echo " kill -USR1 <pid> # Dump goroutines"
@echo " kill -QUIT <pid> # Also dumps goroutines (Go default)"