[Orca-checkins] r406 - trunk/orca/lib/SE/3.2.1
dmberezin at hotmail.com
dmberezin at hotmail.com
Fri Nov 19 07:12:47 PST 2004
Author: dmberezin at hotmail.com
Date: Fri Nov 19 07:10:42 2004
New Revision: 406
Modified:
trunk/orca/lib/SE/3.2.1/orca_process_class.se
Log:
Fix a thread counting bug in orca_process_class.se version 3.2.1
* lib/SE/3.2.1/orca_process_class.se
Apply a fix from revision 404 to this version of orca_process_class.se:
Fix a bug where highest thread id was reported as current number of threads.
Support both current thread count and contributing thread count.
Add lwp_max variable.
Modified: trunk/orca/lib/SE/3.2.1/orca_process_class.se
==============================================================================
--- trunk/orca/lib/SE/3.2.1/orca_process_class.se (original)
+++ trunk/orca/lib/SE/3.2.1/orca_process_class.se Fri Nov 19 07:10:42 2004
@@ -211,6 +211,7 @@
ulong icontexts; /* in-ditto */
ulong charios; /* characters in and out/interval */
ulong lwp_count; /* number of lwps for the process */
+ ulong lwp_max; /* number of contributing lwps for the process */
int uid; /* current uid */
long ppid; /* parent pid */
int bindpset; /* processor set binding */
@@ -537,6 +538,7 @@
rpi.n_pr_time = PS.pr_time;
rpi.o_pr_ctime = rpi.n_pr_ctime;
rpi.n_pr_ctime = PS.pr_ctime;
+ rpi.lwp_count = PS.pr_nlwp;
rpi.gencnt = gen;
struct_empty(rpi,pp);
nproc++;
@@ -789,7 +791,8 @@
priority = rpi.pr_pri;
niceness = rpi.pr_nice;
sched_class = rpi.pr_clname;
- lwp_count = NU.pr_count;
+ lwp_max = NU.pr_count;
+ lwp_count = rpi.lwp_count;
ppid = rpi.pr_ppid;
bindpset = rpi.pr_bindpset;
fname = rpi.pr_fname;
More information about the Orca-checkins
mailing list