f0bdf66be8
Three trace tiers: standard, detailed, full.
25 lines
728 B
C
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 */
|