Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/bpf/hs_trace.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,6 @@ BPF_PROG(hs_trace_sys_exit, struct pt_regs *regs, long ret)
#ifdef __NR_inotify_add_watch
case __NR_inotify_add_watch:
#endif
#ifdef __NR_execve
case __NR_execve: /* r_first_path_set */
#endif
#ifdef __NR_statfs
case __NR_statfs:
#endif
Expand Down Expand Up @@ -556,6 +553,9 @@ BPF_PROG(hs_trace_sys_exit, struct pt_regs *regs, long ret)
#endif
#ifdef __NR_futimeat
case __NR_futimeat:
#endif
#ifdef __NR_execve
case __NR_execve: /* r_first_path_set */
#endif
break;
default:
Expand Down
4 changes: 2 additions & 2 deletions src/dep_tracer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ impl Logs {
pub fn update_log(&mut self, pid_tgid: u64, event: SyscallEvent) {
self.log
.entry(pid_tgid)
.and_modify(|vd| vd.push_back(event))
.or_insert(VecDeque::new());
.or_insert_with(|| VecDeque::new())
.push_back(event);
}

pub fn dump_log(&mut self) {
Expand Down
Loading