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 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42AD7C35254 for ; Mon, 10 Feb 2020 18:00:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 198A520715 for ; Mon, 10 Feb 2020 18:00:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727435AbgBJSAr (ORCPT ); Mon, 10 Feb 2020 13:00:47 -0500 Received: from mga01.intel.com ([192.55.52.88]:35962 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726950AbgBJSAr (ORCPT ); Mon, 10 Feb 2020 13:00:47 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2020 10:00:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,425,1574150400"; d="scan'208";a="280700464" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by FMSMGA003.fm.intel.com with ESMTP; 10 Feb 2020 10:00:31 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 3DBFE300503; Mon, 10 Feb 2020 10:00:31 -0800 (PST) Date: Mon, 10 Feb 2020 10:00:31 -0800 From: Andi Kleen To: Jiri Olsa Cc: Joe Perches , Kajol Jain , acme@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Jiri Olsa , Alexander Shishkin , Kan Liang , Peter Zijlstra , Jin Yao , Madhavan Srinivasan , Anju T Sudhakar , Ravi Bangoria Subject: Re: [PATCH v3] tools/perf/metricgroup: Fix printing event names of metric group with multiple events incase of overlapping events Message-ID: <20200210180031.GY302770@tassilo.jf.intel.com> References: <20200131052522.7267-1-kjain@linux.ibm.com> <20200206184510.GA1669706@krava> <51a4b570eb47e80801a460c89acf20d13a269600.camel@perches.com> <20200210121135.GI1907700@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200210121135.GI1907700@krava> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > stack declarations of variable length arrays are not > > a good thing. > > > > https://lwn.net/Articles/749089/ > > > > and > > > > bool evlist_used[perf_evlist->core.nr_entries] = {}; > > hum, I think we already have few of them in perf ;-) For user space they don't really matter as long as the size is not totally out of bound, it has a fairly large stack compared to the kernel, and also is less security sensitive. -Andi