From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AC68C00140 for ; Tue, 2 Aug 2022 18:17:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230359AbiHBSRL (ORCPT ); Tue, 2 Aug 2022 14:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbiHBSRK (ORCPT ); Tue, 2 Aug 2022 14:17:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B81332EE1; Tue, 2 Aug 2022 11:17:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DB92561333; Tue, 2 Aug 2022 18:17:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D6D5C433D6; Tue, 2 Aug 2022 18:17:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659464228; bh=MAPAKOMDnapoFWQI4pbiRIHdLfwu4SmgOSEVB+CmYFE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uqCiNcvOxvcQF54d52JcBnBqklZPQOkv3iae9KzBU5KxMbhEAXyCWxwVT8+BjGV4E F4VvDFJM2YMMc+tcVGfhijodaIQdQqHqOAkhtOhCdM1FBav7kBvvVwLbnpzKUFa0dw +s/J42aE585ahlwTzU/GYJDkCI5S3iQO6fTAlp0khV+zpcZhYjoytvFIoWGU1EYc6R sYHcnkE3QWfZHkZehoZEwH8DM+R45lDrfhhdPWxUMz9Raq57mootGS7D1GR4nxO3Uc RVQqpeyAlXvk+YAhpPs7sZ9vRTEEQPwIgWSuSbMsn47dR6VpoUcoOAdTYe61YZndO/ Icl18/KHyZkrw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id F186B40736; Tue, 2 Aug 2022 15:17:05 -0300 (-03) Date: Tue, 2 Aug 2022 15:17:05 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Jiri Olsa , Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers , linux-perf-users , Will Deacon , Waiman Long , Boqun Feng , Davidlohr Bueso , Song Liu , Blake Jones Subject: Re: [PATCH 2/3] perf lock: Add -m/--map-length option Message-ID: References: <20220802073511.299459-1-namhyung@kernel.org> <20220802073511.299459-2-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org Em Tue, Aug 02, 2022 at 11:05:09AM -0700, Namhyung Kim escreveu: > On Tue, Aug 2, 2022 at 10:43 AM Arnaldo Carvalho de Melo wrote: > > Em Tue, Aug 02, 2022 at 12:35:10AM -0700, Namhyung Kim escreveu: > > > +-m:: > > > +--map-length:: > > > + Maximum number of BPF map entries (default: 10240). > > > > --map-nr-entries? > > > > I think we use this jargon "nr-entries" for arrays, lists, etc, better > > try to stick to it. > Makes sense, will change. Great. > > Also what do you think about not using single letter options for things > > that are not that used? > > > > The map size has a default, one that seems generous, so changing it > > should be something uncommon, and then, if it becomes common that more > > entries are needed by default, we can change the default in the tool. > > Fair enough, I'll remove the single letter option. Thanks! - Arnaldo