Hi all,

        I have two traces from gem5(x86-linux) and pin-tool and I find that
some of the instructions are different.
For example, the "syscall" in pin-tool trace is different from the one
"sysret" in gem5 trace. The pc address is also not right.
Is that a bug in gem5 or a misuse of the tracing function? Thanks a lot!

---------------------------------------------trace from
gem5---------------------------------------------
0x40f5af        jnb     0x175
0x40f5b5        cmp     rax, 0x4000
0x40f5bc        jnbe    0x3a
0x40f5f8        sub     rax, 0x4000
0x40f5ff        mov     edx, 0x4
0x40f604        call    0x31927
0x440f30        mov     eax, 0x1c
0xffffffff80209788      sysret
0x440f37        cmp     rax, 0xfffffffffffff001
0x440f3d        jnb     0xfffffffffffd2d1d
0x440f43        ret
0x40f609        jmp     0xffffffffffffffb3
0x40f5be        mov     rax, DS:[rsp + 0x8]
0x40f5c3        mov     rbx, DS:[rax + 0x628]
0x40f5ca        cmp     rbx, rax
0x40f5cd        jz      0x8d
0x40f5d3        test    DS:[rax + 0x308], 0x40
0x40f5da        jnz     0xb6
0x40f5e0        xor     edi, edi
0x40f5e2        mov     eax, 0x3c
------------------------------------------trace from
pin-tool----------------------------------------
40f5b5  cmp rsi, 0x4000
40f5bc  jnbe 0x40f5f8
40f5f8  sub rsi, 0x4000
40f5ff  mov edx, 0x4
40f604  call 0x440f30
440f30  mov eax, 0x1c
440f35  syscall
440f37  cmp rax, 0xfffffffffffff001
440f3d  jnb 0x413c60
440f43  ret
40f609  jmp 0x40f5be
40f5be  mov rax, qword ptr [rsp+0x8]
40f5c3  mov rbx, qword ptr [rax+0x628]
40f5ca  cmp rbx, rax
40f5cd  jz 0x40f660
40f5d3  test byte ptr [rax+0x308], 0x40
40f5da  jnz 0x40f696
40f5e0  xor edi, edi
40f5e2  mov eax, 0x3c
40f5e7  syscall


Weixing
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to