linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf record: mmap fails when specifying process/thread
@ 2011-02-16 15:43 David Ahern
  2011-02-16 23:53 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 3+ messages in thread
From: David Ahern @ 2011-02-16 15:43 UTC (permalink / raw)
  To: linux-perf-users

Latest perf-core (pulled 5 minutes ago):

# ps -C sshd
  PID TTY          TIME CMD
  961 ?        00:00:00 sshd
 1042 ?        00:00:00 sshd

# /tmp/build-perf/perf record -v -fo/tmp/perf.data -p 1042
  Warning:  ... trying to fall back to cpu-clock-ticks

  Fatal: failed to mmap with 22 (Invalid argument)


It works fine with -a argument and when a command is given, but fails
with the -p or -t argument.

David

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: perf record: mmap fails when specifying process/thread
  2011-02-16 15:43 perf record: mmap fails when specifying process/thread David Ahern
@ 2011-02-16 23:53 ` Arnaldo Carvalho de Melo
  2011-02-17  0:01   ` David Ahern
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2011-02-16 23:53 UTC (permalink / raw)
  To: David Ahern; +Cc: linux-perf-users

Em Wed, Feb 16, 2011 at 08:43:45AM -0700, David Ahern escreveu:
> Latest perf-core (pulled 5 minutes ago):
> 
> # ps -C sshd
>   PID TTY          TIME CMD
>   961 ?        00:00:00 sshd
>  1042 ?        00:00:00 sshd
> 
> # /tmp/build-perf/perf record -v -fo/tmp/perf.data -p 1042
>   Warning:  ... trying to fall back to cpu-clock-ticks
> 
>   Fatal: failed to mmap with 22 (Invalid argument)
> 
> 
> It works fine with -a argument and when a command is given, but fails
> with the -p or -t argument.

In my radar, perf/urgent works tho, kinda made me lazy due to compound with
unrelated company work :-\ Need to fix that ASAP.

- Arnaldo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: perf record: mmap fails when specifying process/thread
  2011-02-16 23:53 ` Arnaldo Carvalho de Melo
@ 2011-02-17  0:01   ` David Ahern
  0 siblings, 0 replies; 3+ messages in thread
From: David Ahern @ 2011-02-17  0:01 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: linux-perf-users



On 02/16/11 16:53, Arnaldo Carvalho de Melo wrote:
> Em Wed, Feb 16, 2011 at 08:43:45AM -0700, David Ahern escreveu:
>> Latest perf-core (pulled 5 minutes ago):
>>
>> # ps -C sshd
>>   PID TTY          TIME CMD
>>   961 ?        00:00:00 sshd
>>  1042 ?        00:00:00 sshd
>>
>> # /tmp/build-perf/perf record -v -fo/tmp/perf.data -p 1042
>>   Warning:  ... trying to fall back to cpu-clock-ticks
>>
>>   Fatal: failed to mmap with 22 (Invalid argument)
>>
>>
>> It works fine with -a argument and when a command is given, but fails
>> with the -p or -t argument.
> 
> In my radar, perf/urgent works tho, kinda made me lazy due to compound with
> unrelated company work :-\ Need to fix that ASAP.
> 
> - Arnaldo

Works in latest kernel git too. I looked at a diff of the tools between
the kernel tree and perf-core -- too many changes for me to wade through
right now.

BTW, it fails running the Fedora 14 kernel too, so my guess is a
userspace change.

David

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-17  0:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-16 15:43 perf record: mmap fails when specifying process/thread David Ahern
2011-02-16 23:53 ` Arnaldo Carvalho de Melo
2011-02-17  0:01   ` David Ahern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).