-
Notifications
You must be signed in to change notification settings - Fork 11
Real time output #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Real time output #28
Conversation
b7b0fd4
to
3bbe7de
Compare
src/seccomp/policy/DefaultPolicy.cc
Outdated
"openat"}); | ||
"openat", | ||
"newfstatat", | ||
"pread64"}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pread64
should go in addInputOutputRules()
newfstatat
should be in addFileSystemAccessRules()
verifyTimeUsage(); | ||
// TODO Save time usage to OutputBuilder. | ||
auto time = getTimeUsage(); | ||
outputBuilder_->setRealTimeMicroseconds(time->realTimeUs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should double-check this, but IIRC the old "real-cpu" supervisor uses user time, not real time.
|
||
std::stringstream ss; | ||
ss << killReasonName(reason) << " " << exitStatus_ << " " | ||
<< milliSecondsElapsed_ << " " << realMilliSecondsElapsed_ << " " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you've added a new field here, but maybe putting realMilliSecondsElapsed in place of either miliSecondsElapsed or that 0ULL below, it'd be easier to adapt sioworkers and oiejq to parse this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I will replace milliSecondsElapsed
Add new format oireal
STATUS CODE TIME REAL_TIME NVM MEM SYSC