MCPcopy Create free account
hub / github.com/iovisor/bcc / stack_id_err

Function stack_id_err

tools/capable.py:260–263  ·  view source on GitHub ↗
(stack_id)

Source from the content-addressed store, hash-verified

258 "TIME", "UID", "PID", "COMM", "CAP", "NAME", "AUDIT"))
259
260def stack_id_err(stack_id):
261 # -EFAULT in get_stackid normally means the stack-trace is not available,
262 # Such as getting kernel stack trace in userspace code
263 return (stack_id < 0) and (stack_id != -errno.EFAULT)
264
265def print_stack(bpf, stack_id, stack_type, tgid):
266 if stack_id_err(stack_id):

Callers 1

print_stackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected