mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Change timestamps representation for keyhandlers
For different keyhandlers, replace a hex with delimiter representation of time to PRI_stime which is decimal ns currently. Signed-off-by: Andrii Anisov <andrii_anisov@epam.com> Reviewed-by: Dario Faggioli <dfaggioli@suse.com> Acked-by: Wei Liu <wei.liu2@citrix.com> Acked-by: George Dunlap <george.dunlap@citrix.com>
This commit is contained in:
1 parent
8f29f3ead2
commit
889b200cb5
5 files changed
+11
-15
No files matched your search
+2
-2
@@ -378,8 +378,8 @@ static void dump_numa(unsigned char key)
|
||||
unsigned int page_num_node[MAX_NUMNODES];
|
||||
const struct vnuma_info *vnuma;
|
||||
|
||||
printk("'%c' pressed -> dumping numa info (now-0x%X:%08X)\n", key,
|
||||
(u32)(now>>32), (u32)now);
|
||||
printk("'%c' pressed -> dumping numa info (now = %"PRI_stime")\n", key,
|
||||
now);
|
||||
|
||||
for_each_online_node ( i )
|
||||
{
|
||||
|
||||
@@ -286,8 +286,8 @@ static void dump_domains(unsigned char key)
|
||||
s_time_t now = NOW();
|
||||
#define tmpstr keyhandler_scratch
|
||||
|
||||
printk("'%c' pressed -> dumping domain info (now=0x%X:%08X)\n", key,
|
||||
(u32)(now>>32), (u32)now);
|
||||
printk("'%c' pressed -> dumping domain info (now = %"PRI_stime"\n", key,
|
||||
now);
|
||||
|
||||
rcu_read_lock(&domlist_read_lock);
|
||||
|
||||
|
||||
@@ -2420,8 +2420,8 @@ static void dump_heap(unsigned char key)
|
||||
s_time_t now = NOW();
|
||||
int i, j;
|
||||
|
||||
printk("'%c' pressed -> dumping heap info (now-0x%X:%08X)\n", key,
|
||||
(u32)(now>>32), (u32)now);
|
||||
printk("'%c' pressed -> dumping heap info (now = %"PRI_stime")\n", key,
|
||||
now);
|
||||
|
||||
for ( i = 0; i < MAX_NUMNODES; i++ )
|
||||
{
|
||||
|
||||
+2
-4
@@ -33,8 +33,7 @@ void perfc_printall(unsigned char key)
|
||||
unsigned int i, j;
|
||||
s_time_t now = NOW();
|
||||
|
||||
printk("Xen performance counters SHOW (now = 0x%08X:%08X)\n",
|
||||
(u32)(now>>32), (u32)now);
|
||||
printk("Xen performance counters SHOW (now = %"PRI_stime")\n", now);
|
||||
|
||||
for ( i = j = 0; i < NR_PERFCTRS; i++ )
|
||||
{
|
||||
@@ -122,8 +121,7 @@ void perfc_reset(unsigned char key)
|
||||
s_time_t now = NOW();
|
||||
|
||||
if ( key != '\0' )
|
||||
printk("Xen performance counters RESET (now = 0x%08X:%08X)\n",
|
||||
(u32)(now>>32), (u32)now);
|
||||
printk("Xen performance counters RESET (now = %"PRI_stime")\n", now);
|
||||
|
||||
/* leave STATUS counters alone -- don't reset */
|
||||
|
||||
|
||||
@@ -359,9 +359,8 @@ void spinlock_profile_printall(unsigned char key)
|
||||
s_time_t diff;
|
||||
|
||||
diff = now - lock_profile_start;
|
||||
printk("Xen lock profile info SHOW (now = %08X:%08X, "
|
||||
"total = %08X:%08X)\n", (u32)(now>>32), (u32)now,
|
||||
(u32)(diff>>32), (u32)diff);
|
||||
printk("Xen lock profile info SHOW (now = %"PRI_stime" total = "
|
||||
"%"PRI_stime")\n", now, diff);
|
||||
spinlock_profile_iterate(spinlock_profile_print_elem, NULL);
|
||||
}
|
||||
|
||||
@@ -379,8 +378,7 @@ void spinlock_profile_reset(unsigned char key)
|
||||
s_time_t now = NOW();
|
||||
|
||||
if ( key != '\0' )
|
||||
printk("Xen lock profile info RESET (now = %08X:%08X)\n",
|
||||
(u32)(now>>32), (u32)now);
|
||||
printk("Xen lock profile info RESET (now = %"PRI_stime")\n", now);
|
||||
lock_profile_start = now;
|
||||
spinlock_profile_iterate(spinlock_profile_reset_elem, NULL);
|
||||
}
|
||||
|
||||