Re: [RFC 7/7] rt-tests: cyclictest: Add support to report standard deviation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Punit,

On Thu, Oct 14, 2021 at 04:12:47PM +0900, Punit Agrawal wrote:
> @@ -1781,6 +1810,7 @@ static void write_stats(FILE *f, void *data)
>  		fprintf(f, "      \"min\": %ld,\n", s->min);
>  		fprintf(f, "      \"max\": %ld,\n", s->max);
>  		fprintf(f, "      \"avg\": %.2f,\n", s->avg);
> +		fprintf(f, "      \"stddev\": %.2f,\n", calc_stddev(s));
>  		fprintf(f, "      \"cpu\": %d,\n", par[i]->cpu);
>  		fprintf(f, "      \"node\": %d\n", par[i]->node);
>  		fprintf(f, "    }%s\n", i == num_threads - 1 ? "" : ",");

I think in this case you should also increase the version number of the
JSON file. And while at it, I'd love to see the same stats
fixes/extension for the other tools, not just cyclictest.

Daniel



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux