Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1160432rwb; Wed, 7 Dec 2022 09:18:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5cT37/3wiIqVaaqB9/nga+Wfym3NtnVtgY+opWFk+/DKIt7vbEX/lEdOAOLIt3iUzlaPq4 X-Received: by 2002:a17:90a:5801:b0:218:90b5:d1f2 with SMTP id h1-20020a17090a580100b0021890b5d1f2mr90577807pji.142.1670433512066; Wed, 07 Dec 2022 09:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670433512; cv=none; d=google.com; s=arc-20160816; b=eSkglEa6Sqn5CiuzSJDueAjdHh0nlGw4uGOScCVNxEZqW4acbBmibL8Ylg+5XqY4N0 CVIuEZObFu5YSyzHdXXPMJzOOsTt80fmPuC4wrjI4xsyKdjpFeqUzA46+GNnv9GYqcxO rz/4qk0PExbsZR2alu5lYlVq6o35F2c9LqmjPkK6h66NApwToQtxdEvUE2GaC1Fz7szt pPvVgS2LQ1zFPbzwFWV2iAdjqbZYlnx70vTePNfP4OWaIYKuEXYoJTs+x442Lhmo8hv3 U8fvIaZnZFPxMo2yB001BiXcmVGQ+76/U1V3LFDLi1gkdokYppN3r9C7vVWyybQKZ3kL Fbfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BXesToSWwwnCKV+g1AwRtRU3qfEBkcVEBg6QS+SjDxU=; b=mQWxzxWoTGlVtOs2LhUL6KS5PjHakXZaQkG3w4Xc2Gp85JuTcyfP6d9yzhW9wYEQ3L fJ2oYhw9q6pli2bdWOd32sjWtnc0nZxwkIYGDISSuKeOSFXdTxBkGHXr2Cu1pFBZJy74 axKVk5a0yE8LqxVejVafDkVu7rNi4+vfaNnXpREjPMXBVjHih7BDT4ZTUZJaJJnhNZfu JkA1N0TbWbQxpnZzf+MkqTvvnxyZHv+8ijPRKk6vyjX40EFww/Ql4JjFBnpZbrcF5AGy xdQcZEw8JmhGhu1BKMnBcvzSRHrMes6Dq+DUOqeZ0Lu1TH4TAqtMbdyEfiXpUQT/PAKu YL1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=KPDXYZ3d; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s205-20020a632cd6000000b0047903323b58si903358pgs.798.2022.12.07.09.18.21; Wed, 07 Dec 2022 09:18:32 -0800 (PST) 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=@google.com header.s=20210112 header.b=KPDXYZ3d; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229751AbiLGRAy (ORCPT + 77 others); Wed, 7 Dec 2022 12:00:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229905AbiLGRAm (ORCPT ); Wed, 7 Dec 2022 12:00:42 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CCF468C6C for ; Wed, 7 Dec 2022 09:00:41 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id m19so14146078wms.5 for ; Wed, 07 Dec 2022 09:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BXesToSWwwnCKV+g1AwRtRU3qfEBkcVEBg6QS+SjDxU=; b=KPDXYZ3duUZaAEdvvywMI9z5Q7Ah5nmdDmWoMbtDIcnjhdbFOj2001pt6dx2i9HBiI WIsFHDZF0EdUsKqoKTZmIXT9iahUvqWD65BZfbKTUXH73lJY+4MGRPSgJGb5ByJzVEK0 iXGZ4gWRH/OV56kGeneKC6DzoKTwdwRdhJKeTXZn3H0S2+XQONlr21k27tQ533O1+Yj7 MeSPWUXxsF4FnXNm9htMujyhue+JWos9/2r8PgnFHGUl/7zfCuEzfQh7oCcZgVZL5U3g 1IgHzPewSxwcR9wCH2Khb50u7jgqj+Z4huhBLnlL31H2Om9m5RYaIlL866IJDKXjq5wz lUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=BXesToSWwwnCKV+g1AwRtRU3qfEBkcVEBg6QS+SjDxU=; b=IcTEQzHr5rFDpxjOgZduZHPZAgYqmmME9I6NeOcqKi71XVM13PNG0Ocr7JlYfaaJyw 4XbJcOC1myRl8mR/S2X2ArTUXE/iBEhG9QC+XIUxlWzFwlHLMJ90RL9vmfjwlDYIu+XY dAuaSDAKuMW0/GH1c3NqoM0pjIDhZHFiKyvcCQ7yfwLD+jmWnCX0CI0pQ7FzHUuHX7rM kW5hDWR/V8BmQADhspRf/JBFwePLDQyRFeGnoaealSgd4jblkS9hUsrFQhp8lcTqkuSp 59DSab+7+UvREWfQLzX4ngMKF1wGCcmIsKUHVQz64ubjQHy3kk5htfp36URuiU+nd6wc BeQA== X-Gm-Message-State: ANoB5pk9bSCS3gCmi9aiuCbMiqloXTI9NWSXP7saiE3fnmil+kkGGc67 peR1nvmrGmwxYdEmNOAh+RWnpo03q5VpM/h9Di5mtA== X-Received: by 2002:a05:600c:3d8f:b0:3cf:6a4c:af8b with SMTP id bi15-20020a05600c3d8f00b003cf6a4caf8bmr55219737wmb.115.1670432439791; Wed, 07 Dec 2022 09:00:39 -0800 (PST) MIME-Version: 1.0 References: <20221207093958.09ae35c2@gandalf.local.home> In-Reply-To: From: Ian Rogers Date: Wed, 7 Dec 2022 09:00:27 -0800 Message-ID: Subject: Re: [ALMOST ready] Re: [PATCH 2/3] perf build: Use libtraceevent from the system To: Arnaldo Carvalho de Melo Cc: Steven Rostedt , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Nick Desaulniers , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, Stephane Eranian Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, Dec 7, 2022 at 8:02 AM Arnaldo Carvalho de Melo wrote: > > Em Wed, Dec 07, 2022 at 09:39:58AM -0500, Steven Rostedt escreveu: > > On Wed, 7 Dec 2022 11:31:38 -0300 > > Arnaldo Carvalho de Melo wrote: > > > > > No distro I tested so far has a package for libtracevent in is default > > > repositories: > > > > Not sure what you mean by "default repository". > > > > At least on Debian testing, I have libtraceevent-dev available. > > Right, I'm talking about non-bleeding edge, distros that are still > supported. I'm still checking, fedora is ok all the way back to 33, wrt > having libtraceevent available. > > - Arnaldo I think this is both similar to the python2 issue and different. With python we now have a build time dependency on having at least Python 3.6 if you want json events. With this change you need the system to have libtraceevent if you want to have various commands like perf sched, perf trace, etc. Losing entire commands with this change is more than happened with the Python 3.6 dependency. With the python issue, you can fix the build issue by installing Python 3.6 and with this issue you can fix it by installing libtraceevent-devel. In both cases you can install via a package manager, but given you are likely building the perf tool from source, you can also build both python and libtraceevent from source. Saying that an old distro is broken by this change, or the Python 3.6 change, I think is too strong and we're in danger of holding things back for a very small (possibly 0) set of people. They'd have to be upset about building from source on an old distro, then losing the less commonly used commands of perf sched, perf trace, etc. and be unwilling to build libtraceevent from source. Given they are building the perf tool from source I just can't imagine they'd be too upset about building libtraceevent from source. I think a problem with both changes is that the build time warning given isn't loud enough. Perhaps we can make it that at build time we $(error for these recommended dependencies, unless NO_JEVENTS=1 or NO_LIBTRACEEVENT=1 are added. Losing functionality and just having a small $(warning seems error prone and likely to cause functionality to be accidentally lost. Thanks, Ian