base.cc (8607:5fb918115c07) base.cc (8634:8390f2d80227)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2011 Regents of the University of California
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 176 unchanged lines hidden (view full) ---

185 for (ThreadID tid = 0; tid < numThreads; ++tid) {
186 Event *event = new CountedExitEvent(cause, *counter);
187 comLoadEventQueue[tid]->schedule(event, p->max_loads_all_threads);
188 }
189 }
190
191 functionTracingEnabled = false;
192 if (p->function_trace) {
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2011 Regents of the University of California
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 176 unchanged lines hidden (view full) ---

185 for (ThreadID tid = 0; tid < numThreads; ++tid) {
186 Event *event = new CountedExitEvent(cause, *counter);
187 comLoadEventQueue[tid]->schedule(event, p->max_loads_all_threads);
188 }
189 }
190
191 functionTracingEnabled = false;
192 if (p->function_trace) {
193 functionTraceStream = simout.find(csprintf("ftrace.%s", name()));
193 const string fname = csprintf("ftrace.%s", name());
194 functionTraceStream = simout.find(fname);
195 if (!functionTraceStream)
196 functionTraceStream = simout.create(fname);
197
194 currentFunctionStart = currentFunctionEnd = 0;
195 functionEntryTick = p->function_trace_start;
196
197 if (p->function_trace_start == 0) {
198 functionTracingEnabled = true;
199 } else {
200 typedef EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace> wrap;
201 Event *event = new wrap(this, true);

--- 282 unchanged lines hidden ---
198 currentFunctionStart = currentFunctionEnd = 0;
199 functionEntryTick = p->function_trace_start;
200
201 if (p->function_trace_start == 0) {
202 functionTracingEnabled = true;
203 } else {
204 typedef EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace> wrap;
205 Event *event = new wrap(this, true);

--- 282 unchanged lines hidden ---