Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752546AbcDZQph (ORCPT ); Tue, 26 Apr 2016 12:45:37 -0400 Received: from mail-ig0-f170.google.com ([209.85.213.170]:36465 "EHLO mail-ig0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752370AbcDZQpg (ORCPT ); Tue, 26 Apr 2016 12:45:36 -0400 Subject: Re: [PATCH/RFC v3] perf core: Allow setting up max frame stack depth via sysctl To: Arnaldo Carvalho de Melo , Brendan Gregg References: <20160425192229.GC25218@kernel.org> <20160425200646.GA23875@ast-mbp.thefacebook.com> <20160425201750.GD25218@kernel.org> <20160425215947.GA25915@ast-mbp.thefacebook.com> <20160425234138.GA16708@kernel.org> <20160426000724.GA28705@ast-mbp.thefacebook.com> <20160426002928.GB16708@kernel.org> <20160426004358.GA29875@ast-mbp.thefacebook.com> <20160426004747.GC16708@kernel.org> <20160426163321.GI11033@kernel.org> Cc: Alexei Starovoitov , Peter Zijlstra , Frederic Weisbecker , Ingo Molnar , Adrian Hunter , Alexander Shishkin , Alexei Starovoitov , He Kuang , Jiri Olsa , Masami Hiramatsu , Milian Wolff , Namhyung Kim , Stephane Eranian , Thomas Gleixner , Vince Weaver , Wang Nan , Zefan Li , Linux Kernel Mailing List From: David Ahern Message-ID: <571F9B28.8040001@gmail.com> Date: Tue, 26 Apr 2016 10:45:28 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20160426163321.GI11033@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 598 Lines: 14 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?