30 printf(
"create log fail...\n");
37 printf(
"mmap fail\n");
61 printf(
"stack empty ...\n");
65 msg = stk_curnt(stk)->name();
67 msgl = snprintf(mem,
MSIZE,
"Pid : %d | State : %s ",
73 printf(
"%s len <= 1\n", __func__);
79 msgl += snprintf(
ptr,
len,
"| E : %s \n", dbg);
83 memset(
ptr + 1, 0,
len - 1);
86 msync(mem,
MSIZE, MS_SYNC);
89 msync(mem,
MSIZE, MS_ASYNC);
97 mon_update(a, b, 0); \
101#define muc3(a, b, c) \
103 mon_update(a, b, c); \
106#define muc_ovrld(_1, _2, _3, func, ...) func
107#define mon_update_check(args...) muc_ovrld(args, muc3, muc2,...)(args)
Definition vcom_monitor.h:8
int msgl
Definition vcom_monitor.h:12
char fname[FNAME_LEN]
Definition vcom_monitor.h:13
int fd
Definition vcom_monitor.h:10
void * addr
Definition vcom_monitor.h:9
int pid
Definition vcom_monitor.h:11
#define mon_init(a)
Definition vcom.h:97
#define stk_empty(a)
Definition vcom.h:23
#define mon_update(...)
Definition vcom.h:96
struct vc_monitor vc_mon
Definition vcom_monitor.h:15
#define FNAME_LEN
Definition vcom_monitor.h:5
#define MSIZE
Definition vcom_monitor.h:4
void * stk_mon
Definition vcom_client.c:33
#define FNAME_LEN
Definition vcom_monitor_pre_stat.h:4
unsigned short len
Definition vcom_proto.h:3
char ptr[4]
Definition vcom_proto.h:2