Bugs item #1276058, was opened at 2005-08-29 23:26
Message generated for change (Comment added) made by phil_e
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=1276058&group_id=16191
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
>
Resolution: Fixed
Priority: 5
Submitted By: Ravi Chintakunta (ravichintakunta)
>
Assigned to: Philippe Elie (phil_e)
Summary: oparchive does not work with separated profiles
Initial Comment:
I had run a profile session with separate=all and tried
to archive it. There does not seem to be a way to
archive such profiles.
Even opreport does not display the report, without any
arguments. We can use opreport --merge=all for a
concise report.
oparchive shows this error message:
-bash-2.05b# oparchive --output-directory=/tmp/arch
oparchive error: Already displaying results for
parameter event with values:
BIFFED_BRANCHES_FINISHED:7500,BRANCHES_MISPREDICTED:7500,COMPLETED_INSNS:45000,CPU_CLK:45000,
which conflicts with parameter tgid.
Suggestion: specify event:, count: or unitmask: (see
also --merge=unitmask)
which is similar to that displayed with opreport
(without arguments).
But oparchive does not support this option.
----------------------------------------------------------------------
>
Comment By: Philippe Elie (phil_e)
Date: 2005-08-30 14:57
Message:
Logged In: YES
user_id=318973
This is fixed in cvs, by forcing merging:
Index: pp/oparchive_options.cpp
===================================================================
RCS file: /cvsroot/oprofile/oprofile/pp/oparchive_options.cpp,v
retrieving revision 1.5
diff -u -p -r1.5 oparchive_options.cpp
--- pp/oparchive_options.cpp 12 Apr 2005 03:14:10 -0000 1.5
+++ pp/oparchive_options.cpp 30 Aug 2005 12:49:22 -0000
@@ -77,7 +77,13 @@ void handle_options(options::spec const
exit(EXIT_FAILURE);
}
- merge_by = handle_merge_option(mergespec, true,
exclude_dependent);
+ // merging doesn't occur in oparchive but we must allow it
to avoid
+ // triggering some sanity check in arrange_profiles()
+ merge_by.cpu = true;
+ merge_by.lib = true;
+ merge_by.tid = true;
+ merge_by.tgid = true;
+ merge_by.unitmask = true;
check_options();
profile_spec const pspec =
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=1276058&group_id=16191
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Configuration of oprofile 0.9 on 2.4.22
Hi ,
Thanks a lot..
Now i m able the configure , make and make install the oprofile.
But i m not able to generate the opreport..
I have given following commands
[root@localhost oprofile-0.9.1]# opcontrol --init
[root@localhost oprofile-0.9.1]# opcontrol --start
Using 2.4 OProfile kernel interface.
Using log file /var/lib/oprofile/oprofiled.log
Daemon started.
Profiler running
[root@localhost oprofile-0.9.1]# opcontrol --reset
Signalling daemon... done
Then i compile my application program(example.c)
[root@localhost RND]#gcc -g example.c -o example
I ran the program
[root@localhost oprofile-0.9.1]#/home/akmodi/RND/example
[root@localhost oprofile-0.9.1]#opcontrol --dump
[root@localhost oprofile-0.9.1]# opreport -l /home/akmodi/RND/example
error: no sample files found: profile specification too strict ?
[root@localhost oprofile-0.9.1]# opannotate --source /home/akmodi/RND/example
error: no sample files found: profile specification too strict ?
I have installed the version 0.9 with the patch provided by u in the previous mail.
Thanks a lot.
With best Regards
Ajay
On 8/30/05, Philippe Elie <phil.el@xxxxxxxxxx> wrote:
On Tue, 30 Aug 2005 at 17:33 +0000, Ajay Modi wrote:> Hi,> I did the same thing.>> [root@localhost oprofile-0.9.1]# ./configure --with-linux=/usr/src//linux-> 2.4.22/>> It works..
> Then i put> [root@localhost oprofile-0.9.1]# make>> It is giving following error...> -DKBUILD_BASENAME=oprofile -c -o oprofile.o oprofile.c> oprofile.c:117: parse error before "op_do_profile"
> oprofile.c:118: warning: return type defaults to `int'> oprofile.c:118: conflicting types for `op_do_profile'> oprofile.h:144: previous declaration of `op_do_profile'this has been fixed in cvs with this patch:
https://sourceforge.net/mailarchive/forum.php?thread_id=7923031&forum_id=33188retry with the current cvs version (there is other fix for P4 Foster in cvs)
regards,Philippe Elie
Next Message by Date:
click to view message preview
Using opreport with archived samples
I have archived the profile samples on a machine and moved it to another machine. I would like to run opreport on the samples in this copied archived folder.
Is there an option in opreport to support this?
Thanks,
Ravi
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com
Previous Message by Thread:
click to view message preview
[ oprofile-Bugs-1276058 ] oparchive does not work with separated profiles
Bugs item #1276058, was opened at 2005-08-29 17:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=1276058&group_id=16191
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ravi Chintakunta (ravichintakunta)
Assigned to: Nobody/Anonymous (nobody)
Summary: oparchive does not work with separated profiles
Initial Comment:
I had run a profile session with separate=all and tried
to archive it. There does not seem to be a way to
archive such profiles.
Even opreport does not display the report, without any
arguments. We can use opreport --merge=all for a
concise report.
oparchive shows this error message:
-bash-2.05b# oparchive --output-directory=/tmp/arch
oparchive error: Already displaying results for
parameter event with values:
BIFFED_BRANCHES_FINISHED:7500,BRANCHES_MISPREDICTED:7500,COMPLETED_INSNS:45000,CPU_CLK:45000,
which conflicts with parameter tgid.
Suggestion: specify event:, count: or unitmask: (see
also --merge=unitmask)
which is similar to that displayed with opreport
(without arguments).
But oparchive does not support this option.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=1276058&group_id=16191
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Next Message by Thread:
click to view message preview
Configuration of oprofile 0.9 on 2.4.22
I m trying to configure the oprofile 0.9 on 2.4.22 kernel over P-4.
I found that the in the kernel source (2.4.22) there is no oprofile directory.
How can i enable the oprofile in the kernel.(make xconfig :- no profiling option).
Plz let me know about the kernel patch by which i can put the oprofile source into the kernel.
Thanks in advance
--Ajay