Loading services/camera/libcameraservice/CameraServiceWatchdog.cpp +3 −5 Original line number Original line Diff line number Diff line Loading @@ -43,8 +43,7 @@ bool CameraServiceWatchdog::threadLoop() mTidMap[currentThreadId].cycles++; mTidMap[currentThreadId].cycles++; if (mTidMap[currentThreadId].cycles >= mMaxCycles) { if (mTidMap[currentThreadId].cycles >= mMaxCycles) { std::string abortMessage = getAbortMessage(getpid(), currentThreadId, std::string abortMessage = getAbortMessage(mTidMap[currentThreadId].functionName); mTidMap[currentThreadId].functionName); android_set_abort_message(abortMessage.c_str()); android_set_abort_message(abortMessage.c_str()); ALOGW("CameraServiceWatchdog triggering abort for pid: %d tid: %d", getpid(), ALOGW("CameraServiceWatchdog triggering abort for pid: %d tid: %d", getpid(), currentThreadId); currentThreadId); Loading @@ -60,10 +59,9 @@ bool CameraServiceWatchdog::threadLoop() return true; return true; } } std::string CameraServiceWatchdog::getAbortMessage(int pid, int tid, std::string functionName) { std::string CameraServiceWatchdog::getAbortMessage(const std::string& functionName) { std::string res = "CameraServiceWatchdog triggering abort during " std::string res = "CameraServiceWatchdog triggering abort during " + functionName + " | pid: " + std::to_string(pid) + functionName; + " tid: " + std::to_string(tid); return res; return res; } } Loading services/camera/libcameraservice/CameraServiceWatchdog.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -144,7 +144,7 @@ private: */ */ void stop(uint32_t tid); void stop(uint32_t tid); std::string getAbortMessage(int pid, int tid, std::string functionName); std::string getAbortMessage(const std::string& functionName); virtual bool threadLoop(); virtual bool threadLoop(); Loading Loading
services/camera/libcameraservice/CameraServiceWatchdog.cpp +3 −5 Original line number Original line Diff line number Diff line Loading @@ -43,8 +43,7 @@ bool CameraServiceWatchdog::threadLoop() mTidMap[currentThreadId].cycles++; mTidMap[currentThreadId].cycles++; if (mTidMap[currentThreadId].cycles >= mMaxCycles) { if (mTidMap[currentThreadId].cycles >= mMaxCycles) { std::string abortMessage = getAbortMessage(getpid(), currentThreadId, std::string abortMessage = getAbortMessage(mTidMap[currentThreadId].functionName); mTidMap[currentThreadId].functionName); android_set_abort_message(abortMessage.c_str()); android_set_abort_message(abortMessage.c_str()); ALOGW("CameraServiceWatchdog triggering abort for pid: %d tid: %d", getpid(), ALOGW("CameraServiceWatchdog triggering abort for pid: %d tid: %d", getpid(), currentThreadId); currentThreadId); Loading @@ -60,10 +59,9 @@ bool CameraServiceWatchdog::threadLoop() return true; return true; } } std::string CameraServiceWatchdog::getAbortMessage(int pid, int tid, std::string functionName) { std::string CameraServiceWatchdog::getAbortMessage(const std::string& functionName) { std::string res = "CameraServiceWatchdog triggering abort during " std::string res = "CameraServiceWatchdog triggering abort during " + functionName + " | pid: " + std::to_string(pid) + functionName; + " tid: " + std::to_string(tid); return res; return res; } } Loading
services/camera/libcameraservice/CameraServiceWatchdog.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -144,7 +144,7 @@ private: */ */ void stop(uint32_t tid); void stop(uint32_t tid); std::string getAbortMessage(int pid, int tid, std::string functionName); std::string getAbortMessage(const std::string& functionName); virtual bool threadLoop(); virtual bool threadLoop(); Loading