summaryrefslogtreecommitdiffstats
path: root/source3/locking
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1999-04-01 05:22:58 +0000
committerAndrew Tridgell <tridge@samba.org>1999-04-01 05:22:58 +0000
commitd330c907bdc5d8e3c242cea76dfafaae84041270 (patch)
treed5a1381ca1adbe412bdb25084632ffc6b053f2c1 /source3/locking
parenta8aff598f42a7479a2c43cbd04064cbbcf150599 (diff)
downloadsamba-d330c907bdc5d8e3c242cea76dfafaae84041270.tar.gz
samba-d330c907bdc5d8e3c242cea76dfafaae84041270.tar.xz
samba-d330c907bdc5d8e3c242cea76dfafaae84041270.zip
Ken McDonell from SGI was interested in adding some profiling
capabilities to Samba so that Samba could talk to the SGI PCP (Performance Co-Pilot) apps. This change adds a profiling shared memory area and uses it to count two fairly trivial things, the number of uid switches and the number of SMB packets processes. To add more just edit include/profile.h and then increment it at the right place. I've also added a -P switch to smbstatus to dump the profile area. (This used to be commit ef3d61a80ad0b87c196a63ef2bd4fe8fc3863bd0)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/shmem_sysv.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/locking/shmem_sysv.c b/source3/locking/shmem_sysv.c
index 1dd4743df0..d4e814d26f 100644
--- a/source3/locking/shmem_sysv.c
+++ b/source3/locking/shmem_sysv.c
@@ -33,11 +33,7 @@ extern int DEBUGLEVEL;
#define SHM_MAGIC 0x53484100
#define SHM_VERSION 2
-#ifdef SHM_R
#define IPC_PERMS ((SHM_R | SHM_W) | (SHM_R>>3) | (SHM_R>>6))
-#else
-#define IPC_PERMS 0644
-#endif
#ifdef SECURE_SEMAPHORES