search for: cxstat_end

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

2012 May 29
0
[PATCH] xenpm: Fix reporting of C0 residence times
...5 tools/misc/xenpm.c --- a/tools/misc/xenpm.c Fri May 25 08:21:25 2012 +0100 +++ b/tools/misc/xenpm.c Tue May 29 18:41:20 2012 +0200 @@ -351,8 +351,12 @@ static void signal_int_handler(int signo for ( i = 0; i < max_cpu_nr; i++ ) if ( !get_cxstat_by_cpuid(xc_handle, i, &cxstat_end[i]) ) for ( j = 0; j < cxstat_end[i].nr; j++ ) - sum_cx[i] += cxstat_end[i].residencies[j] - - cxstat_start[i].residencies[j]; + { + int64_t diff = (int64_t)cxstat_end[i].residencies[j] - +...
2011 Oct 25
5
[PATCH] pm : provide CC7/PC2 residency
...;, + cxstat->cc3/1000000UL, cxstat->cc6/1000000UL, + cxstat->cc7/1000000UL); printf("\n"); } @@ -458,6 +462,9 @@ break; } printf("Socket %d\n", socket_ids[i]); + res = cxstat_end[j].pc2 - cxstat_start[j].pc2; + printf("\tPC2\t%"PRIu64" ms\t%.2f%%\n", res / 1000000UL, + 100UL * res / (double)sum_cx[j]); res = cxstat_end[j].pc3 - cxstat_start[j].pc3; printf("\tPC3\t%"PRIu64&q...
2011 Dec 21
2
[PATCH] xenpm: assorted adjustments
...id signal_int_handler(int signo if ( cpu_to_socket[j] == socket_ids[i] ) break; } - printf("Socket %d\n", socket_ids[i]); + printf("\nSocket %d\n", socket_ids[i]); res = cxstat_end[j].pc2 - cxstat_start[j].pc2; printf("\tPC2\t%"PRIu64" ms\t%.2f%%\n", res / 1000000UL, 100UL * res / (double)sum_cx[j]); @@ -492,12 +488,9 @@ static void signal_int_handler(int signo res = cxstat_end[j].cc7 - cxstat_...