Files
hiperiso/logging/hiperiso-log/report.h
T
2026-06-30 14:30:52 +03:00

25 lines
728 B
C

/*
* 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 <log_dir>.
*
* Input files (all optional — missing files are handled gracefully):
* <log_dir>/env.txt Key: Value lines
* <log_dir>/qemu.cmdline Single-line QEMU command
* <log_dir>/serial.log Serial console text
* <log_dir>/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 */