Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
bug fix !!!
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeFlowerX committed Dec 10, 2022
1 parent 7da18cc commit e77d9d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/raw_syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ int raw_syscalls_sys_enter(struct bpf_raw_tracepoint_args* ctx) {
}
}
} else {
// 可能是展开循环或者处于else分支的原因 这里必须得重新获取一次 arg_mask
struct arg_mask_t* arg_mask = bpf_map_lookup_elem(&arg_mask_map, &data->syscall_id);
if (arg_mask == NULL) {
return 0;
}
// 展开循环
#pragma unroll
for (int i = 0; i < 6; i++) {
Expand Down

0 comments on commit e77d9d2

Please sign in to comment.