31 printf(
"create log fail...\n");
38 printf(
"mmap fail\n");
62 printf(
"stack empty ...\n");
66 msg = stk_curnt(stk)->name();
68 msgl = snprintf(mem,
MSIZE,
"Pid : %d | State : %s -> %s ",
74 printf(
"%s len <= 1\n", __func__);
82 msgl += snprintf(
ptr,
len,
"| E : %s \n", dbg);
86 memset(
ptr + 1, 0,
len - 1);
89 msync(mem,
MSIZE, MS_SYNC);
92 msync(mem,
MSIZE, MS_ASYNC);
100 mon_update(a, b, 0); \
104#define muc3(a, b, c) \
106 mon_update(a, b, c); \
109#define muc_ovrld(_1, _2, _3, func, ...) func
110#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
char pre_stat[16]
Definition vcom_monitor_pre_stat.h:12
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_pre_stat.h:15
#define FNAME_LEN
Definition vcom_monitor_pre_stat.h:4
#define MSIZE
Definition vcom_monitor_pre_stat.h:3
void * stk_mon
Definition vcom_client.c:33
unsigned short len
Definition vcom_proto.h:3
char ptr[4]
Definition vcom_proto.h:2