summaryrefslogtreecommitdiff
path: root/source3/profile/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/profile/profile.c')
-rw-r--r--source3/profile/profile.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source3/profile/profile.c b/source3/profile/profile.c
index 689f67da99..595593c6f0 100644
--- a/source3/profile/profile.c
+++ b/source3/profile/profile.c
@@ -21,14 +21,10 @@
#include "includes.h"
-#ifdef WITH_PROFILE
#define IPC_PERMS ((SHM_R | SHM_W) | (SHM_R>>3) | (SHM_R>>6))
-#endif /* WITH_PROFILE */
-#ifdef WITH_PROFILE
static int shm_id;
static BOOL read_only;
-#endif
struct profile_header *profile_h;
struct profile_stats *profile_p;
@@ -49,7 +45,6 @@ void profile_message(int msg_type, pid_t src, void *buf, size_t len)
int level;
memcpy(&level, buf, sizeof(int));
-#ifdef WITH_PROFILE
switch (level) {
case 0: /* turn off profiling */
do_profile_flag = False;
@@ -71,9 +66,6 @@ void profile_message(int msg_type, pid_t src, void *buf, size_t len)
DEBUG(1,("INFO: Profiling values cleared from pid %d\n", (int)src));
break;
}
-#else /* WITH_PROFILE */
- DEBUG(1,("INFO: Profiling support unavailable in this build.\n"));
-#endif /* WITH_PROFILE */
}
/****************************************************************************
@@ -95,7 +87,6 @@ void reqprofile_message(int msg_type, pid_t src, void *buf, size_t len)
/*******************************************************************
open the profiling shared memory area
******************************************************************/
-#ifdef WITH_PROFILE
BOOL profile_setup(BOOL rdonly)
{
struct shmid_ds shm_ds;
@@ -163,4 +154,3 @@ BOOL profile_setup(BOOL rdonly)
message_register(MSG_REQ_PROFILELEVEL, reqprofile_message);
return True;
}
-#endif /* WITH_PROFILE */