From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752264AbbJLMmr (ORCPT ); Mon, 12 Oct 2015 08:42:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47025 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751444AbbJLMmq (ORCPT ); Mon, 12 Oct 2015 08:42:46 -0400 Date: Mon, 12 Oct 2015 14:42:42 +0200 From: Jiri Olsa To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , LKML , Frederic Weisbecker , Stephane Eranian , David Ahern , Andi Kleen , Adrian Hunter Subject: Re: [RFC/PATCH 02/38] perf tools: Save mmap_param.len instead of mask Message-ID: <20151012124242.GA32196@krava.brq.redhat.com> References: <1443763159-29098-1-git-send-email-namhyung@kernel.org> <1443763159-29098-3-git-send-email-namhyung@kernel.org> <20151008101711.GD17581@krava.landal.opennet> <20151009060333.GA1171@danjae.orange-hotspot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151009060333.GA1171@danjae.orange-hotspot.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 09, 2015 at 03:03:33PM +0900, Namhyung Kim wrote: > Hi Jiri, > > On Thu, Oct 08, 2015 at 12:17:11PM +0200, Jiri Olsa wrote: > > On Fri, Oct 02, 2015 at 02:18:43PM +0900, Namhyung Kim wrote: > > > It is more convenient saving mmap length rather than (bit) mask. With > > > this patch, we can eliminate dependency to perf_evlist other than > > > getting mmap_desc for dealing with mmaps. The mask and length can be > > > converted using perf_evlist__mmap_mask/len(). > > > > > > Cc: Jiri Olsa > > > Cc: Adrian Hunter > > > Signed-off-by: Namhyung Kim > > > > after this patch I'm hitting: > > > > [jolsa@krava perf]$ ./perf record kill > > kill: not enough arguments > > perf: util/evlist.c:1003: perf_evlist__mmap_len: Assertion `!((mask & page_size) != 0)' failed. > > Aborted (core dumped) > > [jolsa@krava perf]$ > > This is strange.. I think I fixed it already. And the expression in > the assertion is different than the code in the patch: > > static size_t perf_evlist__mmap_len(size_t mask) > { > BUG_ON(((mask + 1) % page_size) != 0); > > return mask + 1 + page_size; > } > > Could you please double check? yep, that one still works.. I probably forked some older version of your perf/threaded-v5.. the current one has it fixed already will check the new one thanks, jirka