base.cc (11325:67cc559d513a) | base.cc (11359:b0b976a1ceda) |
---|---|
1/* 2 * Copyright (c) 2011-2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 204 unchanged lines hidden (view full) --- 213 Event *event = new CountedExitEvent(cause, *counter); 214 comLoadEventQueue[tid]->schedule(event, p->max_loads_all_threads); 215 } 216 } 217 218 functionTracingEnabled = false; 219 if (p->function_trace) { 220 const string fname = csprintf("ftrace.%s", name()); | 1/* 2 * Copyright (c) 2011-2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 204 unchanged lines hidden (view full) --- 213 Event *event = new CountedExitEvent(cause, *counter); 214 comLoadEventQueue[tid]->schedule(event, p->max_loads_all_threads); 215 } 216 } 217 218 functionTracingEnabled = false; 219 if (p->function_trace) { 220 const string fname = csprintf("ftrace.%s", name()); |
221 functionTraceStream = simout.find(fname); 222 if (!functionTraceStream) 223 functionTraceStream = simout.create(fname); | 221 functionTraceStream = simout.findOrCreate(fname)->stream(); |
224 225 currentFunctionStart = currentFunctionEnd = 0; 226 functionEntryTick = p->function_trace_start; 227 228 if (p->function_trace_start == 0) { 229 functionTracingEnabled = true; 230 } else { 231 typedef EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace> wrap; --- 519 unchanged lines hidden --- | 222 223 currentFunctionStart = currentFunctionEnd = 0; 224 functionEntryTick = p->function_trace_start; 225 226 if (p->function_trace_start == 0) { 227 functionTracingEnabled = true; 228 } else { 229 typedef EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace> wrap; --- 519 unchanged lines hidden --- |