Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5900215rwb; Mon, 5 Dec 2022 05:42:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ocTHbD5Gh4tcnJpWquIy5VZX8HqVcmT+3kM+6Hcf+FbgQPRzJLCzXzXhHfp2T9uTyfUDC X-Received: by 2002:a05:6402:3203:b0:46c:fabe:8372 with SMTP id g3-20020a056402320300b0046cfabe8372mr486787eda.347.1670247752833; Mon, 05 Dec 2022 05:42:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670247752; cv=none; d=google.com; s=arc-20160816; b=WMYBaLUM4aAWFNFzyVA2lumEB9n449bjA8WykRyFt+VykVoDIv09WDQp+SxwbPdG0R gokEvEFzdeOfHuu6xsNKaqDodRXYPzzDBkP24jCvh+v6Bj/MbejwEegsk5HmKW37O+Xe Phv6NpmG05b5AokXbSYzPCsBt9+lwiVihXkVtGQ0265qTkDVcdTAcP9+m1rGkj9YQaPp S9r364baKttKZDD/gtZNVSzrKB2LGBbDZRcj8sp1YjTr1juLPPV7PhiHn5+wol46VeBW g76m5vzpPNCfQp5iAVC7ge2Bm55r57JgRQRk9zc0dQmynh8hNmd0SsC+/Ds+T6We8Cr9 EMhg== 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=I9MqbeOVfH/LJHX+ROWm9rtnOdspxZ8UeDZjke+maLc=; b=B3G2r5QT6OvJwtkSfhk24ys+h6+ApTRv0XyVYf9dp/FPu1/s27L1iTTvmB3MPFZZmh qVf4B0VKgBWCsJg6wYkP9Y7TSF01VluTH1DQi+Y7Mmoaae9VlGKJWX2k6jN8UmyJE7b1 CMt844owytoGuV/KVyerFOEYCANaPsDb2Vml85jTyJnNpDgty9FqPutnIbPB7jkNezxk Mz3VZgJzwPs9GtpfbQDiRIyUTtxsQblWPmU9FeABfml1KoB5weng/8AUsv8vMLjGH0CY XDsQHz9xHhb9BTbWjajKcCC8tn4GLNH6ckxSmHJjQrBtsQ/aGvrIas99KcZ0sCJpYlVP PgDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cw06WEfQ; 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 s19-20020a170906455300b0073d71124609si4287848ejq.182.2022.12.05.05.42.12; Mon, 05 Dec 2022 05:42: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=@kernel.org header.s=k20201202 header.b=cw06WEfQ; 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 S232063AbiLENCI (ORCPT + 81 others); Mon, 5 Dec 2022 08:02:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232053AbiLENCG (ORCPT ); Mon, 5 Dec 2022 08:02:06 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 840711BE92; Mon, 5 Dec 2022 05:02:05 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 15E6FB810AB; Mon, 5 Dec 2022 13:02:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4779BC433D6; Mon, 5 Dec 2022 13:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670245322; bh=A8omDT0lTK1fd4FbjfQt/0KI3ttwqrdBD8YfaieLVsQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cw06WEfQ91WM7IdWR1hhCSmAOm5dKBzJt/Ya2a1ZDDL16N1sPTqHMJu+weyUf0i+B 5es8LCHDNoTN9vUIeLBHBZZIyLYmrGXuEKKwtvspSQ0S/XQocfsm4WxKPpF/hlUIEF 0M/XRmwq1/9Ezl6qvKGpiOY+ivdj11WNkwjCcRzKAxadXEHp0oxhoSiXnjDJYPB1Cu yc1236ino6V1q/hcEfUFlEtNJ9RQ47ycHnHdMJOodqQTVnwdeyF8pV0OZRV+LvaF73 o747OOWYC2PMs2kvzJMVzPBu55fs322CewIoKk0VDvtPoVgyO7b2oVPfWGNkjI1IrS YQhApvQ/BC2HA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 8E4AC40404; Mon, 5 Dec 2022 10:01:59 -0300 (-03) Date: Mon, 5 Dec 2022 10:01:59 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Masami Hiramatsu , Steven Rostedt , Adrian Hunter , Leo Yan , Kan Liang , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH v2 0/4] perf use system libtraceevent Message-ID: References: <20221130062935.2219247-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221130062935.2219247-1-irogers@google.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,WEIRD_PORT 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 Em Tue, Nov 29, 2022 at 10:29:31PM -0800, Ian Rogers escreveu: > Detect whether libtraceevent is installed and if so build against > it. If not installed, warn and build a subset of perf that works > without libtraceevent. With nothing using the now out-of-date > tools/lib/traceevent remove it. > > Discussed on LKML here: > https://lore.kernel.org/lkml/CAP-5=fWxAjEia-Qbm0RVzKOxyiod8rUOBieqaGK=DtQboDe3Qw@mail.gmail.com/ > > Builds upon: > https://lore.kernel.org/lkml/20221116224631.207631-1-irogers@google.com/ So the above isn't applying: ⬢[acme@toolbox perf]$ b4 am -P1-4 -ctsl --cc-trailers 20221116224631.207631-1-irogers@google.com Grabbing thread from lore.kernel.org/all/20221116224631.207631-1-irogers%40google.com/t.mbox.gz Checking for newer revisions on https://lore.kernel.org/all/ Analyzing 5 messages in the thread Checking attestation on all messages, may take a moment... --- ✓ [PATCH] perf build: Fix LIBTRACEEVENT_DYNAMIC --- ✓ Signed: DKIM/google.com --- Total patches: 1 (cherrypicked: 1-4) --- Link: https://lore.kernel.org/r/20221116224631.207631-1-irogers@google.com Base: not specified git am ./20221116_irogers_perf_build_fix_libtraceevent_dynamic.mbx ⬢[acme@toolbox perf]$ git am ./20221116_irogers_perf_build_fix_libtraceevent_dynamic.mbx Applying: perf build: Fix LIBTRACEEVENT_DYNAMIC error: patch failed: tools/perf/Makefile.perf:242 error: tools/perf/Makefile.perf: patch does not apply error: patch failed: tools/perf/util/setup.py:77 error: tools/perf/util/setup.py: patch does not apply Patch failed at 0001 perf build: Fix LIBTRACEEVENT_DYNAMIC hint: Use 'git am --show-current-patch=diff' to see the failed patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". ⬢[acme@toolbox perf]$ git am --abort ⬢[acme@toolbox perf]$ > Based on discussion of the v1 patch set: > https://lore.kernel.org/lkml/20221117224952.358639-1-irogers@google.com/ > v2 conditionally compiles a subset of perf that doesn't require > libtraceevent to avoid having to have libtraceevent installed on a > system. > > The changes build upon the fix in: > https://lore.kernel.org/lkml/20221129192924.1580537-1-irogers@google.com/ > > Ian Rogers (4): > perf util: Make header guard consistent with tool > perf util: Add host_is_bigendian to util.h > perf build: Use libtraceevent from the system > tools lib traceevent: Remove libtraceevent > > tools/lib/traceevent/.gitignore | 4 - > tools/lib/traceevent/Build | 8 - > tools/lib/traceevent/Documentation/Makefile | 207 - > .../traceevent/Documentation/asciidoc.conf | 120 - > .../Documentation/libtraceevent-commands.txt | 153 - > .../Documentation/libtraceevent-cpus.txt | 77 - > .../libtraceevent-endian_read.txt | 78 - > .../libtraceevent-event_find.txt | 103 - > .../Documentation/libtraceevent-event_get.txt | 99 - > .../libtraceevent-event_list.txt | 122 - > .../libtraceevent-event_print.txt | 130 - > .../libtraceevent-field_find.txt | 118 - > .../libtraceevent-field_get_val.txt | 122 - > .../libtraceevent-field_print.txt | 126 - > .../libtraceevent-field_read.txt | 81 - > .../Documentation/libtraceevent-fields.txt | 105 - > .../libtraceevent-file_endian.txt | 91 - > .../Documentation/libtraceevent-filter.txt | 209 - > .../Documentation/libtraceevent-func_apis.txt | 183 - > .../Documentation/libtraceevent-func_find.txt | 88 - > .../Documentation/libtraceevent-handle.txt | 101 - > .../libtraceevent-header_page.txt | 102 - > .../libtraceevent-host_endian.txt | 104 - > .../Documentation/libtraceevent-long_size.txt | 78 - > .../Documentation/libtraceevent-page_size.txt | 82 - > .../libtraceevent-parse_event.txt | 90 - > .../libtraceevent-parse_head.txt | 82 - > .../Documentation/libtraceevent-plugins.txt | 122 - > .../libtraceevent-record_parse.txt | 137 - > .../libtraceevent-reg_event_handler.txt | 156 - > .../libtraceevent-reg_print_func.txt | 155 - > .../Documentation/libtraceevent-set_flag.txt | 104 - > .../Documentation/libtraceevent-strerror.txt | 85 - > .../Documentation/libtraceevent-tseq.txt | 158 - > .../Documentation/libtraceevent.txt | 192 - > .../traceevent/Documentation/manpage-1.72.xsl | 14 - > .../traceevent/Documentation/manpage-base.xsl | 35 - > .../Documentation/manpage-bold-literal.xsl | 17 - > .../Documentation/manpage-normal.xsl | 13 - > .../Documentation/manpage-suppress-sp.xsl | 21 - > tools/lib/traceevent/Makefile | 300 - > tools/lib/traceevent/event-parse-api.c | 333 - > tools/lib/traceevent/event-parse-local.h | 123 - > tools/lib/traceevent/event-parse.c | 7624 ----------------- > tools/lib/traceevent/event-parse.h | 750 -- > tools/lib/traceevent/event-plugin.c | 711 -- > tools/lib/traceevent/event-utils.h | 67 - > tools/lib/traceevent/kbuffer-parse.c | 809 -- > tools/lib/traceevent/kbuffer.h | 68 - > .../lib/traceevent/libtraceevent.pc.template | 10 - > tools/lib/traceevent/parse-filter.c | 2281 ----- > tools/lib/traceevent/parse-utils.c | 71 - > tools/lib/traceevent/plugins/Build | 12 - > tools/lib/traceevent/plugins/Makefile | 225 - > .../lib/traceevent/plugins/plugin_cfg80211.c | 43 - > .../lib/traceevent/plugins/plugin_function.c | 282 - > tools/lib/traceevent/plugins/plugin_futex.c | 123 - > tools/lib/traceevent/plugins/plugin_hrtimer.c | 74 - > tools/lib/traceevent/plugins/plugin_jbd2.c | 61 - > tools/lib/traceevent/plugins/plugin_kmem.c | 80 - > tools/lib/traceevent/plugins/plugin_kvm.c | 527 -- > .../lib/traceevent/plugins/plugin_mac80211.c | 88 - > .../traceevent/plugins/plugin_sched_switch.c | 146 - > tools/lib/traceevent/plugins/plugin_scsi.c | 434 - > tools/lib/traceevent/plugins/plugin_tlb.c | 66 - > tools/lib/traceevent/plugins/plugin_xen.c | 138 - > tools/lib/traceevent/tep_strerror.c | 53 - > tools/lib/traceevent/trace-seq.c | 249 - > tools/lib/traceevent/trace-seq.h | 55 - > tools/perf/Build | 11 +- > tools/perf/Makefile.config | 37 +- > tools/perf/Makefile.perf | 99 +- > tools/perf/arch/x86/util/Build | 2 +- > tools/perf/arch/x86/util/intel-pt.c | 4 + > tools/perf/builtin-annotate.c | 2 + > tools/perf/builtin-inject.c | 8 + > tools/perf/builtin-kmem.c | 1 + > tools/perf/builtin-kvm.c | 12 +- > tools/perf/builtin-kwork.c | 1 + > tools/perf/builtin-record.c | 2 + > tools/perf/builtin-report.c | 9 +- > tools/perf/builtin-script.c | 19 +- > tools/perf/builtin-timechart.c | 1 + > tools/perf/builtin-trace.c | 5 +- > tools/perf/builtin-version.c | 1 + > tools/perf/perf.c | 24 +- > .../perf/scripts/python/Perf-Trace-Util/Build | 2 +- > tools/perf/tests/Build | 12 +- > tools/perf/tests/builtin-test.c | 6 + > tools/perf/tests/code-reading.c | 4 +- > tools/perf/tests/parse-events.c | 20 + > tools/perf/tests/sample-parsing.c | 4 +- > tools/perf/util/Build | 10 +- > tools/perf/util/data-convert-bt.c | 5 +- > tools/perf/util/data-convert-json.c | 9 +- > tools/perf/util/evlist.c | 6 +- > tools/perf/util/evlist.h | 4 + > tools/perf/util/evsel.c | 16 +- > tools/perf/util/evsel.h | 12 +- > tools/perf/util/evsel_fprintf.c | 7 +- > tools/perf/util/header.c | 19 + > tools/perf/util/header.h | 2 + > tools/perf/util/intel-pt.c | 7 +- > tools/perf/util/parse-events.c | 15 + > tools/perf/util/parse-events.h | 1 - > tools/perf/util/python.c | 4 + > tools/perf/util/scripting-engines/Build | 6 +- > .../scripting-engines/trace-event-python.c | 1 + > tools/perf/util/session.c | 2 + > tools/perf/util/session.h | 2 + > tools/perf/util/sort.c | 60 +- > tools/perf/util/synthetic-events.c | 6 + > tools/perf/util/trace-event-info.c | 14 +- > tools/perf/util/trace-event-parse.c | 2 + > tools/perf/util/trace-event-read.c | 4 +- > tools/perf/util/trace-event-scripting.c | 1 + > tools/perf/util/trace-event.c | 1 - > tools/perf/util/trace-event.h | 13 +- > tools/perf/util/util.h | 25 +- > 119 files changed, 344 insertions(+), 20071 deletions(-) > delete mode 100644 tools/lib/traceevent/.gitignore > delete mode 100644 tools/lib/traceevent/Build > delete mode 100644 tools/lib/traceevent/Documentation/Makefile > delete mode 100644 tools/lib/traceevent/Documentation/asciidoc.conf > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-commands.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-cpus.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-endian_read.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-event_find.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-event_get.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-event_list.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-event_print.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-field_find.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-field_get_val.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-field_print.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-field_read.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-fields.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-file_endian.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-filter.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-func_apis.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-func_find.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-handle.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-header_page.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-host_endian.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-long_size.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-page_size.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-parse_event.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-parse_head.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-plugins.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-record_parse.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-reg_event_handler.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-reg_print_func.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-set_flag.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-strerror.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent-tseq.txt > delete mode 100644 tools/lib/traceevent/Documentation/libtraceevent.txt > delete mode 100644 tools/lib/traceevent/Documentation/manpage-1.72.xsl > delete mode 100644 tools/lib/traceevent/Documentation/manpage-base.xsl > delete mode 100644 tools/lib/traceevent/Documentation/manpage-bold-literal.xsl > delete mode 100644 tools/lib/traceevent/Documentation/manpage-normal.xsl > delete mode 100644 tools/lib/traceevent/Documentation/manpage-suppress-sp.xsl > delete mode 100644 tools/lib/traceevent/Makefile > delete mode 100644 tools/lib/traceevent/event-parse-api.c > delete mode 100644 tools/lib/traceevent/event-parse-local.h > delete mode 100644 tools/lib/traceevent/event-parse.c > delete mode 100644 tools/lib/traceevent/event-parse.h > delete mode 100644 tools/lib/traceevent/event-plugin.c > delete mode 100644 tools/lib/traceevent/event-utils.h > delete mode 100644 tools/lib/traceevent/kbuffer-parse.c > delete mode 100644 tools/lib/traceevent/kbuffer.h > delete mode 100644 tools/lib/traceevent/libtraceevent.pc.template > delete mode 100644 tools/lib/traceevent/parse-filter.c > delete mode 100644 tools/lib/traceevent/parse-utils.c > delete mode 100644 tools/lib/traceevent/plugins/Build > delete mode 100644 tools/lib/traceevent/plugins/Makefile > delete mode 100644 tools/lib/traceevent/plugins/plugin_cfg80211.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_function.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_futex.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_hrtimer.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_jbd2.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_kmem.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_kvm.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_mac80211.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_sched_switch.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_scsi.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_tlb.c > delete mode 100644 tools/lib/traceevent/plugins/plugin_xen.c > delete mode 100644 tools/lib/traceevent/tep_strerror.c > delete mode 100644 tools/lib/traceevent/trace-seq.c > delete mode 100644 tools/lib/traceevent/trace-seq.h > > -- > 2.38.1.584.g0f3c55d4c2-goog -- - Arnaldo