From: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
To: Tim Blechmann <tim@klingt.org>
Cc: David Ahern <dsahern@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [2.6.39-rc2] perf top fails to mmap
Date: Wed, 6 Apr 2011 14:52:17 -0300 [thread overview]
Message-ID: <20110406175217.GC4987@ghostprotocols.net> (raw)
In-Reply-To: <4D9C84D5.6090303@gmail.com>
Em Wed, Apr 06, 2011 at 09:20:53AM -0600, David Ahern escreveu:
>
>
> On 04/06/11 04:51, Tim Blechmann wrote:
> > hi all,
> >
> > when trying to profile a process with `perf top -p $PID', perf exits with:
> > Failed to mmap with 22 (Invalid argument)
>
> Works fine for me with latest kernel tree (this morning). Short lived
> process?
>
> David
>
> >
> > this happens when running perf as the same process as the process and when
> > running perf as root.
yep, works for me as well:
[acme@emilia ~]$ cat vsyscall.c
#include <time.h>
int main(void)
{
struct timespec t;
//int i;
//for(i = 0; i < 10000000; i++)
while (1) {
clock_gettime(CLOCK_MONOTONIC, &t);
usleep(10);
}
return 0;
}
[acme@emilia ~]$ cc -lrt vsyscall.c -o vsyscall
[acme@emilia ~]$ ./vsyscall &
[acme@emilia linux]$ perf top -p `pidof vsyscall` -F 10000
PerfTop: 230 irqs/sec kernel:88.3% exact: 0.0% [10000Hz cycles], (target_pid: 2728)
----------------------------------------------------------------------------------------
samples pcnt function DSO
_______ _____ ____________________ ____________________
21.00 44.7% __nanosleep_nocancel /lib64/libc-2.12.so
13.00 27.7% usleep /lib64/libc-2.12.so
6.00 12.8% __GI_clock_gettime /lib64/librt-2.12.so
6.00 12.8% main /home/acme/vsyscall
^C
[acme@emilia linux]$ su -
Password:
[root@emilia ~]# perf top -p `pidof vsyscall` -F 10000 --hide_kernel_symbols
PerfTop: 428 irqs/sec kernel:90.2% exact: 0.0% [10000Hz cycles], (target_pid: 2728)
-------------------------------------------------------------------------------------------
samples pcnt function DSO
_______ _____ ____________________ ____________________
15.00 29.4% __nanosleep_nocancel /lib64/libc-2.12.so
14.00 27.5% usleep /lib64/libc-2.12.so
9.00 17.6% __GI_clock_gettime /lib64/librt-2.12.so
8.00 15.7% main /home/acme/vsyscall
^C
[root@emilia ~]#
- Arnaldo
next prev parent reply other threads:[~2011-04-06 17:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 10:51 [2.6.39-rc2] perf top fails to mmap Tim Blechmann
2011-04-06 15:20 ` David Ahern
2011-04-06 17:52 ` Arnaldo Carvalho de Melo [this message]
2011-04-06 20:48 ` Tim Blechmann
2011-04-06 22:15 ` David Ahern
2011-04-06 22:45 ` [2.6.39-rc2] perf top fails to mmap - bisected to 70db7533 David Ahern
2011-04-07 0:13 ` Arnaldo Carvalho de Melo
2011-04-22 16:37 ` David Ahern
2011-04-23 13:45 ` Lin Ming
[not found] ` <BANLkTikWpnnHAfO2n2rN6ExtQyrsVaiqEQ@mail.gmail.com>
2011-04-23 14:51 ` Lin Ming
2011-04-24 11:47 ` Tim Blechmann
2011-04-24 13:45 ` David Ahern
2011-04-24 15:02 ` Lin Ming
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=20110406175217.GC4987@ghostprotocols.net \
--to=acme@ghostprotocols.net \
--cc=dsahern@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tim@klingt.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.