Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp965122rwr; Thu, 4 May 2023 12:03:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51dRft8ohqpKqBRD9/VwLAoujYxOBvmYVMOQm0XOUzAHle8jfnd17+Qz6vZHn6Vz18WGYc X-Received: by 2002:a17:902:f68e:b0:1a9:2e3d:fca2 with SMTP id l14-20020a170902f68e00b001a92e3dfca2mr5620013plg.33.1683227023932; Thu, 04 May 2023 12:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683227023; cv=none; d=google.com; s=arc-20160816; b=eQ0PJbKLeOLniXnBs8tQQXMRULayOE6O6JulexcxGLHe69E3NyFKfZg6MKsf1ZbLqp oaXkjiavfDuZLQ9tcvZUf+7GbmTAhZy2sYlBkKPbytpaU+RAX27wIVig+zkdtZhzQOVp 6RorZoMnnOL8lNdnhzsQ6idE50wqkJIg3d9JVWw26Wo54R/EWbJoQ+cdRYvqRQijsmBr DdWv7CCeqG6pRk5+xo4T+7Dp3cf5eitVCM3OTmULPVqn7YwRD34MBWrgg27JLIbsutJm G+Fmr3t7gagCQtvGEgGJ1x4ciPfDmF9bnH+93XDW8M7PW8KdW/54ZT9AskE0XDkKqqA8 61GQ== 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:date:from:dkim-signature; bh=7SN19wDNYmU4q+XSqNk7FwWu0e+B21E4gPwmpCjIg2w=; b=tdmAUBVw4ryFlxDOznqoOJSSQkExgnQbfq2l6V5PDrP/Ow6U85N+48BQFYDPP6nWr2 187mObyQqVISaubAHiKskRklgVcFalBhmEl1FjBnCa5sB9UFGnI80EmjN/j0SJCOnxus x6PN9s/XFRbMN9YFsBdmJoBlZhYT0Hf/y3ZCei5k7LdWk9OdvgJXl1w/ZOVbmOy5xzAJ 3kVfvjjlpf/7zOZysJptDLYvp0RU9c5Lx90iXjZz34Haz8c+wXy7SuxpTHP/1ixpavcn fcvlzdN9wXo4XNRu4hG9jVgnqvsiC9eL8OYhCosFeSBQCZ5kW7Lr2XAi4Mi5v38FNKlk 7a0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=AFp8jRlF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f23-20020a170902ab9700b001aaeb3adb5csi11067748plr.188.2023.05.04.12.03.26; Thu, 04 May 2023 12:03:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=AFp8jRlF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbjEDSg2 (ORCPT + 99 others); Thu, 4 May 2023 14:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbjEDSg1 (ORCPT ); Thu, 4 May 2023 14:36:27 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8336761B1; Thu, 4 May 2023 11:36:21 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-96598a7c5e0so138610266b.3; Thu, 04 May 2023 11:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683225380; x=1685817380; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:date:from:from:to :cc:subject:date:message-id:reply-to; bh=7SN19wDNYmU4q+XSqNk7FwWu0e+B21E4gPwmpCjIg2w=; b=AFp8jRlFwOgqYRC8iQqyvfOdG1oTQmfbyCnpPRnYnXDc4mKAqJEVxAXBmi7KEolldg 83pq7e/lV+pkYBib08bQzL5nKyixKeZ43SOacXQkieoOaOD/5M1y4BhV5KO4CuoIldxe LZ7+Iq/5HrSgm7BNJu/e3qph+MRZcdTWGdpZCmkd4q6O0JNO9CaDIu+hu9kgPBy6Qwmc i/oQVC72NIBsqJ7p1usfbg+nI9LJFkdQnYPkHAgxMlgt6Tiy5kcL1rdVDayUqplnY/op NWLhibHoPyZ3WDjdRJsRo6KPYfP0/NdXQT56SlWjulP53Tc5byMs6z3cpWv9cDegJ4N4 BWbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683225380; x=1685817380; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7SN19wDNYmU4q+XSqNk7FwWu0e+B21E4gPwmpCjIg2w=; b=eRSi6BiHYaqCdnJJyZtxzgsARhjugtNWb7IDILVLOfuqxpFwWezKAZSwaTmY5UYKkK qFWyqr17EvqQMLTVeqF1zBZAGMBMlaZuvxL1p7/ainWo1noiqvBpBETgZvNPfJBUKAIP 7wwEb5wbs/82TlNgjJ9e0y8CjM3MJLi2W2/cjoWKBhNg7V5WIxFwsuJqW1xRxSud0jPz L9//TTZLqW6eLgoDc4vH4iw7sM253j7BtNW2O3TPyA4zUUPTa0o8pmwd1EEEYKXIERin fGSHMgvCz1Xd1Cwp+72BFdoBTAy+7uMBOgGFXKCz2sLCV6WbjcufLtXtnfUuQNzPXCdQ JGjA== X-Gm-Message-State: AC+VfDy4ZOvcIeMDynWZYAZZce0GLGHkFNpk5ioHkwJ5KX32KEYwEh+k yQSyczIxY72BGGDQj/2PGYE= X-Received: by 2002:a17:907:25c2:b0:94e:75f8:668 with SMTP id ae2-20020a17090725c200b0094e75f80668mr7983708ejc.56.1683225379501; Thu, 04 May 2023 11:36:19 -0700 (PDT) Received: from krava (2001-1ae9-1c2-4c00-726e-c10f-8833-ff22.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:726e:c10f:8833:ff22]) by smtp.gmail.com with ESMTPSA id e1-20020a17090681c100b0094f67ea6598sm18991631ejx.193.2023.05.04.11.36.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 11:36:19 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Thu, 4 May 2023 20:36:16 +0200 To: Ian Rogers Cc: Linus Torvalds , Arnaldo Carvalho de Melo , Ingo Molnar , Thomas Gleixner , Namhyung Kim , Clark Williams , Kate Carcia , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Adrian Hunter , Changbin Du , Hao Luo , James Clark , Kan Liang , Roman Lozko , Stephane Eranian , Thomas Richter , Arnaldo Carvalho de Melo Subject: Re: [GIT PULL] perf tools changes for v6.4 Message-ID: References: <20230503211801.897735-1-acme@kernel.org> 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Wed, May 03, 2023 at 10:51:15PM -0700, Ian Rogers wrote: > On Wed, May 3, 2023 at 8:12 PM Linus Torvalds > wrote: > > > > On Wed, May 3, 2023 at 8:00 PM Linus Torvalds > > wrote: > > > > > > I did consider it, but the end result doesn't even build, so I unpulled again.. > > > > > > I get some libbpf error, and I'm just not interested in trying to > > > debug it. This has clearly not been tested well enough to be merged. > > > > Side note: its' not even about testing. > > > > The error message makes it clear that this is garbage and should never > > be merged even if it were to compile. > > > > There is not a way in hell that it is correct that a 'perf' tool build > > should ever even look at the vmlinux binary to build. > > > > The fact that it does shows that something is seriously wrong in > > perf-tool land, and I will not be touching any pulls until that > > fundamental mistake is entirely gone. > > > > The vmlinux image that is present in my tree (ie > > /home/torvalds/v2.6/linux/vmlinux) is a test build with an insane > > config. And the fact that the perf tool even looks at it is seriously > > broken. > > > > Whatever you are doing - stop it right now. > > > > Linus > > I think the error you gave makes it pretty clear what is going on and > Arnaldo's e-mail explains the motivation. Perhaps we can check a > vmlinux.h into the perf tree so that we don't default to generating > it. This would avoid the binary dependency but we may need different > flavors for different architectures because of structs like pt_regs. I think we could check that vmlinux with .BTF is present before allowing to build skeletons jirka