x86 trace generator problem

129 views
Skip to first unread message

Yi-Chien Sung

unread,
Dec 16, 2012, 1:35:39 AM12/16/12
to macsi...@googlegroups.com
Hi all

I got some problem when i use x86 trace generator.
After i install the x86 trace generator and i want to test it, i got some problem.

I copy the bin  binary to the folder "obj-intel64"
and i enter the command  "./pin -t ./trace_generator.so -- /bin/ls " and it has a message
 "./pin: line 52: /home/thousand/nmacsim/macsim-1.1/tools/x86_trace_generator/obj-intel64/./ia32/bin/pinbin: No such file or directory"

then i add the PATH in  the bashrc file
 "export PATH=$PATH:/home/thousand/nmacsim/macsim-1.1/tools/pin-2.10-45467-gcc.3.4.6-ia32_intel64-linux"
and enter " pin -t ./trace_generator.so -- /bin/ls"
it got some problem
"pin -t ./trace_generator.so -- /bin/ls
Killed
E:Attach to pid 1272 failed.
E:  The Operating System configuration prevents Pin from using the default (parent) injection mode.
E:  To resolve this, either execute the following (as root):
E:  $ echo 0 > /proc/sys/kernel/yama/ptrace_scope
E:  Or use the "-injection child" option.
E:  For more information, regarding child injection, see Injection section in the Pin User Manual.
E:"

Anyone come acorss this problem?

Thanks,
Yi-Chien

Jaekyu Lee

unread,
Dec 16, 2012, 6:53:25 AM12/16/12
to macsi...@googlegroups.com
Hi Yi-Chien,

You can follow the message from PIN execution.
That will solve your problem.

su -
$ echo 0 > /proc/sys/kernel/yama/ptrace_scope

Thanks,
Jaekyu


--
 
 
 

Yi-Chien Sung

unread,
Dec 16, 2012, 8:06:23 AM12/16/12
to macsi...@googlegroups.com
Dear Jaekyu:

thank you for answering my problem.
now i can generate *.raw and *.txt, but i have some problem in the "trace.txt"
i enter the command
" pin -t trace_generator.so -thread 4 -- /home/thousand/nmacsim/macsim-1.1/tools/x86_trace_generator/obj-intel64/test"
Why trace.txt content like that:
1 x86
0 0

not like that
8 x86
0
1
2
.
.
7

really appreciate that you solve my problem.

thanks,
Yi-Chien


Yi-Chien Sung於 2012年12月16日星期日UTC+8下午2時35分39秒寫道:

Yi-Chien Sung

unread,
Dec 19, 2012, 2:39:49 AM12/19/12
to macsi...@googlegroups.com
Dear Jaekyu:

I have solved my problem : )

Best Regrads,
Yi-Chien
Message has been deleted

Kim, Hyesoon

unread,
Mar 16, 2016, 9:39:59 AM3/16/16
to macsi...@googlegroups.com, Applee
Applee, 
Could you describe your problem? 
The initial Yi-Chien’s problem was due to missing 32-bit linux libraries. 
Hyesoon 

From: <macsi...@googlegroups.com> on behalf of Applee <applel...@gmail.com>
Reply-To: "macsi...@googlegroups.com" <macsi...@googlegroups.com>
Date: Tuesday, March 15, 2016 at 8:42 PM
To: Macsim Developer <macsi...@googlegroups.com>
Cc: "harry...@gmail.com" <harry...@gmail.com>
Subject: [macsim-dev] Re: x86 trace generator problem

Hi Yi-Chien,

     I have met the same problem. Do you remember how to solve it ?

Thanks,
Applee


在 2012年12月19日星期三 UTC+8下午3:39:49,Yi-Chien Sung写道:

--

---
You received this message because you are subscribed to the Google Groups "Macsim Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to macsim-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Applee

unread,
Mar 16, 2016, 11:16:38 AM3/16/16
to Macsim Developer
Hi Hyesoon,

     I ran the following command before.
  pin -injection child -t ~/trace_generator.so -max 100000000 -tracename bzip2_th2_10x8 -thread 2 -- ./bzip2_base.amd64-m64-gcc43-nn  
    
     But i guess i have found the mistake, after i read the source code of the trace generator.  It can generate traces for multiple threads, only when the application is multi-threaded. However the SPEC2006 benchmark  applications are not multi-threaded.
     And i change a benchmark suite, it can work.

     Thanks for your time,
      Applee Lee
    

在 2016年3月16日星期三 UTC+8下午9:39:59,Hyesoon写道:

Kim, Hyesoon

unread,
Mar 16, 2016, 12:38:21 PM3/16/16
to macsi...@googlegroups.com
For bzip2 or other spec benchmarks, you don’t need to provide “-thread 2” option. In that case it will generate just a trace from a single thread. 
Hyesoon 
Reply all
Reply to author
Forward
0 new messages