18 #define SNPRINTF(buf, size, fmt, args...) \
20 size_t r = snprintf(buf, size, fmt, ## args); \
21 r > size ? size : r; \
33 " PerfTop:%8.0f irqs/sec kernel:%4.1f%%"
34 " exact: %4.1f%% [", samples_per_sec,
35 100.0 - (100.0 * ((samples_per_sec - ksamples_per_sec) /
44 " PerfTop:%8.0f irqs/sec kernel:%4.1f%% us:%4.1f%%"
45 " guest kernel:%4.1f%% guest us:%4.1f%%"
46 " exact: %4.1f%% [", samples_per_sec,
47 100.0 - (100.0 * ((samples_per_sec - ksamples_per_sec) /
49 100.0 - (100.0 * ((samples_per_sec - us_samples_per_sec) /
51 100.0 - (100.0 * ((samples_per_sec -
52 guest_kernel_samples_per_sec) /
54 100.0 - (100.0 * ((samples_per_sec -
55 guest_us_samples_per_sec) /
60 if (top->
evlist->nr_entries == 1) {
64 top->
freq ?
"Hz" :
"");
85 top->
evlist->cpus->nr > 1 ?
"s" :
"",
93 top->
evlist->cpus->nr > 1 ?
"s" :
"");