Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1321784rdb; Fri, 20 Oct 2023 15:37:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPNLHRWWMjTas3go7ViEf+547vjQoiUsHFXyekzTVg3HnK2tXxLP5akdwkKYOUa6jFYvfy X-Received: by 2002:a17:90a:f004:b0:27d:1538:e324 with SMTP id bt4-20020a17090af00400b0027d1538e324mr2985363pjb.32.1697841466466; Fri, 20 Oct 2023 15:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697841466; cv=none; d=google.com; s=arc-20160816; b=F8HuOAcCmWML6FJtZklQPMI0tr4JPIBKv1IZ5YtQyVTJomV9IZ0jI987yvEG7WYePf oWSM6U7Kz6kg7dwtAFKbO25GsGWylCPWvWyEaVt4aPrzdLZ4A6NmYN8IdF5Z7Bb+miE+ PgExeYyiZVu7P96BwPUKtmFEOY4jyFkHfHpJ86fQDu1OZOHnK7zTFVKH24cyyfnx144B 0FeYSXzy7VhINfK9yZ4Y5l3H43FY2DDozKLahz48GJk/WxsUOhzr0UREDjIpVNIwq/2K bTYIWx7D+jdNN53yQHVoVA2ccBv0ULG3NDRUUPcO80vnz+7sfzmlwMWnzCUXBDzFGLtL tI0g== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uEORB8UKz3jI9V2Uw1z+6Bx6hXJ3JKuB176UcboEYQQ=; fh=vGyL3sU+HqNbr7RuJtfm4v8bkhEv/TsnqQN2GheqvKg=; b=iq5KpZYFsh0AbD8qKzBMVKAR0V9misDp7+jxL26BUBx4pmT7dWBud4Jqdxr5ZpZCIu QAuz5AALi1Io+j+ArSV8YSWc99EZFs2CjUK8On1lwnRnFF0Gr/0pGGmGpU6PQamtARh2 ICbs1phW+dUVnyB8d6PIeDrQYroiqa2C4akaJ2QCYiGvnfElUUP2YI9ECwNLOrM44Vbt wJDoN9rjbNHZ2LPI/o2eGJ/8RNVJEw88nK79u6qiTxzdv5HF17vX8YVckE7MmxmyrtVT rFZzsndt6OswYom4K0DcoRt8OxmM43DeGp6yU2Ad98WNWES5jn1d0/eRi6sVyWZVFP83 2oVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=E06HzQXh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id kg14-20020a170903060e00b001bbc0ca8650si2487260plb.370.2023.10.20.15.37.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 15:37:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=E06HzQXh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4041D8328FD9; Fri, 20 Oct 2023 15:37:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229983AbjJTWhn (ORCPT + 99 others); Fri, 20 Oct 2023 18:37:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjJTWhl (ORCPT ); Fri, 20 Oct 2023 18:37:41 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A251391; Fri, 20 Oct 2023 15:37:39 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1caa7597af9so10042915ad.1; Fri, 20 Oct 2023 15:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697841459; x=1698446259; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=uEORB8UKz3jI9V2Uw1z+6Bx6hXJ3JKuB176UcboEYQQ=; b=E06HzQXhAHjuC8/FObDcU8VOUOBJuTI0LhYygq6sxyfgxVaRbY4bNANe+DwRPYXami bxy6RoADp2Iwf+Fn+37HOOaZ+N+y/os9VkbH+y2nlhz7Lb3lADSqJFrDlzl7pQm9EPZk kCchqO3tU2fCYCX9ROXSOAZj9mKWGyD8PcqTwVL//4jNNYs3TUjFE3dYTwfQijhBBIlT UBVdNMZSJGthfix8aXUpeS3W+p+EvsQuqdzSUyuG9kbxCurYNXclIk/gIQ0ubZ3SuRO5 BCqN88ZQQUN0T1F9HMkUjCvsPZoK7hn8MeFJI++pv9v67TgFZOS4fZLRvaAukNJG8KDj pKqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697841459; x=1698446259; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uEORB8UKz3jI9V2Uw1z+6Bx6hXJ3JKuB176UcboEYQQ=; b=AXcdki8bJ7C3gWlktjTeDdbwbs6jtpOXF0GE++7ENrzJteIMDGwXtVaEWGV45klQ3f sHVCuMppqkawpIL6pphvx84TSCUkHHIT3ax8iGlWM6jmE81F2l7OrN3vAcTgUSkV9MUg hd5ET8gOhhn6R5aajI7EWPw+Jl7PBEC+pMBdHATWukSmO2VLZeGpchZ2uq0DPBljTLef 77jdsKwXVleLL8UMM8H20uFukvo4VnoUDXI7aFAhBIIGPVaEvIYyutL4ReWej3ZgFhso IGPR8UUC5jU9ZbXI0c89EthlN4zw2MygXXQ43ZNeTy9kK7XBHoH6++hqL86fgLOBCCQd mmJA== X-Gm-Message-State: AOJu0YxA10QQXvcdm82GYXRzZMufhHqyODorNY8B41MXCHj3WMQlgRQ6 hGmobMpWRRGxssilavacdxA= X-Received: by 2002:a17:902:da83:b0:1c7:4973:7b34 with SMTP id j3-20020a170902da8300b001c749737b34mr3285436plx.50.1697841458914; Fri, 20 Oct 2023 15:37:38 -0700 (PDT) Received: from surya ([2600:1700:3ec2:2011:69fb:d3e1:a14b:fe38]) by smtp.gmail.com with ESMTPSA id o11-20020a170902bccb00b001c613b4aa33sm1978264pls.287.2023.10.20.15.37.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 15:37:38 -0700 (PDT) Date: Fri, 20 Oct 2023 15:37:34 -0700 From: Manu Bretelle To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Tom Rix , Fangrui Song , Anshuman Khandual , Andi Kleen , Leo Yan , Madhavan Srinivasan , Carsten Haitzler , Ravi Bangoria , "Naveen N. Rao" , Athira Rajeev , Kan Liang , Yang Jihong , James Clark , Tiezhu Yang , Eduard Zingerman , Andrii Nakryiko , Yonghong Song , Rob Herring , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev, Wang Nan , Wang ShaoBo , YueHaibing , He Kuang , Brendan Gregg , Quentin Monnet Subject: Re: [PATCH v1 1/4] perf parse-events: Remove BPF event support Message-ID: References: <20230810184853.2860737-1-irogers@google.com> <20230810184853.2860737-2-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 20 Oct 2023 15:37:45 -0700 (PDT) On Fri, Oct 20, 2023 at 05:39:25PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Oct 19, 2023 at 03:48:56PM -0700, Manu Bretelle escreveu: > > On Thu, Oct 19, 2023 at 06:08:33PM -0300, Arnaldo Carvalho de Melo wrote: > > > I wonder how to improve the current situation to detect these kinds of > > > problems in the future, i.e. how to notice that some file needed by some > > > Makefile, etc got removed or that some feature test fails because some > > > change in the test .c files makes them fail and thus activates fallbacks > > > like the one above :-\ > > > I think it is tricky. Specifically to this situation, some CI could try to build > > the different combinaison of bpftool and check the features through the build > > `bpftool --version`. > > Right, if the right packages are installed, we expect to get some > bpftool build output, if that changes after some patch, flag it. > > Does bpftool have something like: > > ⬢[acme@toolbox perf-tools-next]$ perf version --build-options > perf version 6.6.rc1.ga8dd62d05e56 > dwarf: [ on ] # HAVE_DWARF_SUPPORT > dwarf_getlocations: [ on ] # HAVE_DWARF_GETLOCATIONS_SUPPORT > syscall_table: [ on ] # HAVE_SYSCALL_TABLE_SUPPORT > libbfd: [ OFF ] # HAVE_LIBBFD_SUPPORT > debuginfod: [ on ] # HAVE_DEBUGINFOD_SUPPORT > libelf: [ on ] # HAVE_LIBELF_SUPPORT > libnuma: [ on ] # HAVE_LIBNUMA_SUPPORT > numa_num_possible_cpus: [ on ] # HAVE_LIBNUMA_SUPPORT > libperl: [ on ] # HAVE_LIBPERL_SUPPORT > libpython: [ on ] # HAVE_LIBPYTHON_SUPPORT > libslang: [ on ] # HAVE_SLANG_SUPPORT > libcrypto: [ on ] # HAVE_LIBCRYPTO_SUPPORT > libunwind: [ on ] # HAVE_LIBUNWIND_SUPPORT > libdw-dwarf-unwind: [ on ] # HAVE_DWARF_SUPPORT > zlib: [ on ] # HAVE_ZLIB_SUPPORT > lzma: [ on ] # HAVE_LZMA_SUPPORT > get_cpuid: [ on ] # HAVE_AUXTRACE_SUPPORT > bpf: [ on ] # HAVE_LIBBPF_SUPPORT > aio: [ on ] # HAVE_AIO_SUPPORT > zstd: [ on ] # HAVE_ZSTD_SUPPORT > libpfm4: [ on ] # HAVE_LIBPFM > libtraceevent: [ on ] # HAVE_LIBTRACEEVENT > bpf_skeletons: [ on ] # HAVE_BPF_SKEL > ⬢[acme@toolbox perf-tools-next]$ > > ? > It has $ ./tools/bpf/bpftool/bpftool --version -j | jq .features { "libbfd": false, "llvm": true, "skeletons": true, "bootstrap": false } Maybe Quentin knows of something else. > > This is actually a test that I run internally to make sure our build has some > > feature enabled. > > This is actually tested by bpftool in the GH CI: > > https://github.com/libbpf/bpftool/blob/main/.github/workflows/build.yaml#L62 > > > As a matter of fact, it would not have been detected because that CI uses a > > different Makefile.feature. > > > Quentin and I were talking offline how we could improve bpftool CI at diff time. > > This is an example where it would have helped :) > > > > > I'll get this merged in my perf-tools-fixes-for-v6.6 that I'll submit > > > tomorrow to Linus, thanks for reporting! > > > > > > I'll add your: > > > > > > Reported-by: Manu Bretelle > > > > > > And: > > > > > > Fixes: 56b11a2126bf2f42 ("perf bpf: Remove support for embedding clang for compiling BPF events (-e foo.c)") > > > > > > Ok? > > > SGTM. Thanks for the quick turnaround. > > > Reviewed-by: Manu Bretelle > > You're welcome, thanks for the detailed report, the patch was just sent > to Linus. > > - Arnaldo