Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiddha committed Jan 14, 2025
1 parent 5062a0a commit c159cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
3 changes: 2 additions & 1 deletion src/trace_exec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ int get_fd_path(pid_t proc_pid, std::map<unsigned long, char *> fd_cache, long l
}

buf[n] = '\0';
LOG_DEBUG("fd_cache: miss %lld %s", fd, buf)
fd_cache[fd] = strdup(buf);
LOG_DEBUG("fd_cache: save (miss) %lld %s", fd, buf)

return n;
}
Expand Down
18 changes: 0 additions & 18 deletions tests/syscalls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,7 @@ TEST(SyscallTestSuite, Exec1)
"RF /usr/bin/cat\n"
"RX /etc/ld.so.preload\n"
"RF /etc/ld.so.cache\n"
"RF /etc/ld.so.cache\n"
"RF /lib/x86_64-linux-gnu/libc.so.6\n"
"RF /usr/lib/x86_64-linux-gnu/libc.so.6\n"
"RF /tmp/fstrace-test-dir/file0\n"
"RF /tmp/fstrace-test-dir/file0\n"

);
Expand All @@ -617,10 +614,7 @@ TEST(SyscallTestSuite, Exec2)
"RF /usr/bin/cat\n"
"RX /etc/ld.so.preload\n"
"RF /etc/ld.so.cache\n"
"RF /etc/ld.so.cache\n"
"RF /lib/x86_64-linux-gnu/libc.so.6\n"
"RF /usr/lib/x86_64-linux-gnu/libc.so.6\n"
"RF /tmp/fstrace-test-dir/file0\n"
"RF /tmp/fstrace-test-dir/file0\n"

);
Expand All @@ -647,10 +641,7 @@ TEST(SyscallTestSuite, Exec3)
"RF /usr/bin/cat\n"
"RX /etc/ld.so.preload\n"
"RF /etc/ld.so.cache\n"
"RF /etc/ld.so.cache\n"
"RF /lib/x86_64-linux-gnu/libc.so.6\n"
"RF /usr/lib/x86_64-linux-gnu/libc.so.6\n"
"RF /tmp/fstrace-test-dir/file0\n"
"RF /tmp/fstrace-test-dir/file0\n"

);
Expand Down Expand Up @@ -678,10 +669,7 @@ TEST(SyscallTestSuite, Exec4)
"RF /usr/bin/cat\n"
"RX /etc/ld.so.preload\n"
"RF /etc/ld.so.cache\n"
"RF /etc/ld.so.cache\n"
"RF /lib/x86_64-linux-gnu/libc.so.6\n"
"RF /usr/lib/x86_64-linux-gnu/libc.so.6\n"
"RF /tmp/fstrace-test-dir/file0\n"
"RF /tmp/fstrace-test-dir/file0\n"

);
Expand All @@ -708,10 +696,7 @@ TEST(SyscallTestSuite, Exec5)
"RF /usr/bin/cat\n"
"RX /etc/ld.so.preload\n"
"RF /etc/ld.so.cache\n"
"RF /etc/ld.so.cache\n"
"RF /lib/x86_64-linux-gnu/libc.so.6\n"
"RF /usr/lib/x86_64-linux-gnu/libc.so.6\n"
"RF /tmp/fstrace-test-dir/file0\n"
"RF /tmp/fstrace-test-dir/file0\n"

);
Expand Down Expand Up @@ -739,10 +724,7 @@ TEST(SyscallTestSuite, Exec6)
"RF /usr/bin/cat\n"
"RX /etc/ld.so.preload\n"
"RF /etc/ld.so.cache\n"
"RF /etc/ld.so.cache\n"
"RF /lib/x86_64-linux-gnu/libc.so.6\n"
"RF /usr/lib/x86_64-linux-gnu/libc.so.6\n"
"RF /tmp/fstrace-test-dir/file0\n"
"RF /tmp/fstrace-test-dir/file0\n"

);
Expand Down

0 comments on commit c159cf6

Please sign in to comment.