[SSI] openssi/procps/ps output.c,1.1.15.2,1.1.15.2.2.1

Roger Tsang <[email protected]> Sun, 08 Aug 2010 03:41:08 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/procps/ps
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv10105/ps

Modified Files:
      Tag: OPENSSI-CENTOS
	output.c 
Log Message:
OpenSSI changes for procps-3.2.3-8.17.el4_8.2


Index: output.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/procps/ps/Attic/output.c,v
retrieving revision 1.1.15.2
retrieving revision 1.1.15.2.2.1
diff -u -d -r1.1.15.2 -r1.1.15.2.2.1
--- output.c	8 Aug 2010 03:33:59 -0000	1.1.15.2
+++ output.c	8 Aug 2010 03:41:06 -0000	1.1.15.2.2.1
@@ -183,6 +183,10 @@
 CMP_SMALL(pcpu)
 
 CMP_SMALL(state)
+/*
+ *	OpenSSI 
+ */
+    CMP_INT(enode)
 
 /* approximation to: kB of address space that could end up in swap */
 static int sr_swapable(const proc_t* P, const proc_t* Q) {
@@ -439,6 +443,12 @@
   return snprintf(outbuf, COLWID, "%u", pp->ppid);
 }
 
+/*
+ * OpenSSI : pr_nodenum() prints the node num
+ */
+static int pr_nodenum(char *restrict const outbuf, const proc_t *restrict const pp){
+  return snprintf(outbuf, COLWID, "%u", pp->enode);
+}
 
 /* cumulative CPU time, [dd-]hh:mm:ss format (not same as "etime") */
 static int pr_time(char *restrict const outbuf, const proc_t *restrict const pp){
@@ -1170,6 +1180,7 @@
 {"eip",       "EIP",     pr_eip,      sr_kstk_eip, 8,  0,    LNX, TO|RIGHT},
 {"emul",      "EMUL",    pr_nop,      sr_nop,    13,   0,    BSD, PO|LEFT}, /* "FreeBSD ELF32" and such */
 {"end_code",  "E_CODE",  pr_nop,      sr_end_code, 8,  0,    LNx, PO|RIGHT},
+{"enode",     "NODE",    pr_nodenum,  sr_enode,    4, 0,     U98, RIGHT}, /* OpenSSI : execution node num */
 {"environ","ENVIRONMENT",pr_nop,      sr_nop,    11, ENV,    LNx, PO|UNLIMITED},
 {"esp",       "ESP",     pr_esp,      sr_kstk_esp, 8,  0,    LNX, TO|RIGHT},
 {"etime",     "ELAPSED", pr_etime,    sr_nop,    11,   0,    U98, AN|RIGHT}, /* was 7 wide */


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev