signed-off-by: Karim Yaghmour ([email protected])
--- linux-2.6.10-relayfs/ipc/msg.c 2004-12-24 16:33:48.000000000 -0500
+++ linux-2.6.10-relayfs-ltt/ipc/msg.c 2005-01-13 22:21:51.000000000 -0500
@@ -25,6 +25,7 @@
#include <linux/security.h>
#include <linux/sched.h>
#include <linux/syscalls.h>
+#include <linux/ltt-events.h>
#include <asm/current.h>
#include <asm/uaccess.h>
#include "util.h"
@@ -229,6 +230,7 @@ asmlinkage long sys_msgget (key_t key, i
msg_unlock(msq);
}
up(&msg_ids.sem);
+ ltt_ev_ipc(LTT_EV_IPC_MSG_CREATE, ret, msgflg);
return ret;
}
--- linux-2.6.10-relayfs/ipc/sem.c 2004-12-24 16:34:31.000000000 -0500
+++ linux-2.6.10-relayfs-ltt/ipc/sem.c 2005-01-13 22:21:51.000000000 -0500
@@ -72,6 +72,7 @@
#include <linux/smp_lock.h>
#include <linux/security.h>
#include <linux/syscalls.h>
+#include <linux/ltt-events.h>
#include <asm/uaccess.h>
#include "util.h"
@@ -239,6 +240,7 @@ asmlinkage long sys_semget (key_t key, i
}
up(&sem_ids.sem);
+ ltt_ev_ipc(LTT_EV_IPC_SEM_CREATE, err, semflg);
return err;
}
--- linux-2.6.10-relayfs/ipc/shm.c 2004-12-24 16:34:45.000000000 -0500
+++ linux-2.6.10-relayfs-ltt/ipc/shm.c 2005-01-13 22:21:51.000000000 -0500
@@ -27,6 +27,7 @@
#include <linux/shmem_fs.h>
#include <linux/security.h>
#include <linux/syscalls.h>
+#include <linux/ltt-events.h>
#include <asm/uaccess.h>
#include "util.h"
@@ -277,7 +278,7 @@ asmlinkage long sys_shmget (key_t key, s
shm_unlock(shp);
}
up(&shm_ids.sem);
-
+ ltt_ev_ipc(LTT_EV_IPC_SHM_CREATE, err, shmflg);
return err;
}