mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Kirill Kuvaldin" <kirill.kuvaldin@gmail.com>
To: oprofile-list@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: couldn't get kernel profiling data from OProfile
Date: Mon, 10 Mar 2008 12:48:09 +0300	[thread overview]
Message-ID: <2d42915c0803100248r4eb1361exe5f248e39e4187c3@mail.gmail.com> (raw)

Hi,

I'm using oprofile 0.9.3 on Debian Lenny, kernel 2.6.22 SMP x86_64.

The problem I'm dealing with is that opreport couldn't provide
profiling data for the kernel image.

I start the profiler as follows, specifying the vmlinux image:

kkuvaldin@002:oprofile% sudo opcontrol --vmlinux=/boot/vmlinux
kkuvaldin@002:oprofile% sudo opcontrol --start
Using default event: CPU_CLK_UNHALTED:100000:0:1:1
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.
Profiler running.

Then I did some workload to make sure oprofile gets enough samples:

kkuvaldin@002:oprofile% dd if=/dev/urandom of=/dev/null
80870+0 records in
80869+0 records out
41404928 bytes (41 MB) copied, 6.04975 seconds, 6.8 MB/s

kkuvaldin@002:oprofile% sudo opcontrol --stop
Stopping profiling.

However when I tried to get some profiling data for the kernel binary,
I ended up with the following:

kkuvaldin@002:oprofile% sudo opreport -l /boot/vmlinux
error: no sample files found: profile specification too strict ?
zsh: exit 1     sudo opreport -l /boot/vmlinux


I double checked that /boot/vmlinux is the exact image that was
running on the system.


Any ideas why oprofile doesn't list samples for the vmlinux image?



Thanks,
Kirill

                 reply	other threads:[~2008-03-10  9:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2d42915c0803100248r4eb1361exe5f248e39e4187c3@mail.gmail.com \
    --to=kirill.kuvaldin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oprofile-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®