Commit Graph

9 Commits

Author SHA1 Message Date
Vincent Penquerc'h
7f2ac22d49 meminfo-writer: fix high memory check for more than about 150 GB RAM 2014-01-05 05:39:30 +01:00
Vincent Penquerc'h
e6c29bbae1 meminfo-writer: ensure we do not write outside our buffer
Reading the max size would cause a NUL to be written after
the buffer, while an error would cause one to be written
before it.
2014-01-05 05:39:30 +01:00
Vincent Penquerc'h
2758d2a1d3 meminfo-writer: kill child if we error out due to failure to write the pid file 2014-01-05 05:39:29 +01:00
Vincent Penquerc'h
1a72505d24 meminfo-writer: simple command line sanity checks 2014-01-05 05:39:29 +01:00
Vincent Penquerc'h
0c718b7f54 meminfo-writer: trivial typo fix 2014-01-05 05:39:29 +01:00
Vincent Penquerc'h
76afc2e72f meminfo-writer: ensure we always use the first parses memory info
It could plausibly be ignored for stupidly large thresholds
2014-01-05 05:39:29 +01:00
Vincent Penquerc'h
7e086970e9 meminfo-writer: make meminfo parsing more robust
- ensure we see all the expected fields
- avoid overflowing name buffer on malformed input
- avoid possible overread when the last line is small
2014-01-05 05:39:29 +01:00
Vincent Penquerc'h
2ba46ff17f meminfo-writer: make buffers const where possible 2014-01-05 05:39:29 +01:00
Marek Marczykowski-Górecki
f0b1271a5e Include meminfo-writer
It is common for dom0 and VM, so keep in one place for both of them.
2014-01-05 05:32:57 +01:00