Re: [PATCH/RFC v3] perf core: Allow setting up max frame stack depth via sysctl

From: David Ahern
Date: Tue Apr 26 2016 - 12:45:40 EST


On 4/26/16 10:33 AM, Arnaldo Carvalho de Melo wrote:
So, for completeness, further testing it to see how far it goes on a 8GB
machine I got:

[root@emilia ~]# echo 131100 > /proc/sys/kernel/perf_event_max_stack
[root@emilia ~]# perf record -g ls
Error:
The sys_perf_event_open() syscall returned with 12 (Cannot allocate memory) for event (cycles).
/bin/dmesg may provide additional information.
No CONFIG_PERF_EVENTS=y kernel support configured?

I thought we fixed up the last line to not display for errors like this.

How about adding ENOMEM case to perf_evsel__open_strerror?