Update so that statistics can be plotted correctly
util/stats/stats.py: Changed some stuff for graphing purposes: full_cpu is now full0 frequencies are now s,m,f,q not s,6,8,q L2 is now l2 etherdev is now etherdev0 May want to consider fact that NAT box should be the sum of etherdev0 and etherdev1 (not in script yet) --HG-- extra : convert_revision : 39a7d0bcf1b9354a77c12de5981e8277408ba791
This commit is contained in:
parent
50269754f9
commit
59f43580bc
1 changed files with 38 additions and 38 deletions
|
@ -103,7 +103,7 @@ def graphdata68(runs, options, tag, label, value):
|
||||||
#print >>f, '#set sublabels = %s' % ' '.join(configs)
|
#print >>f, '#set sublabels = %s' % ' '.join(configs)
|
||||||
print >>f, '#set sublabels = ste hte htd ocm occ ocs'
|
print >>f, '#set sublabels = ste hte htd ocm occ ocs'
|
||||||
|
|
||||||
for speed,freq in zip(['s', '6', '8', 'q'],['4GHz', '6GHz','8GHz', '10GHz']):
|
for speed,freq in zip(['s', 'm', 'f', 'q'],['4GHz', '6GHz','8GHz', '10GHz']):
|
||||||
print >>f, '"%s"' % freq,
|
print >>f, '"%s"' % freq,
|
||||||
for conf in configs:
|
for conf in configs:
|
||||||
name = '%s.%s.%s.%s.%s' % (conf, bench, dma, cache, speed)
|
name = '%s.%s.%s.%s.%s' % (conf, bench, dma, cache, speed)
|
||||||
|
@ -459,41 +459,41 @@ def commands(options, command, args):
|
||||||
|
|
||||||
if command == 'usertime':
|
if command == 'usertime':
|
||||||
import copy
|
import copy
|
||||||
kernel = copy.copy(system.full_cpu.numCycles)
|
kernel = copy.copy(system.full0.numCycles)
|
||||||
kernel.bins = 'kernel'
|
kernel.bins = 'kernel'
|
||||||
|
|
||||||
user = copy.copy(system.full_cpu.numCycles)
|
user = copy.copy(system.full0.numCycles)
|
||||||
user.bins = 'user'
|
user.bins = 'user'
|
||||||
|
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'usertime', 'User Fraction',
|
graphdata(runs, options, 'usertime', 'User Fraction',
|
||||||
user / system.full_cpu.numCycles)
|
user / system.full0.numCycles)
|
||||||
else:
|
else:
|
||||||
printdata(runs, user / system.full_cpu.numCycles)
|
printdata(runs, user / system.full0.numCycles)
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'ticks':
|
if command == 'ticks':
|
||||||
if options.binned:
|
if options.binned:
|
||||||
print 'kernel ticks'
|
print 'kernel ticks'
|
||||||
system.full_cpu.numCycles.bins = 'kernel'
|
system.full0.numCycles.bins = 'kernel'
|
||||||
printdata(runs, system.full_cpu.numCycles)
|
printdata(runs, system.full0.numCycles)
|
||||||
|
|
||||||
print 'idle ticks'
|
print 'idle ticks'
|
||||||
system.full_cpu.numCycles.bins = 'idle'
|
system.full0.numCycles.bins = 'idle'
|
||||||
printdata(runs, system.full_cpu.numCycles)
|
printdata(runs, system.full0.numCycles)
|
||||||
|
|
||||||
print 'user ticks'
|
print 'user ticks'
|
||||||
system.full_cpu.numCycles.bins = 'user'
|
system.full0.numCycles.bins = 'user'
|
||||||
printdata(runs, system.full_cpu.numCycles)
|
printdata(runs, system.full0.numCycles)
|
||||||
|
|
||||||
print 'total ticks'
|
print 'total ticks'
|
||||||
|
|
||||||
system.full_cpu.numCycles.bins = None
|
system.full0.numCycles.bins = None
|
||||||
printdata(runs, system.full_cpu.numCycles)
|
printdata(runs, system.full0.numCycles)
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'packets':
|
if command == 'packets':
|
||||||
packets = system.tsunami.etherdev.rxPackets
|
packets = system.tsunami.etherdev0.rxPackets
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'packets', 'Packets', packets)
|
graphdata(runs, options, 'packets', 'Packets', packets)
|
||||||
else:
|
else:
|
||||||
|
@ -501,12 +501,12 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'ppt' or command == 'tpp':
|
if command == 'ppt' or command == 'tpp':
|
||||||
ppt = system.tsunami.etherdev.rxPackets / sim_ticks
|
ppt = system.tsunami.etherdev0.rxPackets / sim_ticks
|
||||||
printdata(runs, ppt, command == 'tpp')
|
printdata(runs, ppt, command == 'tpp')
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'pps':
|
if command == 'pps':
|
||||||
pps = system.tsunami.etherdev.rxPackets / sim_seconds
|
pps = system.tsunami.etherdev0.rxPackets / sim_seconds
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'pps', 'Packets/s', pps)
|
graphdata(runs, options, 'pps', 'Packets/s', pps)
|
||||||
else:
|
else:
|
||||||
|
@ -514,7 +514,7 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'bpt' or command == 'tpb':
|
if command == 'bpt' or command == 'tpb':
|
||||||
bytes = system.tsunami.etherdev.rxBytes + system.tsunami.etherdev.txBytes
|
bytes = system.tsunami.etherdev0.rxBytes + system.tsunami.etherdev0.txBytes
|
||||||
bpt = bytes / sim_ticks * 8
|
bpt = bytes / sim_ticks * 8
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'bpt', 'bps / Hz', bpt)
|
graphdata(runs, options, 'bpt', 'bps / Hz', bpt)
|
||||||
|
@ -523,7 +523,7 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'bptb' or command == 'tpbb':
|
if command == 'bptb' or command == 'tpbb':
|
||||||
bytes = system.tsunami.etherdev.rxBytes + system.tsunami.etherdev.txBytes
|
bytes = system.tsunami.etherdev0.rxBytes + system.tsunami.etherdev0.txBytes
|
||||||
|
|
||||||
print 'kernel stats'
|
print 'kernel stats'
|
||||||
bytes.bins = 'kernel'
|
bytes.bins = 'kernel'
|
||||||
|
@ -540,7 +540,7 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'bytes':
|
if command == 'bytes':
|
||||||
stat = system.tsunami.etherdev.rxBytes + system.tsunami.etherdev.txBytes
|
stat = system.tsunami.etherdev0.rxBytes + system.tsunami.etherdev0.txBytes
|
||||||
|
|
||||||
if options.binned:
|
if options.binned:
|
||||||
print '%s kernel stats' % stat.name
|
print '%s kernel stats' % stat.name
|
||||||
|
@ -562,7 +562,7 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'rxbps':
|
if command == 'rxbps':
|
||||||
gbps = system.tsunami.etherdev.rxBandwidth / 1e9
|
gbps = system.tsunami.etherdev0.rxBandwidth / 1e9
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'rxbps', 'Bandwidth (Gbps)', gbps)
|
graphdata(runs, options, 'rxbps', 'Bandwidth (Gbps)', gbps)
|
||||||
else:
|
else:
|
||||||
|
@ -570,7 +570,7 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'txbps':
|
if command == 'txbps':
|
||||||
gbps = system.tsunami.etherdev.txBandwidth / 1e9
|
gbps = system.tsunami.etherdev0.txBandwidth / 1e9
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'txbps', 'Bandwidth (Gbps)', gbps)
|
graphdata(runs, options, 'txbps', 'Bandwidth (Gbps)', gbps)
|
||||||
else:
|
else:
|
||||||
|
@ -578,8 +578,8 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'bps':
|
if command == 'bps':
|
||||||
rxbps = system.tsunami.etherdev.rxBandwidth
|
rxbps = system.tsunami.etherdev0.rxBandwidth
|
||||||
txbps = system.tsunami.etherdev.txBandwidth
|
txbps = system.tsunami.etherdev0.txBandwidth
|
||||||
gbps = (rxbps + txbps) / 1e9
|
gbps = (rxbps + txbps) / 1e9
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'bps', 'Bandwidth (Gbps)', gbps)
|
graphdata(runs, options, 'bps', 'Bandwidth (Gbps)', gbps)
|
||||||
|
@ -588,7 +588,7 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'misses':
|
if command == 'misses':
|
||||||
stat = system.L2.overall_mshr_misses
|
stat = system.l2.overall_mshr_misses
|
||||||
if options.binned:
|
if options.binned:
|
||||||
print '%s kernel stats' % stat.name
|
print '%s kernel stats' % stat.name
|
||||||
stat.bins = 'kernel'
|
stat.bins = 'kernel'
|
||||||
|
@ -612,9 +612,9 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'mpkb':
|
if command == 'mpkb':
|
||||||
misses = system.L2.overall_mshr_misses
|
misses = system.l2.overall_mshr_misses
|
||||||
rxbytes = system.tsunami.etherdev.rxBytes
|
rxbytes = system.tsunami.etherdev0.rxBytes
|
||||||
txbytes = system.tsunami.etherdev.txBytes
|
txbytes = system.tsunami.etherdev0.txBytes
|
||||||
|
|
||||||
if options.binned:
|
if options.binned:
|
||||||
print 'mpkb kernel stats'
|
print 'mpkb kernel stats'
|
||||||
|
@ -643,9 +643,9 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'ipkb':
|
if command == 'ipkb':
|
||||||
interrupts = system.full_cpu.kern.faults[4]
|
interrupts = system.full0.kern.faults[4]
|
||||||
rxbytes = system.tsunami.etherdev.rxBytes
|
rxbytes = system.tsunami.etherdev0.rxBytes
|
||||||
txbytes = system.tsunami.etherdev.txBytes
|
txbytes = system.tsunami.etherdev0.txBytes
|
||||||
|
|
||||||
if options.binned:
|
if options.binned:
|
||||||
print 'ipkb kernel stats'
|
print 'ipkb kernel stats'
|
||||||
|
@ -674,19 +674,19 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'execute':
|
if command == 'execute':
|
||||||
printdata(runs, system.full_cpu.ISSUE__count)
|
printdata(runs, system.full0.ISSUE__count)
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'commit':
|
if command == 'commit':
|
||||||
printdata(runs, system.full_cpu.COM__count)
|
printdata(runs, system.full0.COM__count)
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'fetch':
|
if command == 'fetch':
|
||||||
printdata(runs, system.full_cpu.FETCH__count)
|
printdata(runs, system.full0.FETCH__count)
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'bpp':
|
if command == 'bpp':
|
||||||
ed = system.tsunami.etherdev
|
ed = system.tsunami.etherdev0
|
||||||
bpp = (ed.rxBytes + ed.txBytes) / (ed.rxPackets + ed.txPackets)
|
bpp = (ed.rxBytes + ed.txBytes) / (ed.rxPackets + ed.txPackets)
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'bpp', 'Bytes / Packet', bpp)
|
graphdata(runs, options, 'bpp', 'Bytes / Packet', bpp)
|
||||||
|
@ -695,7 +695,7 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'rxbpp':
|
if command == 'rxbpp':
|
||||||
bpp = system.tsunami.etherdev.rxBytes / system.tsunami.etherdev.rxPackets
|
bpp = system.tsunami.etherdev0.rxBytes / system.tsunami.etherdev0.rxPackets
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'rxbpp', 'Receive Bytes / Packet', bpp)
|
graphdata(runs, options, 'rxbpp', 'Receive Bytes / Packet', bpp)
|
||||||
else:
|
else:
|
||||||
|
@ -703,7 +703,7 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'txbpp':
|
if command == 'txbpp':
|
||||||
bpp = system.tsunami.etherdev.txBytes / system.tsunami.etherdev.txPackets
|
bpp = system.tsunami.etherdev0.txBytes / system.tsunami.etherdev0.txPackets
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'txbpp', 'Transmit Bytes / Packet', bpp)
|
graphdata(runs, options, 'txbpp', 'Transmit Bytes / Packet', bpp)
|
||||||
else:
|
else:
|
||||||
|
@ -711,7 +711,7 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'rtp':
|
if command == 'rtp':
|
||||||
rtp = system.tsunami.etherdev.rxPackets / system.tsunami.etherdev.txPackets
|
rtp = system.tsunami.etherdev0.rxPackets / system.tsunami.etherdev0.txPackets
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'rtp', 'rxPackets / txPackets', rtp)
|
graphdata(runs, options, 'rtp', 'rxPackets / txPackets', rtp)
|
||||||
else:
|
else:
|
||||||
|
@ -719,7 +719,7 @@ def commands(options, command, args):
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'rtb':
|
if command == 'rtb':
|
||||||
rtb = system.tsunami.etherdev.rxBytes / system.tsunami.etherdev.txBytes
|
rtb = system.tsunami.etherdev0.rxBytes / system.tsunami.etherdev0.txBytes
|
||||||
if options.graph:
|
if options.graph:
|
||||||
graphdata(runs, options, 'rtb', 'rxBytes / txBytes', rtb)
|
graphdata(runs, options, 'rtb', 'rxBytes / txBytes', rtb)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue