Date: | Wed, 3 Jun 2009 17:34:26 +0200 |
---|---|
From: | David Bonavila <david.bonavila@xxxxxxxxxxxxxxxxxx> |
Subject: | Re: [Gems-users] How to count "Privileged" instructions in Opal?? |
Hello again. I have changed the code, and now it is like this: /*---------------------------------------------------*/ /* Variable declarations */ /*---------------------------------------------------*/ bool last_mode[2] = { false, false }; // transformes it into global int iPriv[2] = { 0, 0 }; // we have 2 cores int iUser[2] = { 0, 0 }; [...] if (d_instr) last_mode[proc] = d_instr->getPrivilegeMode(); [...] m_stat_committed[proc]++; // this line was already there if (last_mode[proc]) iPriv[proc]++; // I have added these 2 lines else iUser[proc]++; [...] out_info(" %-50.50s %10llu\n", "PRIVILEGED INSTRUCTIONS:", iPriv[k]); out_info(" %-50.50s %10llu\n", "USER_MODE INSTRUCTIONS:", iUser[k]); and the Opal stats file shows: [0] PRIVILEGED INSTRUCTIONS: 767827 [0] USER_MODE INSTRUCTIONS: 232177 [1] PRIVILEGED INSTRUCTIONS: 767827 [1] USER_MODE INSTRUCTIONS: 232177 Now the sum of privileged + user instructions is correct, 1 million, but the number of privileged instructions is the same for the 2 cores, and the number of user instructions is the same for both cores also. What am I doing wrong now?? Thank you!! 2009/6/2 David Bonavila <david.bonavila@xxxxxxxxxxxxxxxxxx>
|
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | Re: [Gems-users] FILE_SPECIFIED Topology, Javi Merino |
---|---|
Next by Date: | Re: [Gems-users] FILE_SPECIFIED Topology, Edward Lee |
Previous by Thread: | Re: [Gems-users] How to count "Privileged" instructions in Opal??, Philip Garcia |
Next by Thread: | Re: [Gems-users] How to count "Privileged" instructions in Opal??, Philip Garcia |
Indexes: | [Date] [Thread] |