diff options
author | Petri Latvala <petri.latvala@intel.com> | 2018-09-14 14:21:39 +0300 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2018-09-17 13:14:38 +0300 |
commit | 03b90a39ed12a568c9da752466ea708d6348e110 (patch) | |
tree | c967d63977516028bf7638bbdd9b2b1305583abf /overlay | |
parent | 0b59bb3231ab481959528c5c7b3a98762772e1b0 (diff) |
runner: Increase buffer size for reading outputs
The law of chosen magic numbers: The number selected is wrong.
Chose another magic number for the size of the buffer used to read
test outputs and kernel log records. It's now 2048, up from 256. Also
added a warning print if that's still not enough for kernel logs.
The lesson to learn here is that the /dev/kmsg interface does not give
you a truncated log record as initially thought, but reports an
undocumented EINVAL instead. Subsequent reads give the next record, so
the failsafe added will make sure any future EINVALs will only drop
the record that is too long instead of everything from that point
onwards.
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'overlay')
0 files changed, 0 insertions, 0 deletions