Lines Matching refs:piddir
559 auto piddir = procdir + std::to_string(tid) + "/stat"; in llkPanicKernel() local
560 if (access(piddir.c_str(), F_OK) != 0) { in llkPanicKernel()
561 PLOG(WARNING) << piddir; in llkPanicKernel()
759 bool getValidTidDir(dirent* dp, std::string* piddir) { in getValidTidDir() argument
768 *piddir = procdir; in getValidTidDir()
769 *piddir += dp->d_name; in getValidTidDir()
770 return (lstat(piddir->c_str(), &st) == 0) && (st.st_mode & S_IFDIR); in getValidTidDir()
775 *piddir = procdir; in getValidTidDir()
776 *piddir += dp->d_name; in getValidTidDir()
805 bool llkCheckStack(proc* procp, const std::string& piddir) { in llkCheckStack() argument
815 auto kernel_stack = ReadFile(piddir + "/stack"); in llkCheckStack()
817 LOG(VERBOSE) << piddir << "/stack empty comm=" << procp->getComm() in llkCheckStack()
849 void llkCheckSchedUpdate(proc* procp, const std::string& piddir) { in llkCheckSchedUpdate() argument
859 std::string schedString = ReadFile(piddir + "/sched"); in llkCheckSchedUpdate()
864 schedString = ReadFile(piddir + "/schedstat"); in llkCheckSchedUpdate()
1002 std::string piddir; in llkCheck() local
1004 if (!getValidTidDir(dp, &piddir)) { in llkCheck()
1009 std::string taskdir = piddir + "/task/"; in llkCheck()
1018 if (!getValidTidDir(tp, &piddir)) { in llkCheck()
1023 std::string stat = ReadFile(piddir + "/stat"); in llkCheck()
1051 auto cgroup = ReadFile(piddir + "/cgroup"); in llkCheck()
1135 llkCheckSchedUpdate(procp, piddir); in llkCheck()
1138 auto stuck = llkCheckStack(procp, piddir); in llkCheck()
1212 std::string piddir; in llkCheck() local
1213 if (getValidTidDir(tp, &piddir)) in llkCheck()
1214 threads.push_back(android::base::Basename(piddir)); in llkCheck()