Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2822902rwb; Wed, 30 Nov 2022 11:19:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf4AhNmxtMSlY8/53lY+A1w2CNC63AJ1AxeVgyzNlZ6mr9idEoMwIj/sOl/vTIc+ViLr3MYh X-Received: by 2002:a17:903:1ce:b0:186:a2ef:7a69 with SMTP id e14-20020a17090301ce00b00186a2ef7a69mr43631028plh.77.1669835960959; Wed, 30 Nov 2022 11:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669835960; cv=none; d=google.com; s=arc-20160816; b=iXQnxfduVxTN9C2gQRfRVFcc/WeN8x9Tu59nuWx+2vkPj8r+uMnr7ClFT5bw7bOwMg o3+2GwqsHHaRMPcPS423WU3cm1yO3pDI+EaVRwx8hhc54uxbg+d20cSF77afkVKimYSo AmoTuKCNGvm03RATvDQ4ukjYqMMmGVt/oMjgeozxvhsfGpVjGq/bNMPgn3N9DUnOIOVb MLr2dUBlurn+icok2r7vM3SIE2xO1AN72zt9hhFQY4Uubnnb1ObQt9tAkWtjx1eBzW/m gcc+lLtwyZk6KgBXOoeIIVjrYB/Dn5VmnDMNDuebYkCuyfJfM9QqJifwlVXzmpqgBAVP Jr7Q== 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; bh=PfMWcPb5oJ92r+I85xnNHerwsoLysWjlkP0+eY0Z8Gk=; b=D/uG8wXEuDBFlzfyKVVak8gvnammHF7uR7pk2At6BMm3JsdcRHxuDZdVEbgtuo3wgf 9YCeCQJ+0gz6PyEPkMP1ZnPS4uEjH/rFcJvyR6OxN5Rrao45jTvA3CT9/KbrvEnRZLuO lkv77ZYsNvpYOXlAtB8RvI/2ZiwpWzmMLIZd/FJ/FxXs3SEgjkmzXEhXNyvATIyMzGEZ zCCtI2MKR2umg18nS9+wZwrfpFWbQU51+QpWTgfQLPUSkFLV1ZIrIq75wKrTezbo83JW BhG4DlrNCn6bt1TzMKatfUVRGvCWF326XdSJ1S8EulHQWf8twX5P/LYANE3CtPWbB1Wx wtuA== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f23-20020a63e317000000b0047697505449si1945732pgh.365.2022.11.30.11.19.10; Wed, 30 Nov 2022 11:19:20 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbiK3TF4 (ORCPT + 85 others); Wed, 30 Nov 2022 14:05:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiK3TFm (ORCPT ); Wed, 30 Nov 2022 14:05:42 -0500 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8E5D5444A; Wed, 30 Nov 2022 11:05:40 -0800 (PST) Received: by mail-wm1-f44.google.com with SMTP id bg10so982101wmb.1; Wed, 30 Nov 2022 11:05:40 -0800 (PST) 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=PfMWcPb5oJ92r+I85xnNHerwsoLysWjlkP0+eY0Z8Gk=; b=i8FrLXlC4yGrYGa7RktOSA0SGoDIh/IgFNMXzzhw4XNf0XzpLy9QMkw9I8qGu3tMDX unbI5GqU9K+eMMMIh7VwFp5qzVkBLkrLmM9iUnb8Jxgzs0d1PoK7+EcxgNtem+qoOCp8 br3eAOSZwqpzLh8/Lc5EClCmqtrR4ll8uF1HBfJ37pxPxZXP7gGOY0Q5JuOIUFgD/fe/ cTJ9mJEKKeaw+kmWw+pJCxEgvPFejxcdjpG/PU5WVVuYfhXwdQsuPP7f7BCtBs9v/4wQ 4ZxBkxrtaow+8jO5+L+zbgnxkf1PW3WQhWNHnvYn6j27PfaMUe4VvTqe591JB098pOnN DhFQ== X-Gm-Message-State: ANoB5pkXEbIYzXQm3p+Gm5Y5YTjjVdt2nNsdhrqMJy3uj80otyazVSf9 MyC2Ox275O7PnQ1VU/upNkKIXMe//tt9j/u++yU= X-Received: by 2002:a05:600c:6885:b0:3cf:a80d:59cd with SMTP id fn5-20020a05600c688500b003cfa80d59cdmr39524591wmb.5.1669835139245; Wed, 30 Nov 2022 11:05:39 -0800 (PST) MIME-Version: 1.0 References: <20221130062935.2219247-1-irogers@google.com> <20221130062935.2219247-4-irogers@google.com> In-Reply-To: <20221130062935.2219247-4-irogers@google.com> From: Namhyung Kim Date: Wed, 30 Nov 2022 11:05:27 -0800 Message-ID: Subject: Re: [PATCH v2 3/4] perf build: Use libtraceevent from the system To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Masami Hiramatsu , Steven Rostedt , Adrian Hunter , Leo Yan , Kan Liang , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Stephane Eranian Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,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 On Tue, Nov 29, 2022 at 10:30 PM Ian Rogers wrote: > > Remove the LIBTRACEEVENT_DYNAMIC and LIBTRACEFS_DYNAMIC. If > libtraceevent isn't installed or NO_LIBTRACEEVENT=1 is passed to the > build, don't compile in libtraceevent and libtracefs support. This > also disables CONFIG_TRACE that controls "perf > trace". CONFIG_TRACEEVENT is used to control enablement in > Build/Makefiles, HAVE_LIBTRACEEVENT is used in C code. Without > HAVE_LIBTRACEEVENT tracepoints are disabled and as such the commands > kmem, kwork, lock, sched and timechart are removed. The majority of > commands continue to work including "perf test". Maybe we can have a different approach. I guess the trace data access is isolated then we can make dummy interfaces when there's no libtraceevent. This way we don't need to touch every command and let it fail when it's asked. The motivation is that we should be able to run the sub-commands as much as possible. In fact, we could run 'record' part only on the target machine and pass the data to the host for analysis with a full-fledged perf. Also some commands like 'perf lock contention' can run with or without libtraceevent (using BPF only). Thanks, Namhyung