| 248 | } |
| 249 | |
| 250 | static __always_inline __u64 capture_stack(struct pt_regs* ctx) { |
| 251 | if (!capture_stacks_enabled || !is_enabled()) { |
| 252 | return 0; |
| 253 | } |
| 254 | |
| 255 | struct task_ids ids = current_task_ids(); |
| 256 | if (!is_tracked(ids.tgid)) { |
| 257 | return 0; |
| 258 | } |
| 259 | |
| 260 | return capture_stack_inner(ctx, ids); |
| 261 | } |
| 262 | |
| 263 | static __always_inline void stash_stack_hash(__u64 hash) { |
| 264 | if (hash == 0) { |
no test coverage detected