lib/dmallocmsg.c

Glue code to cause dmalloc info to come out when we receive a prod over samba messaging. [詳細]

ソースコードを見る。

関数

static void msg_req_dmalloc_mark (int UNUSED(msg_type), struct process_id UNUSED(src_pid), void *UNUSED(buf), size_t UNUSED(len), void *private_data)
 Respond to a POOL_USAGE message by sending back string form of memory usage stats.
static void msg_req_dmalloc_log_changed (int UNUSED(msg_type), struct process_id UNUSED(src_pid), void *UNUSED(buf), size_t UNUSED(len), void *private_data)
void register_dmalloc_msgs (void)
 Register handler for MSG_REQ_POOL_USAGE

変数

static unsigned long our_dm_mark = 0


説明

Glue code to cause dmalloc info to come out when we receive a prod over samba messaging.

dmallocmsg.c で定義されています。


関数

static void msg_req_dmalloc_mark ( int   UNUSED(msg_type),
struct process_id   UNUSED(src_pid),
void *  UNUSED(buf),
size_t   UNUSED(len),
void *  private_data 
) [static]

Respond to a POOL_USAGE message by sending back string form of memory usage stats.

dmallocmsg.c38 行で定義されています。

参照先 our_dm_mark.

参照元 register_dmalloc_msgs().

00042 {
00043 #ifdef ENABLE_DMALLOC
00044         our_dm_mark = dmalloc_mark();
00045         DEBUG(2,("Got MSG_REQ_DMALLOC_MARK: mark set\n"));
00046 #else
00047         DEBUG(2,("Got MSG_REQ_DMALLOC_MARK but dmalloc not in this process\n"));
00048 #endif
00049 }

static void msg_req_dmalloc_log_changed ( int   UNUSED(msg_type),
struct process_id   UNUSED(src_pid),
void *  UNUSED(buf),
size_t   UNUSED(len),
void *  private_data 
) [static]

dmallocmsg.c53 行で定義されています。

参照先 our_dm_mark.

参照元 register_dmalloc_msgs().

00057 {
00058 #ifdef ENABLE_DMALLOC
00059         dmalloc_log_changed(our_dm_mark, True, True, True);
00060         DEBUG(2,("Got MSG_REQ_DMALLOC_LOG_CHANGED: done\n"));
00061 #else
00062         DEBUG(2,("Got MSG_REQ_DMALLOC_LOG_CHANGED but dmalloc not in this process\n"));
00063 #endif
00064 }

void register_dmalloc_msgs ( void   ) 

Register handler for MSG_REQ_POOL_USAGE

dmallocmsg.c70 行で定義されています。

参照先 message_register()msg_req_dmalloc_log_changed()msg_req_dmalloc_mark().

参照元 message_init().

00071 {
00072         message_register(MSG_REQ_DMALLOC_MARK, msg_req_dmalloc_mark, NULL);
00073         message_register(MSG_REQ_DMALLOC_LOG_CHANGED,
00074                          msg_req_dmalloc_log_changed, NULL);
00075         DEBUG(2, ("Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED\n"));
00076 }       


変数

unsigned long our_dm_mark = 0 [static]

dmallocmsg.c30 行で定義されています。

参照元 msg_req_dmalloc_log_changed()msg_req_dmalloc_mark().


Sambaに対してSat Aug 29 21:23:35 2009に生成されました。  doxygen 1.4.7