Re: opcontrol sh: write error: Invalid argument
William Cohen <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <[email protected]> |
On 01/26/2015 09:38 PM, Andrew Jones wrote: >> Date: Mon, 26 Jan 2015 10:49:40 -0500 >> From: [email protected] >> To: [email protected] >> Subject: Re: opcontrol sh: write error: Invalid argument >> >> Hi Andrew, >> >> opcontrol is a shell script. One trick that you might do maybe try running opcontrol with the following to find out what commands are being run: >> >> sh -x /usr/bin/opcontrol --start >& opcontrol.log >> >> The ouptput in opcontrol.log might give a better idea where the write error occurred. >> > Hi William, > > Thanks for your reply. > The output in opcontrol.log looks like this: > ... > + test yes = yes -a -f /dev/oprofile/backtrace_depth > + set_param backtrace_depth 0 > + test yes = yes > + echo 0 > sh: write error: Invalid argument > > I put the entire opcontrol.log here: http://tny.cz/b3a27478. Hi, Thanks for the output. The output above looks to match up with opcontrol do_param_setup(): if test "$KERNEL_SUPPORT" = "yes" -a -f $MOUNT/backtrace_depth; then set_param backtrace_depth $CALLGRAPH However, the "test yes = yes" doesn't match up with the verion I have. Which specific versions of the kernel and oprofile are you using. Do you have pointers to the specific sources for those? -Will > >> >> Is opjitconv built and installed? It appears that is missing you might try to build and install it. >> >> > > I put the binaries in the /root/ directory of the MIPS target board. It's a bit space-constricted, so I couldn't put all the binaries on there. Currently, my directory looks like this: > > # pwd > /root > # ls > mips opcontrol.log opreport > op-check-perfevents ophelp oprofiled > opcontrol opjitconv > > The 'mips' directory contains one folder, '74K', which I copied from my $PREFIX/share/oprofile/mips directory after it had finished compiling. > > Thanks again for your help! > > Andrew > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > oprofile-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oprofile-list > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/