Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751974AbbHEHWI (ORCPT ); Wed, 5 Aug 2015 03:22:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48530 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750925AbbHEHWH (ORCPT ); Wed, 5 Aug 2015 03:22:07 -0400 Date: Wed, 5 Aug 2015 09:21:59 +0200 From: Jiri Olsa To: Kan Liang Cc: acme@kernel.org, jolsa@kernel.org, namhyung@kernel.org, ak@linux.intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC V8 3/4] perf,tools: per-event callgraph support Message-ID: <20150805072112.GC20530@krava.redhat.com> References: <1438677022-34296-1-git-send-email-kan.liang@intel.com> <1438677022-34296-4-git-send-email-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1438677022-34296-4-git-send-email-kan.liang@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1551 Lines: 46 On Tue, Aug 04, 2015 at 04:30:21AM -0400, Kan Liang wrote: SNIP > + > + /* User explicitly set per-event callgraph, clear the old setting and reset. */ > + if ((callgraph_buf != NULL) || (dump_size > 0)) { > + > + /* parse callgraph parameters */ > + if (callgraph_buf != NULL) { > + if (!strcmp(callgraph_buf, "no")) { > + param.enabled = false; > + param.record_mode = CALLCHAIN_NONE; > + } else { > + param.enabled = true; > + if (parse_callchain_record_opt(callgraph_buf, ¶m)) { > + pr_err("per-event callgraph setting for %s failed. " > + "Apply callgraph global setting for it\n", > + evsel->name); > + return; > + } > + } > + } > + if (dump_size > 0) > + param.dump_size = dump_size; the parse_callchain_record_opt does some rounding on the stack size value via the get_stack_size function, so following command like does not fail: $ perf record --call-graph='dwarf,819' ls while the term syntax fails: $ perf record -e 'cpu/cpu-cycles,call-graph=dwarf,stack-size=819/ Error: The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cpu/cpu-cycles,time=0,call-graph=dwarf,stack-size=819/). /bin/dmesg may provide additional information. No CONFIG_PERF_EVENTS=y kernel support configured? jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/