Skip to content

Commit

Permalink
fix: increase loop iteration count in event_find_curr function
Browse files Browse the repository at this point in the history
Signed-off-by: arthur-zhang <happyzhangya@gmail.com>
  • Loading branch information
arthur-zhang committed Dec 25, 2024
1 parent c3df31c commit 531afcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/lib/bpf_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ FUNC_INLINE struct execve_map_value *event_find_curr(__u32 *ppid, bool *walked)
__u32 pid;

#pragma unroll
for (i = 0; i < 4; i++) {
for (i = 0; i < 8; i++) {
probe_read_kernel(&pid, sizeof(pid), _(&task->tgid));
value = execve_map_get_noinit(pid);
if (value && value->key.ktime != 0)
Expand Down

0 comments on commit 531afcd

Please sign in to comment.