search for: cxstat

Displaying 3 results from an estimated 3 matches for "cxstat".

Did you mean: c_stat
2011 Dec 21
2
[PATCH] xenpm: assorted adjustments
...state related info when CPU idle management is disabled in the hypervisor - use calloc() for array allocations that also got cleared via memset() so far Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/tools/misc/xenpm.c +++ b/tools/misc/xenpm.c @@ -87,20 +87,20 @@ static void print_cxstat(int cpuid, stru cxstat->idle_time/1000000UL); for ( i = 0; i < cxstat->nr; i++ ) { - printf("C%d : transition [%020"PRIu64"]\n", + printf("C%-20d: transition [%20"PRIu64"]\n", i, c...
2011 Oct 25
5
[PATCH] pm : provide CC7/PC2 residency
..._t; diff -r 662dbf6ee71c tools/misc/xenpm.c --- a/tools/misc/xenpm.c Mon Oct 24 18:01:07 2011 +0100 +++ b/tools/misc/xenpm.c Fri Oct 28 21:33:07 2011 +0800 @@ -92,13 +92,17 @@ printf(" residency [%020"PRIu64" ms]\n", cxstat->residencies[i]/1000000UL); } - printf("pc3 : [%020"PRIu64" ms]\n" + printf("pc2 : [%020"PRIu64" ms]\n" + "pc3 : [%020"PRIu64" ms]\n" "pc6...
2012 Sep 14
1
[PATCH] xenpm: make argument parsing and error handling more consistent
...cpuid); + + if ( argc == 0 || sscanf(argv[argc > 1], "%d", val) != 1 ) + { + fprintf(stderr, argc ? "Invalid %s ''%s''\n" : "Missing %s\n", + what, argv[argc > 1]); + exit(EINVAL); + } +} + static void print_cxstat(int cpuid, struct xc_cx_stat *cxstat) { int i; @@ -166,7 +193,8 @@ static int show_cxstat_by_cpuid(xc_inter if ( ret ) { if ( ret == -ENODEV ) - printf("Either xen cpuidle is disabled or no valid information is registered!\n"); + fprintf(stde...