Lines Matching refs:piddir
552 auto piddir = procdir + std::to_string(tid) + "/stat"; in llkPanicKernel() local
553 if (access(piddir.c_str(), F_OK) != 0) { in llkPanicKernel()
554 PLOG(WARNING) << piddir; in llkPanicKernel()
751 bool getValidTidDir(dirent* dp, std::string* piddir) { in getValidTidDir() argument
760 *piddir = procdir; in getValidTidDir()
761 *piddir += dp->d_name; in getValidTidDir()
762 return (lstat(piddir->c_str(), &st) == 0) && (st.st_mode & S_IFDIR); in getValidTidDir()
767 *piddir = procdir; in getValidTidDir()
768 *piddir += dp->d_name; in getValidTidDir()
797 bool llkCheckStack(proc* procp, const std::string& piddir) { in llkCheckStack() argument
807 auto kernel_stack = ReadFile(piddir + "/stack"); in llkCheckStack()
809 LOG(VERBOSE) << piddir << "/stack empty comm=" << procp->getComm() in llkCheckStack()
841 void llkCheckSchedUpdate(proc* procp, const std::string& piddir) { in llkCheckSchedUpdate() argument
851 std::string schedString = ReadFile(piddir + "/sched"); in llkCheckSchedUpdate()
856 schedString = ReadFile(piddir + "/schedstat"); in llkCheckSchedUpdate()
994 std::string piddir; in llkCheck() local
996 if (!getValidTidDir(dp, &piddir)) { in llkCheck()
1001 std::string taskdir = piddir + "/task/"; in llkCheck()
1010 if (!getValidTidDir(tp, &piddir)) { in llkCheck()
1015 std::string stat = ReadFile(piddir + "/stat"); in llkCheck()
1118 llkCheckSchedUpdate(procp, piddir); in llkCheck()
1121 auto stuck = llkCheckStack(procp, piddir); in llkCheck()