]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootchart: Ensure that /proc/schedstat is read entirely 430/head
authorGianpaolo Macario <gianpaolo_macario@mentor.com>
Tue, 30 Jun 2015 15:09:02 +0000 (15:09 +0000)
committerGianpaolo Macario <gianpaolo_macario@mentor.com>
Tue, 30 Jun 2015 15:09:02 +0000 (15:09 +0000)
commitc91d0fd2f433af7f314558c59026248a79695ab5
treefcd334eeddc15a381edb27d5fb2ad94f4f2c857b
parent8914ea0e90f2c9316dcccb6402ff86339eb195e1
bootchart: Ensure that /proc/schedstat is read entirely

On multi-core systems file /proc/schedstat may be
larger than 4096 bytes and pread() will only read part of it.

Fix issue https://github.com/systemd/systemd/issues/404
src/bootchart/store.c