[Cbe-oss-dev] [PATCH] spu-tools: More screen for some spu statistics
D. Herrendoerfer
d.herrendoerfer at herrendoerfer.name
Sat Mar 15 01:38:14 EST 2008
Added both,
please verify.
Thank you very much, have a nice weekend !
D.Herrendoerfer
On Thu, 2008-03-13 at 16:41 -0300, Andre Detsch wrote:
> Statistics per spu may grow a lot during system life.
>
> Giving additional screen space for some statistics helps to keep the
> output organized.
>
> Do not showing context switch accounting by default, to compensate
> the extra columns used.
>
> Signed-off-by: Andre Detsch <adetsch at br.ibm.com>
>
> Index: libspe2/tools/spu-tools/src/spu-info.c
> ===================================================================
> --- libspe2.orig/tools/spu-tools/src/spu-info.c
> +++ libspe2/tools/spu-tools/src/spu-info.c
> @@ -209,13 +209,13 @@ struct field spu_fields[] = {
> { SPU_PERCENT_IOWAIT, "%WAI", "%6s", "%6.1f", "SPU I/O Wait", 1, "" },
> { SPU_STATE, "S", "%2s", "%2c", "State", 1, "" },
>
> - { SPU_VOLUNTARY_CTX_SWITCHES, "VCSW", "%5s", "%5llu", "Number of Voluntary Context Switches", 1, "" },
> - { SPU_INVOLUNTARY_CTX_SWITCHES, "ICSW", "%5s", "%5llu", "Number of Involuntary Context Switches", 1, "" },
> - { SPU_SLB_MISSES, "SLB", "%5s", "%5llu", "Number of SLB Misses", 1, "" },
> - { SPU_HASH_FAULTS, "HFLT", "%5s", "%5llu", "Number of Hash Faults", 1, "" },
> - { SPU_MINOR_PAGE_FAULTS, "mFLT", "%5s", "%5llu", "Number of Minor Page Faults", 1, "" },
> - { SPU_MAJOR_PAGE_FAULTS, "MFLT", "%5s", "%5llu", "Number of Major Page Faults", 1, "" },
> - { SPU_CLASS2_INTERRUPTS, "IRQ2", "%5s", "%5llu", "Number of Class2 Interrupts Received", 1, "" },
> + { SPU_VOLUNTARY_CTX_SWITCHES, "VCSW", "%6s", "%6llu", "Number of Voluntary Context Switches", 0, "" },
> + { SPU_INVOLUNTARY_CTX_SWITCHES, "ICSW", "%6s", "%6llu", "Number of Involuntary Context Switches", 0, "" },
> + { SPU_SLB_MISSES, "SLB", "%6s", "%6llu", "Number of SLB Misses", 1, "" },
> + { SPU_HASH_FAULTS, "HFLT", "%6s", "%6llu", "Number of Hash Faults", 1, "" },
> + { SPU_MINOR_PAGE_FAULTS, "mFLT", "%6s", "%6llu", "Number of Minor Page Faults", 1, "" },
> + { SPU_MAJOR_PAGE_FAULTS, "MFLT", "%6s", "%6llu", "Number of Major Page Faults", 1, "" },
> + { SPU_CLASS2_INTERRUPTS, "IRQ2", "%6s", "%6llu", "Number of Class2 Interrupts Received", 1, "" },
> { SPU_PPE_LIBRARY, "PPE_LIB", "%8s", "%8llu", "Number of PPE Assisted Library Calls Performed", 1, "" },
>
> { 0, NULL, NULL, NULL, NULL, 0 }
> Index: libspe2/tools/spu-tools/spu-tools.spec
> ===================================================================
> --- libspe2.orig/tools/spu-tools/spu-tools.spec
> +++ libspe2/tools/spu-tools/spu-tools.spec
> @@ -44,6 +44,7 @@ rm -rf $RPM_BUILD_ROOT
> %changelog
> * Thu Mar 13 2008 Andre Detsch <adetsch at br.ibm.com> 1.1-1
> - Making Per-Process view explanation a bit clearer.
> +- Additional space for some spu statistics.
>
> * Thu Jun 14 2007 Andre Detsch <adetsch at br.ibm.com> 1.0-2
> - Setting BuildRoot at spec file.
> Index: libspe2/tools/spu-tools/src/ChangeLog
> ===================================================================
> --- libspe2.orig/tools/spu-tools/src/ChangeLog
> +++ libspe2/tools/spu-tools/src/ChangeLog
> @@ -1,7 +1,7 @@
> 2008-03-13 Andre Detsch <adetsch at br.ibm.com>
>
> * spu-top.c: making Per-Process view explanation a bit clearer.
> -
> + * spu-info.c: additional space for some statistics.
>
> 2007-07-11 Andre Detsch <adetsch at br.ibm.com>
>
> _______________________________________________
> cbe-oss-dev mailing list
> cbe-oss-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/cbe-oss-dev
More information about the cbe-oss-dev
mailing list