Discussion:
[gem5-users] multi-program tracing
ya di
2018-08-07 02:58:06 UTC
Permalink
Now, I want run two threads on a single core. Thus I choose SE mode because
in FS mode the thread will be distributed to each core. And there is one
thread in one core.

The command I use is shown as:
./build/ALPHA/gem5.opt --debug-flag=Exec configs/example/se.py -c
"tests/test-progs/hello/bin/alpha/linux/hello;tests/test-progs/hello/bin/alpha/linux/hello"
-n 1 --cpu-type=DerivO3CPU --caches

However I do not sure if this satisfy my requirement. Can anyone give me
the suggestions?

Besides, I get the results as :

77500: system.cpu T0 : @_start : br r29,0x120000174 : IntAlu :
D=0x0000000120000174
77500: system.cpu T0 : @_start+4 : ldah r29,9(r29) : IntAlu
: D=0x0000000120090174
77500: system.cpu T0 : @_start+8 : lda r29,10476(r29) : IntAlu
: D=0x0000000120092a60
77500: system.cpu T0 : @_start+12 : subq r30,16,r30 :
IntAlu : D=0x000000011ff91ff0
128500: system.cpu T0 : @_start+16 : ldq
r16,18446744073709521448(r29) : MemRead : A=0x12008b488
141000: system.cpu T0 : @_start+16 : ldq
r16,18446744073709521448(r29) : MemRead : D=0x00000001200002e0
A=0x12008b488
141000: system.cpu T0 : @_start+20 : ldl r17,16(r30) :
MemRead : A=0x11ff92000
218500: system.cpu T0 : @_start+20 : ldl r17,16(r30) :
MemRead : D=0x0000000000000001 A=0x11ff92000
218500: system.cpu T0 : @_start+24 : lda r18,24(r30) :
IntAlu : D=0x000000011ff92008
218500: system.cpu T0 : @_start+28 : ldq
r19,18446744073709521376(r29) : MemRead : D=0x000000012000079c
A=0x12008b440
218500: system.cpu T0 : @_start+32 : ldq
r20,18446744073709520024(r29) : MemRead : D=0x0000000120000870
A=0x12008aef8
218500: system.cpu T0 : @_start+36 : bis r31,r0,r21 :
IntAlu : D=0x0000000000000000
info: Increasing stack size by one page.
218500: system.cpu T0 : @_start+40 : stq r30,0(r30) :
MemWrite : D=0x000000011ff91ff0 A=0x11ff91ff0
296500: system.cpu T0 : @_start+40 : stq r30,0(r30) :
MemWrite : D=0x000000011ff91ff0 A=0x11ff91ff0
296500: system.cpu T0 : @_start+44 : ldq
r27,18446744073709522536(r29) : MemRead : D=0x0000000120000324
A=0x12008b8c8
296500: system.cpu T0 : @_start+48 : jsr r26,(r27) :
IntAlu : D=0x00000001200001a4
297500: system.cpu T0 : @__libc_start_main : ldah r29,9(r27)
: IntAlu : D=0x0000000120090324
297500: system.cpu T0 : @__libc_start_main+4 : lda
r29,10044(r29) : IntAlu : D=0x0000000120092a60

As I know, if I want to get power trace I have to use mcpat. But when I use
mcpat, I need transform gem5 output file into a new xml file as an input
file for mcpat.

And if I do the transformation , I need static and config.json file.
However, when I run gem5 with this command, I don't get this two file.

I have no idea what happened.
Can anyone know this situation?
Can you give me some advices?

Thanks a lot!!

Loading...