Attached patch fixes a bug in mprof that ignored jobs with QOS set in
jobtraces when mprof was called without -Q
--
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: [EMAIL PROTECTED] Phone: +46 90 7866134 Fax: +46 90 7866126
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se
diff -ru site/src/server/mprof.c amd64_ubuntu606/src/server/mprof.c
--- site/src/server/mprof.c 2006-10-23 18:42:31.000000000 +0200
+++ amd64_ubuntu606/src/server/mprof.c 2007-03-14 12:30:12.000000000 +0100
@@ -2316,6 +2316,7 @@
while (ptr < tail)
{
LineCount++;
+ Offset = 0;
if (MTraceLoadWorkload(ptr,&Offset,&tmpJ,msmProfile,&Version) == SUCCESS)
{
@@ -2338,7 +2339,7 @@
if ((Profile.Host[0] != '\0') && (strcmp(Profile.Host,J->MasterHostName)))
continue;
- if ((J->Cred.Q != NULL) && !strstr(Profile.QOSList,J->Cred.Q->Name))
+ if ((J->Cred.Q != NULL) && (Profile.QOSList[0] != '\0') && !strstr(Profile.QOSList,J->Cred.Q->Name))
continue;
if (Profile.UserNameList[0][0] != '\0')
_______________________________________________
mauiusers mailing list
[email protected]
http://www.supercluster.org/mailman/listinfo/mauiusers