MCPcopy Create free account
hub / github.com/apache/impala / GetKernelStack

Function GetKernelStack

be/src/kudu/util/kernel_stack_watchdog.cc:123–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123Status 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
131void KernelStackWatchdog::RunThread() {
132 while (true) {

Callers 1

RunThreadMethod · 0.85

Calls 5

DefaultClass · 0.85
SubstituteFunction · 0.85
OKFunction · 0.85
ReadFileToStringFunction · 0.70
ToStringMethod · 0.45

Tested by

no test coverage detected