Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-13-2013, 05:24 PM   #1
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
Oprofile setup command

I am trying to use OProfile to analyze my computer code.

When I type in the setup command it does not like it.

the command is
sudo  opcontrol --setup --ctr0-event=L2_LINES_IN   --ctr0-count=500 ----vmlinux=/boot/-'uname -r'
[sudo] password for james: 
Unknown option "--ctr0-event". See opcontrol --help

Now this was taken with a slight modification from an IBM report on using OProfile.

Tha paper can be found here:

Why is it not liking my command?

Oprofile goes to the default CPU_CLK_UNHALTED event everytime I start Oprofile. It does not like

sudo opcontrol --setup --ctr0-event=L2_LINES_IN --ctr0-count=500 ----vmlinux=/boot/-'uname -r'

What is wrong with this command? It is the same one in te IBM report.

Any help appreciated. Thanks in advance.

Old 11-14-2013, 11:18 PM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288

you probably have a different version of opcontrol. Have you checked the documentation that it came with?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using OProfile DKSL Linux - Software 0 09-05-2012 04:37 PM
oprofile zanier Linux - Kernel 1 08-15-2012 02:23 AM
How can I use oprofile jeffwang66 Linux - General 0 04-29-2011 04:27 PM
Using oprofile on Centos Linux Unable to complete dump of oprofile data Frank36 Linux - Newbie 0 04-26-2011 12:42 PM
Using oprofile learn2bperfect Linux - Newbie 0 04-10-2009 06:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration