commit_impl.hh (8232:b28d06a175be) commit_impl.hh (8240:38befb82b2c9)
1/*
2 * Copyright (c) 2010 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

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

183 "communicate backwards")
184 .prereq(commitNonSpecStalls);
185 branchMispredicts
186 .name(name() + ".branchMispredicts")
187 .desc("The number of times a branch was mispredicted")
188 .prereq(branchMispredicts);
189 numCommittedDist
190 .init(0,commitWidth,1)
1/*
2 * Copyright (c) 2010 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

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

183 "communicate backwards")
184 .prereq(commitNonSpecStalls);
185 branchMispredicts
186 .name(name() + ".branchMispredicts")
187 .desc("The number of times a branch was mispredicted")
188 .prereq(branchMispredicts);
189 numCommittedDist
190 .init(0,commitWidth,1)
191 .name(name() + ".COM:committed_per_cycle")
191 .name(name() + ".committed_per_cycle")
192 .desc("Number of insts commited each cycle")
193 .flags(Stats::pdf)
194 ;
195
196 statComInst
197 .init(cpu->numThreads)
192 .desc("Number of insts commited each cycle")
193 .flags(Stats::pdf)
194 ;
195
196 statComInst
197 .init(cpu->numThreads)
198 .name(name() + ".COM:count")
198 .name(name() + ".count")
199 .desc("Number of instructions committed")
200 .flags(total)
201 ;
202
203 statComSwp
204 .init(cpu->numThreads)
199 .desc("Number of instructions committed")
200 .flags(total)
201 ;
202
203 statComSwp
204 .init(cpu->numThreads)
205 .name(name() + ".COM:swp_count")
205 .name(name() + ".swp_count")
206 .desc("Number of s/w prefetches committed")
207 .flags(total)
208 ;
209
210 statComRefs
211 .init(cpu->numThreads)
206 .desc("Number of s/w prefetches committed")
207 .flags(total)
208 ;
209
210 statComRefs
211 .init(cpu->numThreads)
212 .name(name() + ".COM:refs")
212 .name(name() + ".refs")
213 .desc("Number of memory references committed")
214 .flags(total)
215 ;
216
217 statComLoads
218 .init(cpu->numThreads)
213 .desc("Number of memory references committed")
214 .flags(total)
215 ;
216
217 statComLoads
218 .init(cpu->numThreads)
219 .name(name() + ".COM:loads")
219 .name(name() + ".loads")
220 .desc("Number of loads committed")
221 .flags(total)
222 ;
223
224 statComMembars
225 .init(cpu->numThreads)
220 .desc("Number of loads committed")
221 .flags(total)
222 ;
223
224 statComMembars
225 .init(cpu->numThreads)
226 .name(name() + ".COM:membars")
226 .name(name() + ".membars")
227 .desc("Number of memory barriers committed")
228 .flags(total)
229 ;
230
231 statComBranches
232 .init(cpu->numThreads)
227 .desc("Number of memory barriers committed")
228 .flags(total)
229 ;
230
231 statComBranches
232 .init(cpu->numThreads)
233 .name(name() + ".COM:branches")
233 .name(name() + ".branches")
234 .desc("Number of branches committed")
235 .flags(total)
236 ;
237
238 statComFloating
239 .init(cpu->numThreads)
234 .desc("Number of branches committed")
235 .flags(total)
236 ;
237
238 statComFloating
239 .init(cpu->numThreads)
240 .name(name() + ".COM:fp_insts")
240 .name(name() + ".fp_insts")
241 .desc("Number of committed floating point instructions.")
242 .flags(total)
243 ;
244
245 statComInteger
246 .init(cpu->numThreads)
241 .desc("Number of committed floating point instructions.")
242 .flags(total)
243 ;
244
245 statComInteger
246 .init(cpu->numThreads)
247 .name(name()+".COM:int_insts")
247 .name(name()+".int_insts")
248 .desc("Number of committed integer instructions.")
249 .flags(total)
250 ;
251
252 statComFunctionCalls
253 .init(cpu->numThreads)
248 .desc("Number of committed integer instructions.")
249 .flags(total)
250 ;
251
252 statComFunctionCalls
253 .init(cpu->numThreads)
254 .name(name()+".COM:function_calls")
254 .name(name()+".function_calls")
255 .desc("Number of function calls committed.")
256 .flags(total)
257 ;
258
259 commitEligible
260 .init(cpu->numThreads)
255 .desc("Number of function calls committed.")
256 .flags(total)
257 ;
258
259 commitEligible
260 .init(cpu->numThreads)
261 .name(name() + ".COM:bw_limited")
261 .name(name() + ".bw_limited")
262 .desc("number of insts not committed due to BW limits")
263 .flags(total)
264 ;
265
266 commitEligibleSamples
262 .desc("number of insts not committed due to BW limits")
263 .flags(total)
264 ;
265
266 commitEligibleSamples
267 .name(name() + ".COM:bw_lim_events")
267 .name(name() + ".bw_lim_events")
268 .desc("number cycles where commit BW limit reached")
269 ;
270}
271
272template <class Impl>
273void
274DefaultCommit<Impl>::setThreads(std::vector<Thread *> &threads)
275{

--- 1202 unchanged lines hidden ---
268 .desc("number cycles where commit BW limit reached")
269 ;
270}
271
272template <class Impl>
273void
274DefaultCommit<Impl>::setThreads(std::vector<Thread *> &threads)
275{

--- 1202 unchanged lines hidden ---