Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp316883rdb; Mon, 18 Sep 2023 16:40:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFw9MugG21kpEpGYzSMkh1T88nXuMpmcoaiFAn/kxdIHq1YZPHymo4j+xNED+Ki6QM/VvTv X-Received: by 2002:a05:6a00:1a4f:b0:68b:a137:3739 with SMTP id h15-20020a056a001a4f00b0068ba1373739mr10105746pfv.4.1695080439913; Mon, 18 Sep 2023 16:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695080439; cv=none; d=google.com; s=arc-20160816; b=aw0hQ5PvChWieApaOAkBWxy9MX67S1kluPwtUy1cbaJq7s1ei6T4dFJUh60uHznIso c/u4MYM4lwIwVtwvyxgENwqv9SxdFYRUXu7U8KciKb0f/3POSBG76e+gx9yWU3CqopIu Hl+DZ/IUHE0wHEAlqWHnrvLLttYO6+OJi/hbdoYcFT6cZSWNTpGyYReLBKTBdFs/puty Po3waBDmDOY8/GyZBaGuR8IVoXQQLmIloA8hlqG+VtxoOIeaVd9VTZwkMMf8GuKTOx1b aF3M/zTCqfmRTp3w6gikbTOINUgnGscZf7UIYbIuOO7/hlwxLY0JvHCDfIPNk6ynA4FE BdVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=E61LHfw/rlZpvhh7eUy5h3tyaN97IKB4hlnh5TvEZXI=; fh=h3rut/cWVOdsO1hnAHSKWb/am4Vx5RIqSekqDVkrjIY=; b=qlgS/FXfDUMM2qMM3tMF71XXc7nu+xW6EexgYwfLYaJxOq4jKq1g4wJz0uRmy9F5Lg I4I2NIjqP9qdhJHzom/8mpfB/Ll0pHHOxIt4xKclhltmzbHFSvgk++4yAFe44irJPwm1 IwwByUrVfdCfTCGVst2b6uxUgfapEtI1NejIs/bBsYFfvWQ/kxTAps5sbcMu9nBRVS7F x+F3pbO6bMAMu11oAt3AiKeeRS03MDiu7U4Cl8uhRprMxZVWDMOB6/ZNTCoDgQxOCeNB opl18sezBbGOLwJTkN3a1PM7DvRVBPt2eybsimUzV7676em6ICz8OBeFaA2Yxh5zAoZY X8jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id y136-20020a62ce8e000000b00690bc21d900si719346pfg.136.2023.09.18.16.40.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 16:40:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 7620A844BC51; Mon, 18 Sep 2023 16:40:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230221AbjIRXkd convert rfc822-to-8bit (ORCPT + 99 others); Mon, 18 Sep 2023 19:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjIRXkc (ORCPT ); Mon, 18 Sep 2023 19:40:32 -0400 Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B17E90; Mon, 18 Sep 2023 16:40:27 -0700 (PDT) Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-79d1fbeeb41so87979439f.3; Mon, 18 Sep 2023 16:40:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695080426; x=1695685226; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zQ/RPYyapJuuQ9GCqYoGVr20X0i1V2UFAqZEu2P6bY4=; b=fLYQNV7qHLKkeCrDejvJhZesYXfN8qvKlJlO6id8ZA9heQ3ykSSXtjQPqOV0ug3VV/ 7Z5ip3HfLx7ODq614zavHfEBUYLsUbAew2RIxwZGVoYo9DraPsMDHeqei1z6/TF7Y42y GHDSIa2ztkdR5koNB2XaSNDYvy0EjGqXwuJiZXqx2ZLQxUjWrI6jC9/A4dCfMxyUwDDB BeaYlCu/g9gQarG6MAZj4EUGFrVExe0fjh02E4aa5zQpLZvDju/BToDiDP6kPXBoYXf6 gEGygeUAnEjHq4RIETCr+fBu7LT58nUNc+MP8QbFpcp0MV9Ga1mM4iFmX+Um4mcsv+ZR FJ7Q== X-Gm-Message-State: AOJu0YxwO9r7Uyz1I3ikTQOMG3cDSH6NU64CeWyhIlajlKSLywKTVSjI T8OeIzlTQz3qZsY/fQ0xgeclEzC1XDlhXjcuOjo= X-Received: by 2002:a5e:cb43:0:b0:787:4f3c:730d with SMTP id h3-20020a5ecb43000000b007874f3c730dmr11508999iok.18.1695080426492; Mon, 18 Sep 2023 16:40:26 -0700 (PDT) MIME-Version: 1.0 References: <20230914211948.814999-1-irogers@google.com> In-Reply-To: <20230914211948.814999-1-irogers@google.com> From: Namhyung Kim Date: Mon, 18 Sep 2023 16:40:15 -0700 Message-ID: Subject: Re: [PATCH v1 0/5] Enable BPF skeletons by default To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Nick Terrell , Nathan Chancellor , Nick Desaulniers , Tom Rix , Andrii Nakryiko , Tiezhu Yang , James Clark , Kajol Jain , Patrice Duroux , Athira Rajeev , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 16:40:33 -0700 (PDT) On Thu, Sep 14, 2023 at 2:20 PM Ian Rogers wrote: > > Enable BPF skeletons by default but warn don't fail if they can't be > supported. This was the intended behavior for Linux 6.4 but it caused > an issue captured in this thread: > https://lore.kernel.org/lkml/20230503211801.897735-1-acme@kernel.org/ > > This issue isn't repeated here as the previous issue related to > generating vmlinux.h, which is no longer performed by default as a > checked-in vmlinux.h is used instead. > > Unlike with those changes, the BUILD_BPF_SKEL is kept and setting it > to 0 disables BPF skeletons. Also, rather than fail the build due to a > missed dependency, dependencies are checked and BPF skeletons disabled > if they aren't present. > > Some related commits: > b7a2d774c9c5 perf build: Add ability to build with a generated vmlinux.h > a887466562b4 perf bpf skels: Stop using vmlinux.h generated from BTF, use subset of used structs + CO-RE > a2af0f6b8ef7 perf build: Add system include paths to BPF builds > 5be6cecda080 perf bpf skels: Make vmlinux.h use bpf.h and perf_event.h in source directory > 9a2d5178b9d5 Revert "perf build: Make BUILD_BPF_SKEL default, rename to NO_BPF_SKEL" > a887466562b4 perf bpf skels: Stop using vmlinux.h generated from BTF, use subset of used structs + CO-RE > 1d7966547e11 perf build: Add warning for when vmlinux.h generation fails > a980755beb5a perf build: Make BUILD_BPF_SKEL default, rename to NO_BPF_SKEL > > Ian Rogers (5): > perf version: Add status of bpf skeletons > perf build: Default BUILD_BPF_SKEL, warn/disable for missing deps > perf test: Update build test for changed BPF skeleton defaults > perf test: Ensure EXTRA_TESTS is covered in build test > perf test: Detect off-cpu support from build options Tested-by: Namhyung Kim Thanks, Namhyung > > tools/perf/Makefile.config | 78 ++++++++++++++++--------- > tools/perf/Makefile.perf | 8 +-- > tools/perf/builtin-version.c | 1 + > tools/perf/tests/make | 7 ++- > tools/perf/tests/shell/record_offcpu.sh | 2 +- > 5 files changed, 59 insertions(+), 37 deletions(-) > > -- > 2.42.0.459.ge4e396fd5e-goog >