Re: Error cross compiling oprofile
Paul Fine <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <CAC7Fuq=zbcz+D0V8pd31mazpMd0Zey-qFWYj+EqivPt2wW9pNw@mail.gmail.com> |
Thanks Andrew, That allowed me to compile. When I try to run operf or ocount on my target I got an error: root@dm816x-evm:~# operf Unexpected error running operf: Invalid argument root@dm816x-evm:~# I need to go back and do some cleaning. I may have some libraries left over from installing oprofile 0.9.8, although I think I would have seen some sort of library version mismatch error. For the moment, my boss is looking for me to find out where all our cycles have gone missing, and oprofile 0.9.8 using opcontrol seems to be working, so I will come back to this issue in a few days after the fire is out. Thanks for your help. --Paul On Tue, May 5, 2015 at 8:46 AM, Andrew Haley <[email protected]> wrote: > On 05/05/2015 11:57 AM, Paul Fine wrote: > > Thanks for the quick reply Andrew. > > > > unistd.h is being included in the build. The only reference to pipe2() I > > find in unistd.h is: > > > > > /opt/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/usr/include/asm/ > > > > #define __NR_pipe2 (__NR_SYSCALL_BASE+359) > > > > and also in my linux kernel packages. > > > > Is this macro suppose to resolve to pipe2()? Am I suppose to build glibc > > for my target? I am not really sure what to do here. I was able to > build > > oprofile-0.9.8 once I was able to get the configure parameters for cross > > compile correct. > > Clearly your libc headers are broken. I don't know why, and will not > speculate! > > I'd just do this: > > syscall(__NR_pipe2, int pipefd[2], int flags); > > Andrew. > > ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ oprofile-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oprofile-list