| 121 | } |
| 122 | |
| 123 | Status GetKernelStack(pid_t p, string* ret) { |
| 124 | MAYBE_INJECT_FIXED_LATENCY(FLAGS_inject_latency_on_kernel_stack_lookup_ms); |
| 125 | faststring buf; |
| 126 | RETURN_NOT_OK(ReadFileToString(Env::Default(), Substitute("/proc/$0/stack", p), &buf)); |
| 127 | *ret = buf.ToString(); |
| 128 | return Status::OK(); |
| 129 | } |
| 130 | |
| 131 | void KernelStackWatchdog::RunThread() { |
| 132 | while (true) { |
no test coverage detected