lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 06 Apr 2011 16:15:44 -0600
From:	David Ahern <dsahern@...il.com>
To:	Tim Blechmann <tim@...ngt.org>
CC:	Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
	linux-kernel@...r.kernel.org
Subject: Re: [2.6.39-rc2] perf top fails to mmap



On 04/06/11 14:48, Tim Blechmann wrote:
>>> 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@...lia ~]$ cat vsyscall.c
> 
> after including unistd.h, this compiles and works fine. however i cannot profile 
> any multithreaded program. does this work for you?
> 
> tim
> 

That does fail:
# ps -C rsyslogd -L
  PID   LWP TTY          TIME CMD
  795   795 ?        00:00:00 rsyslogd
  795   797 ?        00:00:00 rsyslogd
  795   798 ?        00:00:00 rsyslogd

# /tmp/build-perf/perf top -p 795
Failed to mmap with 22 (Invalid argument)

strace shows it failing at:
ioctl(4, PERF_EVENT_IOC_SET_OUTPUT, 0x3) = -1 EINVAL (Invalid argument)

Changing to use thread only works:
# /tmp/build-perf/perf top -t 795
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ