(stack_id)
| 258 | "TIME", "UID", "PID", "COMM", "CAP", "NAME", "AUDIT")) |
| 259 | |
| 260 | def 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 | |
| 265 | def print_stack(bpf, stack_id, stack_type, tgid): |
| 266 | if stack_id_err(stack_id): |