/* * report.h - Generate analysis reports from boot logs. * * Reads serial.log, trace.bin, qemu.cmdline, and env.txt from a log * directory, then writes report.json and report.txt into the same directory. */ #ifndef REPORT_H #define REPORT_H /* * Generate report.json and report.txt inside . * * Input files (all optional — missing files are handled gracefully): * /env.txt Key: Value lines * /qemu.cmdline Single-line QEMU command * /serial.log Serial console text * /trace.bin QEMU simpletrace binary * * Returns 0 on success, -1 if the report files could not be written. */ int report_generate(const char *log_dir); #endif /* REPORT_H */