#include <stack>
#include <string>
+#include "arch/alpha/linux/threadinfo.hh"
#include "arch/alpha/kernel_stats.hh"
#include "arch/alpha/osfpal.hh"
#include "base/trace.hh"
if (newmode == themode)
return;
- DPRINTF(Context, "old mode=%-8s new mode=%-8s\n",
- modestr[themode], modestr[newmode]);
+ DPRINTF(Context, "old mode=%s new mode=%s pid=%d\n",
+ modestr[themode], modestr[newmode],
+ Linux::ThreadInfo(tc).curTaskPID());
_modeGood[newmode]++;
_modeTicks[themode] += curTick - lastModeTick;
void
Statistics::mode(cpu_mode newmode, ThreadContext *tc)
{
- Addr pcbb = tc->readMiscRegNoEffect(AlphaISA::IPR_PALtemp23);
+ Addr pcbb = tc->readMiscRegNoEffect(IPR_PALtemp23);
if (newmode == kernel && pcbb == idleProcess)
newmode = idle;
_swap_context++;
changeMode(newpcbb == idleProcess ? idle : kernel, tc);
+
+ DPRINTF(Context, "Context Switch old pid=%d new pid=%d\n",
+ Linux::ThreadInfo(tc, oldpcbb).curTaskPID(),
+ Linux::ThreadInfo(tc, newpcbb).curTaskPID());
}
void
themode = (cpu_mode)exemode;
}
-} /* end namespace AlphaISA::Kernel */
-} /* end namespace AlphaISA */
+} // namespace Kernel
+} // namespace AlphaISA