1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

profiling: Move some #defines to profile.c

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2014-10-02 12:52:05 +00:00 committed by Jeremy Allison
parent d523e0b7ed
commit 0e1b60e8c3
2 changed files with 4 additions and 4 deletions

View File

@ -24,10 +24,6 @@
/* this file defines the profile structure in the profile shared /* this file defines the profile structure in the profile shared
memory area */ memory area */
#define PROF_SHMEM_KEY ((key_t)0x07021999)
#define PROF_SHM_MAGIC 0x6349985
#define PROF_SHM_VERSION 13
/* time values in the following structure are in microseconds */ /* time values in the following structure are in microseconds */
#define __profile_stats_value(which, domain) domain[which] #define __profile_stats_value(which, domain) domain[which]

View File

@ -25,6 +25,10 @@
#include "messages.h" #include "messages.h"
#include "smbprofile.h" #include "smbprofile.h"
#define PROF_SHMEM_KEY ((key_t)0x07021999)
#define PROF_SHM_MAGIC 0x6349985
#define PROF_SHM_VERSION 13
#ifdef WITH_PROFILE #ifdef WITH_PROFILE
#define IPC_PERMS ((S_IRUSR | S_IWUSR) | S_IRGRP | S_IROTH) #define IPC_PERMS ((S_IRUSR | S_IWUSR) | S_IRGRP | S_IROTH)
#endif /* WITH_PROFILE */ #endif /* WITH_PROFILE */