pseudo_inst.cc (3617:384e3b1eae06) | pseudo_inst.cc (4078:3f73f808bbd4) |
---|---|
1/* 2 * Copyright (c) 2003-2006 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; --- 18 unchanged lines hidden (view full) --- 27 * 28 * Authors: Nathan Binkert 29 */ 30 31#include <errno.h> 32#include <fcntl.h> 33#include <unistd.h> 34 | 1/* 2 * Copyright (c) 2003-2006 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; --- 18 unchanged lines hidden (view full) --- 27 * 28 * Authors: Nathan Binkert 29 */ 30 31#include <errno.h> 32#include <fcntl.h> 33#include <unistd.h> 34 |
35#include <fstream> |
|
35#include <string> 36 37#include "arch/vtophys.hh" 38#include "base/annotate.hh" 39#include "cpu/base.hh" 40#include "cpu/thread_context.hh" 41#include "cpu/quiesce_event.hh" 42#include "arch/kernel_stats.hh" --- 151 unchanged lines hidden (view full) --- 194 { 195 if (!tc->getCpuPtr()->params->do_statistics_insts) 196 return; 197 198 199 Tick when = curTick + delay * Clock::Int::ns; 200 Tick repeat = period * Clock::Int::ns; 201 | 36#include <string> 37 38#include "arch/vtophys.hh" 39#include "base/annotate.hh" 40#include "cpu/base.hh" 41#include "cpu/thread_context.hh" 42#include "cpu/quiesce_event.hh" 43#include "arch/kernel_stats.hh" --- 151 unchanged lines hidden (view full) --- 195 { 196 if (!tc->getCpuPtr()->params->do_statistics_insts) 197 return; 198 199 200 Tick when = curTick + delay * Clock::Int::ns; 201 Tick repeat = period * Clock::Int::ns; 202 |
202 using namespace Stats; 203 SetupEvent(Reset, when, repeat); | 203 Stats::StatEvent(false, true, when, repeat); |
204 } 205 206 void 207 dumpstats(ThreadContext *tc, Tick delay, Tick period) 208 { 209 if (!tc->getCpuPtr()->params->do_statistics_insts) 210 return; 211 212 213 Tick when = curTick + delay * Clock::Int::ns; 214 Tick repeat = period * Clock::Int::ns; 215 | 204 } 205 206 void 207 dumpstats(ThreadContext *tc, Tick delay, Tick period) 208 { 209 if (!tc->getCpuPtr()->params->do_statistics_insts) 210 return; 211 212 213 Tick when = curTick + delay * Clock::Int::ns; 214 Tick repeat = period * Clock::Int::ns; 215 |
216 using namespace Stats; 217 SetupEvent(Dump, when, repeat); | 216 Stats::StatEvent(true, false, when, repeat); |
218 } 219 220 void 221 addsymbol(ThreadContext *tc, Addr addr, Addr symbolAddr) 222 { 223 char symb[100]; 224 CopyStringOut(tc, symb, symbolAddr, 100); 225 std::string symbol(symb); --- 23 unchanged lines hidden (view full) --- 249 { 250 if (!tc->getCpuPtr()->params->do_statistics_insts) 251 return; 252 253 254 Tick when = curTick + delay * Clock::Int::ns; 255 Tick repeat = period * Clock::Int::ns; 256 | 217 } 218 219 void 220 addsymbol(ThreadContext *tc, Addr addr, Addr symbolAddr) 221 { 222 char symb[100]; 223 CopyStringOut(tc, symb, symbolAddr, 100); 224 std::string symbol(symb); --- 23 unchanged lines hidden (view full) --- 248 { 249 if (!tc->getCpuPtr()->params->do_statistics_insts) 250 return; 251 252 253 Tick when = curTick + delay * Clock::Int::ns; 254 Tick repeat = period * Clock::Int::ns; 255 |
257 using namespace Stats; 258 SetupEvent(Dump|Reset, when, repeat); | 256 Stats::StatEvent(true, true, when, repeat); |
259 } 260 261 void 262 m5checkpoint(ThreadContext *tc, Tick delay, Tick period) 263 { 264 if (!tc->getCpuPtr()->params->do_checkpoint_insts) 265 return; 266 --- 51 unchanged lines hidden --- | 257 } 258 259 void 260 m5checkpoint(ThreadContext *tc, Tick delay, Tick period) 261 { 262 if (!tc->getCpuPtr()->params->do_checkpoint_insts) 263 return; 264 --- 51 unchanged lines hidden --- |