|
|
@ -76,6 +76,12 @@ syscall::socket:return
|
|
|
|
self->inet_fds[arg0] = 1;
|
|
|
|
self->inet_fds[arg0] = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
syscall::close:entry
|
|
|
|
|
|
|
|
/execname == SSH/
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
self->inet_fds[arg0] = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
syscall::write:entry,
|
|
|
|
syscall::write:entry,
|
|
|
|
syscall::write_nocancel:entry
|
|
|
|
syscall::write_nocancel:entry
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -114,17 +120,24 @@ proc:::lwp-exit
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this->nsecs = vtimestamp - self->start_vtime;
|
|
|
|
this->nsecs = vtimestamp - self->start_vtime;
|
|
|
|
printf("%d,EXIT,,%d,%d,%s\n", walltimestamp, this->nsecs, pid, execname);
|
|
|
|
printf("%d,EXIT,,%d,%d,%s\n", walltimestamp, this->nsecs, pid, execname);
|
|
|
|
|
|
|
|
/* Kernel threads are recycled, variables hang around. */
|
|
|
|
|
|
|
|
self->start_vtime = 0;
|
|
|
|
|
|
|
|
self->ontime = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sched:::on-cpu
|
|
|
|
sched:::on-cpu
|
|
|
|
/self->start_vtime/
|
|
|
|
/self->start_vtime/
|
|
|
|
{
|
|
|
|
{
|
|
|
|
self->ontime = vtimestamp;
|
|
|
|
self->ontime = timestamp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sched:::off-cpu
|
|
|
|
sched:::off-cpu
|
|
|
|
/self->ontime/
|
|
|
|
/self->ontime/
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this->spent = vtimestamp - self->ontime;
|
|
|
|
printf("%d,SCHED,,%d,%d,%s\n",
|
|
|
|
printf("%d,SCHED,,%d,%d,%s\n", walltimestamp, this->spent, pid, execname);
|
|
|
|
walltimestamp,
|
|
|
|
|
|
|
|
timestamp - self->ontime,
|
|
|
|
|
|
|
|
pid,
|
|
|
|
|
|
|
|
execname
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|