Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1120688rdh; Fri, 24 Nov 2023 05:49:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEU3KGNkTVcjFMJ/Jqjd+8R/tHQ21rGsUNWwT+yvqSAN4biBef2i424M1pdNL9eVJsWax7r X-Received: by 2002:a17:902:eac5:b0:1cf:642a:914a with SMTP id p5-20020a170902eac500b001cf642a914amr2937262pld.15.1700833773175; Fri, 24 Nov 2023 05:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700833773; cv=none; d=google.com; s=arc-20160816; b=Y2ZLITYezdCbjLiOl+JIjan4cZa/IsQO3UMXZLjEX9wT49S6bjBblqPOnT/Q9xCCW9 7iaBZQVIfGfVQgT2pAT8VDQBJ4fXavkHzQ8HVLXdRDbdNtGIjWSh+2ErIwhOdAwPLH5q OfHqzPrx+q+n0mdnGyBnVb/gxkL9Shbtra8RV1mG+Zr3GYTyVMgQAuIX/WgKVD2j4Wv5 2SWtu0dlBSDH9fL6yV12Sd02aUEVea0uTN4Q+/TAAewYu/FaW5PUFdSN+6AeqVqxZruX bKBNEQh2c+gzRXFiWDWJNGj13xAvMJbZMSewzV7oPCUJ4fSPUnZpQrUWpgl0sIc805Lg kiPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GxzhDbBz5i4qeSnrhhnWwQGASybkhfLB3lvSKjy2eTg=; fh=3fFP8gWcN7rhUlYaLLI4eQ9LpFFFYIQGfB9/+CySOMQ=; b=BPgiaFF500PeTQ4YM+mAo0RGPJya+zFpqYaoqTpPdLa4LgeJAJuxhgMRG5c63Z3z// 3jXX1ZTurz/ZmQK+ZESMS0mjOUEbiS0KyLnPNTTOatpc8MkHes3g0iLv3lk5H+xJ0fx4 +7S2G9Ba2qlbT490agaetzyINvJ/VxbF6qL3syH1AHC66KcpMh2x38KAk+NVBXS2v1q+ 3Rqa/O25jKD3xmIIiYXx0zI5u7djlzQaqDAr81CDk0EBzWSnknmrCpsrMJOyR8iFySGl O1SIAXSRvg/mgTODjaxN6qq6zoJ11xJZ0D8rJFy8npC9WCf+/PmRQKRx5n59f5qG1AnT o8jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MflN0Xjx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b15-20020a170902d50f00b001cc2216e87bsi3571660plg.351.2023.11.24.05.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 05:49:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MflN0Xjx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id AE93B80764A7; Fri, 24 Nov 2023 05:49:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230446AbjKXNtP (ORCPT + 99 others); Fri, 24 Nov 2023 08:49:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjKXNtO (ORCPT ); Fri, 24 Nov 2023 08:49:14 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54EC3A2 for ; Fri, 24 Nov 2023 05:49:21 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3A4BC433C7; Fri, 24 Nov 2023 13:49:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700833760; bh=RK/Qw8o4ovbyL3c/RrcyncPvhe8T4y1yfBBbLNiqdck=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MflN0XjxEtFzbz6akRRAKiW1WlNp0Aa39uvDxNCE+H2yHsfMETcSGfT54TsfpH2hj muordg+4h/Z5FOx7u+TQGBtosrkhU9GwWibuZje+NpE4V5XVGUwPFLMto6hwl1JfCE cZ4Ak09zk5qiEda3LY00mZ3CZ+V+ZxknExb3VGzFt1sWvsxU7NzY/Z/lYbUXt5hGNZ GUBFkn5HgjIT1wt96ZimOYXptHGKJoD4jzZPdYs/u7BOwvheEh0HOBnqjGaXleMjuX clolK4MrVlAK740BietvtX/6yw+topNR9YsZuIRhfhBA4U4M8BZszIK+T2ADYZezlM ztoNEXXvIj01Q== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id E547A40094; Fri, 24 Nov 2023 10:49:17 -0300 (-03) Date: Fri, 24 Nov 2023 10:49:17 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Hector Martin , Mark Rutland , Marc Zyngier , Namhyung Kim , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v1] perf parse-events: Make legacy events lower priority than sysfs/json Message-ID: References: <20231123042922.834425-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NUMERIC_HTTP_ADDR,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 24 Nov 2023 05:49:30 -0800 (PST) Em Thu, Nov 23, 2023 at 06:15:09PM -0300, Arnaldo Carvalho de Melo escreveu: > > I'll collect those, but only after addressing these: > > [perfbuilder@five ~]$ export BUILD_TARBALL=http://192.168.86.5/perf/perf-6.6.0-rc1.tar.xz > [perfbuilder@five ~]$ time dm > 1 100.09 almalinux:8 : FAIL clang version 15.0.7 (Red Hat 15.0.7-1.module_el8.8.0+3466+dfcbc058) > util/parse-events.c:1461:6: error: variable 'alias_rewrote_terms' is used uninitialized whenever '&&' condition is false [-Werror,-Wsometimes-uninitialized] > if (!parse_state->fake_pmu && perf_pmu__check_alias(pmu, &parsed_terms, > ^~~~~~~~~~~~~~~~~~~~~~ > util/parse-events.c:1477:6: note: uninitialized use occurs here > if (alias_rewrote_terms && > ^~~~~~~~~~~~~~~~~~~ > util/parse-events.c:1461:6: note: remove the '&&' if its condition is always true > if (!parse_state->fake_pmu && perf_pmu__check_alias(pmu, &parsed_terms, > ^~~~~~~~~~~~~~~~~~~~~~~~~ > util/parse-events.c:1401:26: note: initialize the variable 'alias_rewrote_terms' to silence this warning > bool alias_rewrote_terms; > ^ > = false > 1 error generated. > make[3]: *** [/git/perf-6.6.0-rc1/tools/build/Makefile.build:158: util] Error 2 It built well with gcc but clang didn't notice that perf_pmu__check_alias() unconditionally initializes that variable to false as one of its first steps. So I just did what clang suggested. - Arnaldo