関数 | |
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 |
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.c の 38 行で定義されています。
参照先 our_dm_mark.
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.c の 53 行で定義されています。
参照先 our_dm_mark.
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.c の 70 行で定義されています。
参照先 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] |