Lines Matching defs:proc
125 enum level { proc, task, numLevels }; enumerator
280 struct proc { struct
281 pid_t tid; // monitored thread id (in Z or D state).
282 nanoseconds schedUpdate; // /proc/<tid>/sched "se.avg.lastUpdateTime",
283 uint64_t nrSwitches; // /proc/<tid>/sched "nr_switches" for
286 milliseconds update; // llkUpdate millisecond signature of last.
287 milliseconds count; // duration in state.
289 milliseconds count_stack; // duration where stack is stagnant.
291 pid_t pid; // /proc/<pid> before iterating through
293 pid_t ppid; // /proc/<tid>/stat field 4 parent pid.
294 uid_t uid; // /proc/<tid>/status Uid: field.
295 unsigned time; // sum of /proc/<tid>/stat field 14 utime &
297 std::string cmdline; // cached /cmdline content
298 char state; // /proc/<tid>/stat field 3: Z or D
301 char stack; // index in llkCheckStackSymbols for matches
303 char comm[TASK_COMM_LEN + 3]; // space for adding '[' and ']'
304 bool exeMissingValid; // exeMissing has been cached
305 bool cmdlineValid; // cmdline has been cached
306 bool updated; // cleared before monitoring pass.
307 bool killed; // sent a kill to this thread, next panic...
308 bool frozen; // process is in frozen cgroup.
310 void setComm(const char* _comm) { strncpy(comm + 1, _comm, sizeof(comm) - 2); } in setComm()
312 void setFrozen(bool _frozen) { frozen = _frozen; } in setFrozen()
314 proc(pid_t tid, pid_t pid, pid_t ppid, const char* _comm, int time, char state, bool frozen) in proc() function
340 const char* getComm(void) { in getComm()
366 const char* getCmdline(void) { in getCmdline()
374 uid_t getUid(void) { in getUid()
381 bool isFrozen() { return frozen; } in isFrozen()
383 void reset(void) { // reset cache, if we detected pid rollover in reset()