diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-12-09 09:40:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-13 22:47:30 +0000 |
commit | daeee2d6731014c33f0d1f8a3846830c099932b4 (patch) | |
tree | 9b90aca808f4412d8c3eb75c2268a5bcee42b6eb /meta/recipes-bsp | |
parent | a78c420c4a2cf298e790b71b564a9f52949b966a (diff) | |
download | openembedded-core-daeee2d6731014c33f0d1f8a3846830c099932b4.tar.gz openembedded-core-daeee2d6731014c33f0d1f8a3846830c099932b4.tar.bz2 openembedded-core-daeee2d6731014c33f0d1f8a3846830c099932b4.zip |
buildstats.py: skip collecting unavailable /proc data
Some virtualized environments like Linux-VServer do not have the
entries under /proc that the new system usage sampling expected,
leading to an exception when trying to open the files.
Now the presence of these files is checked once before enabling the
corresponding data collection. When a file is missing, the
corresponding log file is not written either and pybootchart will not
draw the chart that normally displays the data.
Errors while reading or writing of data samples is intentionally still
a fatal error, because that points towards a bigger problem that
should not be ignored.
Reported-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-bsp')
0 files changed, 0 insertions, 0 deletions