Thanks for your response.

Double checked. There doesn't seem to be a problem with the executable.
attached are the disassembly of the ROI begin and end functions and the
original code.

I have debugged with GDB and stepped over the m5 commands, they occur only
once and in the correct sequence.
all this was done on qemo, but when I run it in gem5 the problem reoccurs.
(The ExecAll logs weigh 53G (compressed) and I could not read them.)

Any ideas?



On Thu, Apr 9, 2020 at 8:59 PM Ciro Santilli <ciro.santi...@gmail.com>
wrote:

> Can you double check with aarch64-linux-gnu-objdump that the binary
> really only contains a single pseudoop? Maybe it is just an
> instrumentation bug that doubles it up.
>
> I would also recommend that you try to correlate --debug-flags ExecAll
> or GDB the guest executable around the pseudoop point to narrow down
> what is happening.
>
>
> On Thu, Apr 9, 2020 at 6:30 PM David Agassi <davidio.aga...@gmail.com>
> wrote:
> >
> > Hi guys,
> >
> > I'm am running the PARSEC benchmark suite on gem5 ARM in full system
> simulation mode. For some reason it seems like some m5 PseudoInst
> (checkpoint, stats_reset, stats_dump) are executed twice and I'm not sure
> why.
> >
> > I built PARSEC on QEMU following this guide. I'm running the benchmarks
> single-threaded.
> >
> > In the beginning of each PARSEC benchmark's ROI there is an m5
> checkpoint command and a reset stats command. On exiting the ROI there is a
> dump stats command.
> >
> > When simulating the the code with gem5 I get the following sequence of
> m5 commands:
> > checkpoint, reset stats, checkpoint, reset stats, ...(ROI running)...,
> dump stats, dump stats.
> > I'm expecting: checkpoint, reset stats, ...(ROI running)..., dump stats.
> >
> > However, the simulated application has the correct output (prints from
> the simulated program's ROI occur once).
> >
> > Any ideas why this is happening?
> >
> > Can provide logs for Parsec and m5 and building / running commands.
> >
> > Thanks, David
> > _______________________________________________
> > gem5-users mailing list
> > gem5-users@gem5.org
> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
0000000000401ba4 <__parsec_roi_begin>:
  401ba4:       90000380        adrp    x0, 471000 <_IO_stdin_used+0x100>
  401ba8:       f81e0ffe        str     x30, [sp,#-32]!
  401bac:       91088000        add     x0, x0, #0x220
  401bb0:       940050be        bl      415ea8 <_IO_puts>
  401bb4:       d2800000        mov     x0, #0x0                        // #0
  401bb8:       94004f4f        bl      4158f4 <_IO_fflush>
  401bbc:       d2800001        mov     x1, #0x0                        // #0
  401bc0:       910043e0        add     x0, sp, #0x10
  401bc4:       94008ae7        bl      424760 <__gettimeofday>
  401bc8:       f9400be1        ldr     x1, [sp,#16]
  401bcc:       90000383        adrp    x3, 471000 <_IO_stdin_used+0x100>
  401bd0:       f9400fe2        ldr     x2, [sp,#24]
  401bd4:       d0000544        adrp    x4, 4ab000 <_M4_threadsTable+0x110>
  401bd8:       5c0001c2        ldr     d2, 401c10 <__parsec_roi_begin+0x6c>
  401bdc:       9108e060        add     x0, x3, #0x238
  401be0:       9e620020        scvtf   d0, x1
  401be4:       9e620041        scvtf   d1, x2
  401be8:       1f420023        fmadd   d3, d1, d2, d0
  401bec:       fd018883        str     d3, [x4,#784]
  401bf0:       940050ae        bl      415ea8 <_IO_puts>
  401bf4:       d2800000        mov     x0, #0x0                        // #0
  401bf8:       d2800001        mov     x1, #0x0                        // #0
  401bfc:       ff430110        .inst   0xff430110 ; undefined
  401c00:       97ffff08        bl      401820 <m5_reset_stats>
  401c04:       f84207fe        ldr     x30, [sp],#32
  401c08:       d65f03c0        ret
  401c0c:       d503201f        nop
  401c10:       a0b5ed8d        .word   0xa0b5ed8d
  401c14:       3eb0c6f7        .word   0x3eb0c6f7

0000000000401c18 <__parsec_roi_end>:
  401c18:       a9be7bf3        stp     x19, x30, [sp,#-32]!
  401c1c:       d2800001        mov     x1, #0x0                        // #0
  401c20:       d0000553        adrp    x19, 4ab000 <_M4_threadsTable+0x110>
  401c24:       910043e0        add     x0, sp, #0x10
  401c28:       910c0273        add     x19, x19, #0x300
  401c2c:       94008acd        bl      424760 <__gettimeofday>
  401c30:       f9400fe0        ldr     x0, [sp,#24]
  401c34:       f9400be1        ldr     x1, [sp,#16]
  401c38:       5c000302        ldr     d2, 401c98 <__parsec_roi_end+0x80>
  401c3c:       9e620001        scvtf   d1, x0
  401c40:       d2800000        mov     x0, #0x0                        // #0
  401c44:       9e620020        scvtf   d0, x1
  401c48:       d2800001        mov     x1, #0x0                        // #0
  401c4c:       1f420023        fmadd   d3, d1, d2, d0
  401c50:       fd000663        str     d3, [x19,#8]
  401c54:       97fffefb        bl      401840 <m5_dump_stats>
  401c58:       90000382        adrp    x2, 471000 <_IO_stdin_used+0x100>
  401c5c:       91096040        add     x0, x2, #0x258
  401c60:       94005092        bl      415ea8 <_IO_puts>
  401c64:       fd400664        ldr     d4, [x19,#8]
  401c68:       90000383        adrp    x3, 471000 <_IO_stdin_used+0x100>
  401c6c:       fd400a65        ldr     d5, [x19,#16]
  401c70:       9109c060        add     x0, x3, #0x270
  401c74:       1e653880        fsub    d0, d4, d5
  401c78:       94004dbf        bl      415374 <_IO_printf>
  401c7c:       90000384        adrp    x4, 471000 <_IO_stdin_used+0x100>
  401c80:       910a6080        add     x0, x4, #0x298
  401c84:       94005089        bl      415ea8 <_IO_puts>
  401c88:       d2800000        mov     x0, #0x0                        // #0
  401c8c:       94004f1a        bl      4158f4 <_IO_fflush>
  401c90:       a8c27bf3        ldp     x19, x30, [sp],#32
  401c94:       d65f03c0        ret
  401c98:       a0b5ed8d        .word   0xa0b5ed8d
  401c9c:       3eb0c6f7        .word   0x3eb0c6f7

Attachment: Parsec-ROI-hooks
Description: Binary data

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

Reply via email to