Make drmemtrace trace only for memory records in offline

5 views
Skip to first unread message

Gandholi Sarat

unread,
May 26, 2024, 1:49:02 PMMay 26
to DynamoRIO Users
I want to have a offline trace with only memory records, is there any way to restrict drmemtrace to only trace memory records specifically or is a custom tool required?

Derek Bruening

unread,
May 26, 2024, 4:00:21 PMMay 26
to Gandholi Sarat, DynamoRIO Users
"-L0I_filter -L0I_size 0" should do it.  Here is an example on a DR build dir using the DR test app allasm_repstr:

                                                                            

$ bin64/drrun -t drmemtrace -offline -L0I_filter -L0I_size 0 -- suite/tests/bin/allasm_repstr                                                                              

Adios world!                                                                                                                                                               

Adios world!                                                                                                                                                               

Adios world!                                                                                                                                                               

Adios world!                                                                                                                                                               

Adios world!                                                                                                                                                               

Adios world!                                                                                                                                                               

Adios world!                                                                                                                                                               

Adios world!                                                                                                                                                               

Adios world!                                                                                                                                                               

Adios world!                                                                                                                                                               

                                                                                                                                                                           

$ bin64/drrun -t drmemtrace -indir drmemtrace.allasm_repstr.**dir -tool view 2>&1 | head -50                                                                               

Output format:                                                                                                                                                             

<--record#-> <--instr#->: <---tid---> <record details>                                                                                                                     

------------------------------------------------------------                                                                                                               

           1           0:     1550019 <marker: version 6>                                                                                                                  

           2           0:     1550019 <marker: filetype 0xac2>                                                                                                             

           3           0:     1550019 <marker: cache line size 64>                                                                                                         

           4           0:     1550019 <marker: chunk instruction count 10000000>                                                                                           

           5           0:     1550019 <marker: page size 4096>                                                                                                             

           6           0:     1550019 <marker: timestamp 13361227035102279>                                                                                                

           7           0:     1550019 <marker: tid 1550019 on core 6>                                                                                                      

           8           0:     1550019 <marker: instruction count 0>                                                                                                        

           9           0:     1550019 read         1 byte(s) @ 0x000000000040200e by PC 0x000000000040102e                                                                 

          10           0:     1550019 write        1 byte(s) @ 0x0000000000402000 by PC 0x000000000040102e                                                                 

          11           0:     1550019 read         1 byte(s) @ 0x000000000040200f by PC 0x000000000040102e                                                                 

          12           0:     1550019 write        1 byte(s) @ 0x0000000000402001 by PC 0x000000000040102e                                                                 

          13           0:     1550019 read         1 byte(s) @ 0x0000000000402010 by PC 0x000000000040102e                                                                 

          14           0:     1550019 write        1 byte(s) @ 0x0000000000402002 by PC 0x000000000040102e                                                                 

          15           0:     1550019 read         1 byte(s) @ 0x0000000000402011 by PC 0x000000000040102e                                                                 

          16           0:     1550019 write        1 byte(s) @ 0x0000000000402003 by PC 0x000000000040102e                                                                 

          17           0:     1550019 read         1 byte(s) @ 0x0000000000402012 by PC 0x000000000040102e                                                                 

          18           0:     1550019 write        1 byte(s) @ 0x0000000000402004 by PC 0x000000000040102e                                                                 

          19           0:     1550019 read         4 byte(s) @ 0x0000000000402ffd by PC 0x0000000000401038                                                                 

          20           0:     1550019 read         4 byte(s) @ 0x0000000000402fff by PC 0x000000000040103b                                                                 

          21           0:     1550019 <marker: timestamp 13361227035103508>                                                                                                

          22           0:     1550019 <marker: tid 1550019 on core 6>                                                                                                      

          23           0:     1550019 <marker: instruction count 107>                                                                                                      

          24           0:     1550019 <marker: instruction count 107>                                                                                                      

          25           0:     1550019 <thread 1550019 exited>                                                                                                              

View tool results:                                                                                                                                                         

              0 : total instructions                                                                       


On Sun, May 26, 2024 at 1:49 PM Gandholi Sarat <gandho...@gmail.com> wrote:
I want to have a offline trace with only memory records, is there any way to restrict drmemtrace to only trace memory records specifically or is a custom tool required?

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/968cb17b-c3ce-431d-ae76-4af12a925e81n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages