Update the handling of process Instances
Compare changes
+ 154
− 123
@@ -10,15 +10,9 @@
@@ -10,15 +10,9 @@
@@ -27,7 +21,7 @@ struct process_entry {
@@ -27,7 +21,7 @@ struct process_entry {
@@ -36,6 +30,16 @@ typedef struct jiffy_counts_t {
@@ -36,6 +30,16 @@ typedef struct jiffy_counts_t {
@@ -90,28 +94,6 @@ static unsigned int get_cpu_usage(void)
@@ -90,28 +94,6 @@ static unsigned int get_cpu_usage(void)
@@ -132,48 +114,20 @@ static char *get_proc_state(char state)
@@ -132,48 +114,20 @@ static char *get_proc_state(char state)
@@ -182,6 +136,7 @@ static void procps_get_cmdline(char *buf, int bufsz, const char *pid, const char
@@ -182,6 +136,7 @@ static void procps_get_cmdline(char *buf, int bufsz, const char *pid, const char
@@ -190,6 +145,7 @@ static void procps_get_cmdline(char *buf, int bufsz, const char *pid, const char
@@ -190,6 +145,7 @@ static void procps_get_cmdline(char *buf, int bufsz, const char *pid, const char
@@ -212,39 +168,54 @@ static void procps_get_cmdline(char *buf, int bufsz, const char *pid, const char
@@ -212,39 +168,54 @@ static void procps_get_cmdline(char *buf, int bufsz, const char *pid, const char
@@ -254,16 +225,16 @@ static void init_processes(void)
@@ -254,16 +225,16 @@ static void init_processes(void)
@@ -290,23 +261,19 @@ static void init_processes(void)
@@ -290,23 +261,19 @@ static void init_processes(void)
snprintf(cputime, sizeof(cputime), "%lu", ((stime / sysconf(_SC_CLK_TCK)) + (utime / sysconf(_SC_CLK_TCK))) * 1000);
@@ -317,11 +284,90 @@ static void init_processes(void)
@@ -317,11 +284,90 @@ static void init_processes(void)
@@ -333,8 +379,12 @@ static int browseProcessEntriesInst(struct dmctx *dmctx, DMNODE *parent_node, vo
@@ -333,8 +379,12 @@ static int browseProcessEntriesInst(struct dmctx *dmctx, DMNODE *parent_node, vo
@@ -343,13 +393,10 @@ static int browseProcessEntriesInst(struct dmctx *dmctx, DMNODE *parent_node, vo
@@ -343,13 +393,10 @@ static int browseProcessEntriesInst(struct dmctx *dmctx, DMNODE *parent_node, vo
@@ -402,19 +449,6 @@ static int get_process_state(char* refparam, struct dmctx *ctx, void *data, char
@@ -402,19 +449,6 @@ static int get_process_state(char* refparam, struct dmctx *ctx, void *data, char
/**********************************************************************************************************************************
***********************************************************************************************************************************/
@@ -443,6 +477,3 @@ DMLEAF tDeviceInfoProcessStatusParams[] = {
@@ -443,6 +477,3 @@ DMLEAF tDeviceInfoProcessStatusParams[] = {