[Mauiusers] Bug in mprof (MPLoadTrace)
Josh Butikofer
josh at clusterresources.com
Wed Mar 28 14:14:30 MDT 2007
This patch has been applied and is available in the newly released patch 19.
--
Joshua Butikofer
Cluster Resources, Inc.
josh at clusterresources.com
Voice: (801) 717-3707
Fax: (801) 717-3738
--------------------------
Åke Sandgren wrote:
> Attached patch fixes a bug in mprof that ignored jobs with QOS set in
> jobtraces when mprof was called without -Q
>
>
>
> ------------------------------------------------------------------------
>
> 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
> mauiusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/mauiusers
More information about the mauiusers
mailing list