syscall: multiple syscalls related to sockets

This commit is contained in:
Matheus
2024-04-07 16:40:02 -03:00
parent 1ee2013600
commit 9c4fe1a594
8 changed files with 333 additions and 4 deletions
+13 -3
View File
@@ -4,7 +4,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 41
#define SYSCALL_COUNT 46
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -48,7 +48,12 @@ static char *name[] = {
"mount",
"fchownat",
"utimensat",
"renameat"
"renameat",
"socket",
"bind",
"sendmsg",
"setsockopt",
"recvmsg"
};
static char *args[] = {
@@ -92,7 +97,12 @@ static char *args[] = {
"backing %p mountpoint %s fs %s flags %d data %p", // mount
"fd %d path %s owner %d group %d flags %x", // fchownat
"dirfd %d path %p times %p flags %x", // utimensat
"olddirfd %d oldpath %s newdirfd %d newpath %s flags %d" // renameat
"olddirfd %d oldpath %s newdirfd %d newpath %s flags %d", // renameat
"domain %d type %d protocol %d\n", // socket
"fd %d addr %p len %d\n", // bind
"fd %d msghdr %p flags %d", // sendmsg
"fd %d level %d optname %d optval %p optlen %lu", // setsockopt
"fd %d msghdr %p flags %d", // recvmsg
};
#endif