From 357e0db52fff894b13a757e09ed808966944a337 Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Mon, 12 Apr 2010 15:04:16 -0400 Subject: Add more descriptive debug information for pm_common --- pm_test/pm_common.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pm_test/pm_common.c') diff --git a/pm_test/pm_common.c b/pm_test/pm_common.c index 75118a4..623c3e0 100644 --- a/pm_test/pm_common.c +++ b/pm_test/pm_common.c @@ -596,7 +596,7 @@ void get_ovd_plen_umaxeon(struct full_ovd_plen *full_costs, int num_samples, last_cpu = full_costs[i].last_cpu; if (curr_cpu == last_cpu) { - dprintf("preempt\n"); + dprintf("preempt (%d, %d)\n", last_cpu, curr_cpu); /* preemption */ preempt[*pcount].ovd = full_costs[i].ovd; preempt[*pcount].plen = full_costs[i].plen; @@ -613,7 +613,7 @@ void get_ovd_plen_umaxeon(struct full_ovd_plen *full_costs, int num_samples, if (((curr_cpu / num_phys_cpu) / cores_per_l2) == ((last_cpu / num_phys_cpu) / cores_per_l2)) { /* they share also L2 */ - dprintf("same L2\n"); + dprintf("same L2 (%d,%d)\n", last_cpu, curr_cpu); samel2[*l2count].ovd = full_costs[i].ovd; samel2[*l2count].plen = full_costs[i].plen; (*l2count)++; @@ -621,7 +621,7 @@ void get_ovd_plen_umaxeon(struct full_ovd_plen *full_costs, int num_samples, continue; } else { /* this is an L3 migration */ - dprintf("same L3\n"); + dprintf("same L3 (%d,%d)\n", last_cpu, curr_cpu); samechip[*chipcount].ovd = full_costs[i].ovd; samechip[*chipcount].plen = full_costs[i].plen; (*chipcount)++; @@ -630,6 +630,7 @@ void get_ovd_plen_umaxeon(struct full_ovd_plen *full_costs, int num_samples, } } else { /* ok, just L2 on this machine, this is an L2 migration */ + dprintf("same L2 (%d,%d)\n", last_cpu, curr_cpu); samechip[*chipcount].ovd = full_costs[i].ovd; samechip[*chipcount].plen = full_costs[i].plen; (*chipcount)++; @@ -638,7 +639,7 @@ void get_ovd_plen_umaxeon(struct full_ovd_plen *full_costs, int num_samples, } } - dprintf("offchip\n"); + dprintf("memory (%d,%d)\n", last_cpu, curr_cpu); /* if we are here it should have been an offchip migration */ offchip[*offcount].ovd = full_costs[i].ovd; offchip[*offcount].plen = full_costs[i].plen; -- cgit v1.2.2