kernel_stats.cc (5568:d14250d688d2) | kernel_stats.cc (7823:dac01f14f20f) |
---|---|
1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 129 unchanged lines hidden (view full) --- 138 if (newmode == themode) 139 return; 140 141 DPRINTF(Context, "old mode=%s new mode=%s pid=%d\n", 142 modestr[themode], modestr[newmode], 143 Linux::ThreadInfo(tc).curTaskPID()); 144 145 _modeGood[newmode]++; | 1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 129 unchanged lines hidden (view full) --- 138 if (newmode == themode) 139 return; 140 141 DPRINTF(Context, "old mode=%s new mode=%s pid=%d\n", 142 modestr[themode], modestr[newmode], 143 Linux::ThreadInfo(tc).curTaskPID()); 144 145 _modeGood[newmode]++; |
146 _modeTicks[themode] += curTick - lastModeTick; | 146 _modeTicks[themode] += curTick() - lastModeTick; |
147 | 147 |
148 lastModeTick = curTick; | 148 lastModeTick = curTick(); |
149 themode = newmode; 150} 151 152void 153Statistics::mode(cpu_mode newmode, ThreadContext *tc) 154{ 155 Addr pcbb = tc->readMiscRegNoEffect(IPR_PALtemp23); 156 --- 61 unchanged lines hidden --- | 149 themode = newmode; 150} 151 152void 153Statistics::mode(cpu_mode newmode, ThreadContext *tc) 154{ 155 Addr pcbb = tc->readMiscRegNoEffect(IPR_PALtemp23); 156 --- 61 unchanged lines hidden --- |