Thank you Sir, now it is working, I am grateful to you.


On Tue, Apr 23, 2013 at 7:40 PM, Maynard Johnson <maynardj@us.ibm.com> wrote:
On 04/23/2013 06:30 AM, Sachin Agarwalla wrote:
> Dear Sir,
>  Continuing previous mail, due to size limit I could not attach both screenshots in one mail, I am attcheing the other one in this  mail for your reference. Basically it terminal I am getting a warning no-vmlinux could not be found but I have a vmlinux executable file in /usr/src/linux3.8.5 and I am specifying that with the following command
>
> time operf ./sembench_210413 1  --vmlinux=/usr/src/linux-3.8.5/vmlinux --separate-cpu
From the operf man page, the command synopsis is:
        operf [ options ] [ --system-wide | --pid <pid> | [ command [ args ] ] ]
Perhaps we need to be more explicit about the usage, but the 'command' you want to profile (along with its arguments) *must* be the last thing(s) on the command line.  You are trying to pass operf options after the sembench_210413 command (and its arg, '1').  But these are being interpreted as more arguments for sembench_210413, so they're just being passed along to the invocation of sembench_210413 instead of being processed as operf options.

Also, in looking at your attached 'command_sequence' file, you are mixing opcontrol commands and operf. You shouldn't do that.  The first paragraph of the Description section from the operf man page says the following:

       Operf  is  an OProfile tool that can be used in place of opcontrol for profiling. Operf uses the Linux Per-
       formance Events Subsystem, and hence, does not require the use of the opcontrol daemon --  in  fact,  operf
       and opcontrol usage are mutually exclusive.

Finally, I would not use advanced options like --separate-cpu unless you really know what you are doing.  Separating samples by cpu will make your opreport output unreadable unless you include a cpu spec on the opreport command line.

-Maynard

>
> where time is to produce system time, user time, real time,
> sembench_210413 is my executable file name,
> 1 is commad line argument to the program here indicating no. of cores,
> --vmlinux option is used to specify vmlinux file and to get details of vmlinux but actually I am not getting detail.
> --seperate-cpu option is used to produce profiling report for each cpu.
>
> also I attached the command sequence I used to execute my program for your reference.
> if possible please try to help me.
>
> On Mon, Apr 22, 2013 at 10:31 PM, Maynard Johnson <maynardj@us.ibm.com <mailto:maynardj@us.ibm.com>> wrote:
>
>     On 04/22/2013 11:10 AM, Sachin Agarwalla wrote:
>     > Continuing previous mail I did a mistake in answer no. 7.
>     > instead of
>     > "... I am able to get ..."
>     > it should be
>     >  "........I am not able to get .... ".
>     >
>     >
>     > On Mon, Apr 22, 2013 at 9:37 PM, Sachin Agarwalla <sachinagarwala251@gmail.com <mailto:sachinagarwala251@gmail.com> <mailto:sachinagarwala251@gmail.com <mailto:sachinagarwala251@gmail.com>>> wrote:
>     >
>     >     Dear Sir,
>     >     Here are the answers of your question=>
>     >     1.My machine is DELL OPTIPLEX 990 MODEL which has INTEL i5 processor, 4GB RAM, 500 GB HDD with windows 7 original  installed.
>     >     2. I have installed ubuntu 12.04  on my system and  updated kernel from 3.2.0 to 3.8.5 by compiling from source code to include lock stat, oprofile support.
>     >     3. I have download oprofile from it's site and installed from there.
>     >     4. oprofile version---0.9.8
>     >     5. I am using operf as opcontrol is not properly  working --it is showing it is old , operf is recommended
>     >     6.I am able to get user space data correctly, it is annotating my source file.
>     >     7. when I am using opreport it is showing around 90% of samples belong to vmlinux but I am able to get details of vmlinux like in which functions of kernel it is taking time.
>     >     When I am trying to profile kernel using following command in Oprofile i am getting following error,
>     >      opreport --symbols /lib/modules/`uname -r`
>                                 ^-- Passing this to opreport tells it to report the samples for a binary image named "/lib/modules/`uname -r`".  Since there is no such image, you get the "no sample files found" message.
>
>     If you just do 'opreport --symbols', you should be able to see all of the vmlinux functions that had samples, except for those functions in kernel modules.  To get the kernel module info, too, you would add --image-path=/lib/modules/`uname -r` to the opreport command.
>
>     -Maynard
>     >
>     >
>     >           error: no sample files found: profile specification too strict
>     >
>     >     If possible please try to help as much as possible.
>     >
>     >
>     >     On Mon, Apr 22, 2013 at 8:54 PM, Maynard Johnson <maynardj@us.ibm.com <mailto:maynardj@us.ibm.com> <mailto:maynardj@us.ibm.com <mailto:maynardj@us.ibm.com>>> wrote:
>     >
>     >         On 04/22/2013 01:48 AM, Sachin Agarwalla wrote:
>     >         > Dear Sir/Madam,
>     >         >   I am  running some benchmarks to test Linux. I am using Oprofile tool to get profiling data. I am not able to profile the kernel or vmlinux part. I have searched in net a lot and commands listed on Oprofile site to profile kernel is not working, if possible please try to help me.
>     >         Please be more specific.
>     >          - What architecture/processor model are you running on?
>     >          - What Linux distro are you on?
>     >          - Are you using the distro-provided oprofile or are you building your own?
>     >          - What version of oprofile?
>     >          - If using oprofile 0.9.8, are you using operf or "legacy" opcontrol-based profiling?
>     >          - Are you able to collect profile data for userspace programs OK?
>     >          - Exactly what do you mean by "profiling the kernel is not working"?
>     >
>     >         -Maynard
>     >         >
>     >         > --
>     >         > thanking you,
>     >         > waiting for your reply,
>     >         > Sachin Agarwalla
>     >         > Contact No - 08013120306
>     >         > "I am mother of honest man as well as dishonest man, always remember that if you don't have anybody ma is with you, inform this to my children" --- Sri Sri Ma Sarada Devi.
>     >         > "It is love to living being which measures your greatness."
>     >         >
>     >         >
>     >         > ------------------------------------------------------------------------------
>     >         > Precog is a next-generation analytics platform capable of advanced
>     >         > analytics on semi-structured data. The platform includes APIs for building
>     >         > apps and a phenomenal toolset for data science. Developers can use
>     >         > our toolset for easy data analysis & visualization. Get a free account!
>     >         > http://www2.precog.com/precogplatform/slashdotnewsletter
>     >         >
>     >         >
>     >         >
>     >         > _______________________________________________
>     >         > oprofile-list mailing list
>     >         > oprofile-list@lists.sourceforge.net <mailto:oprofile-list@lists.sourceforge.net> <mailto:oprofile-list@lists.sourceforge.net <mailto:oprofile-list@lists.sourceforge.net>>
>     >         > https://lists.sourceforge.net/lists/listinfo/oprofile-list
>     >         >
>     >
>     >
>     >
>     >
>     >     --
>     >     thanking you,
>     >     waiting for your reply,
>     >     Sachin Agarwalla
>     >     Contact No - 08013120306
>     >     "I am mother of honest man as well as dishonest man, always remember that if you don't have anybody ma is with you, inform this to my children" --- Sri Sri Ma Sarada Devi.
>     >     "It is love to living being which measures your greatness."
>     >
>     >
>     >
>     >
>     > --
>     > thanking you,
>     > waiting for your reply,
>     > Sachin Agarwalla
>     > Contact No - 08013120306
>     > "I am mother of honest man as well as dishonest man, always remember that if you don't have anybody ma is with you, inform this to my children" --- Sri Sri Ma Sarada Devi.
>     > "It is love to living being which measures your greatness."
>
>
>
>
> --
> thanking you,
> waiting for your reply,
> Sachin Agarwalla
> Contact No - 08013120306
> "I am mother of honest man as well as dishonest man, always remember that if you don't have anybody ma is with you, inform this to my children" --- Sri Sri Ma Sarada Devi.
> "It is love to living being which measures your greatness."
>
>
>
> --
> thanking you,
> waiting for your reply,
> Sachin Agarwalla
> Contact No - 08013120306
> "I am mother of honest man as well as dishonest man, always remember that if you don't have anybody ma is with you, inform this to my children" --- Sri Sri Ma Sarada Devi.
> "It is love to living being which measures your greatness."




--
thanking you,
waiting for your reply,
Sachin Agarwalla
Contact No - 08013120306
"I am mother of honest man as well as dishonest man, always remember that if you don't have anybody ma is with you, inform this to my children" --- Sri Sri Ma Sarada Devi.
"It is love to living being which measures your greatness."