WIP: fix post-switch-root file operations
Share the first part of the Cisco patch authored by Oleksiy Obitotskyy to fix reading from /proc/schedstat post-switch-root (see #60).
More changes are needed since writing the svg file fails.
@sofar : this is WIP, but please share any comments you might have.
There is some code duplication.
Please change the patch title to something other than "WIP 1". Looks okay in general, just some small remarks from me.
Please change the patch title to something other than "WIP 1". Looks okay in general, just some small remarks from me.
I will create a better commit message after I finish the next part (i.e. fixing the writing of the svg file). This is still a draft PR.
Just put WIP in the title of the PR. Nothing wrong with iterative development imho. Once you're ready for merging, I would squash together your commits into coherent changesets.