Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7680595rwb; Tue, 6 Dec 2022 08:35:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5mly9CHSoz+t5FEjEUvNuAHXABmyl4J/8rh7mi6xsIkdaDHPe/jiPt/LE4foU5i692XClb X-Received: by 2002:a17:906:a58:b0:7ad:b45c:dbca with SMTP id x24-20020a1709060a5800b007adb45cdbcamr63978014ejf.388.1670344508606; Tue, 06 Dec 2022 08:35:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670344508; cv=none; d=google.com; s=arc-20160816; b=PgMGZcxw1P+P7vrzlWTAT8xdNUeln4jDdu6U8MF+yf12bbLAhT6VlCumXo94J+KaDF tt97FFohS5KFhpO8sQGAdHt0X6h/L20MSg2Ai29yYHG1ulZWBsycMxlVvMmJsKsSYVDH A8AwBWUOp/Jwo8bMQEvjPd2ekwKXFtoHnezUN5FAIgu4oKcGrW0uZ/BAm9QhgZg5RElh 7zbTme8ISl8WVYXyMz2q5JVfDsgetRlr9LSR7+nPSKM4HmDF4IEZNCNeuBPLE7Q+l1Ze VNNGEyr+4rZiBhP5cyxJIbOforx485GnDemnZVM1UJboJrbWXKg+lE7BkPR++Qv9CnVA wbhA== 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=oHc/qKu7MQW0ka4ef2mPFRMed0jI2IbNhQYWtlIlulQ=; b=YuMIgw3OrbaMSW5hxZMSW+JdvuPZXu0IWxLd1wDsnMHMZkqgp6iMDLgNT+WSSV9fco O2gnlYXkNi32fTY5h6PnhHOZ2Z/uVX0ki/sIjL8SaDyB3+bbk1rKB6eoWgdMCJZJlAUL yRy4RxxDWfwhgTGOLkHfpzQhP1JMVNsXsl6fjhLyAkhf6GV9GnsguEpSI9g8U5icLFF6 cj7UCQ7rBmHGLG3P/VLfNJFBaGESL53xDZx35LyvxpBCbig5TcgEFkjrOw+7nSnU5sWt octeXwU11bdMiT8Z2f1JrQX/h4MAVE5v5p1mm5I6zOVpgdh/vujDgNGZ+sHNnPpCINRp h7Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jpTEBnQ4; 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 r16-20020a05640251d000b0046906b7a5c8si2545987edd.559.2022.12.06.08.34.50; Tue, 06 Dec 2022 08:35:08 -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=jpTEBnQ4; 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 S235114AbiLFQan (ORCPT + 77 others); Tue, 6 Dec 2022 11:30:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232324AbiLFQal (ORCPT ); Tue, 6 Dec 2022 11:30:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0B22BC99; Tue, 6 Dec 2022 08:30:39 -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 94E69B81AB4; Tue, 6 Dec 2022 16:30:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEF38C433D6; Tue, 6 Dec 2022 16:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670344237; bh=uSs6ZfsXTI/wj4FOJ5tx7pLbTvH5TLILgvDFOd+upCk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jpTEBnQ4ijo+hjdHrhyL5S4f3BbTcxVAHDyIGBS4hFyi57RZBNDTT65FzCS4ywwX+ 6/WF1iLkxyjCQZi4hvXM0mewXlUMLtlF8VFLHb5G1qSCq29ORVnifXEjtAmFK60Ocd TvcMQbVlDmMWEf9Ddj6XLjtSQh6SwE7QJHfssCDvfHDxWtZpgwMJ4kvnSUUMGYJ7R0 RL3dU19QCDbwoVZ8e4o3Kga1ApFXz5pbJFDNfYyH2lTdZLPWnLA/YVlgIhnC3osAZ7 wuasijiyF1xWX3J1TK29Qe/erQADZSYnzvauGbcRW8ZY/Vh240lMhCk9ghz0A7czbf kjfnblnZyFTqw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 91D9740404; Tue, 6 Dec 2022 13:30:33 -0300 (-03) Date: Tue, 6 Dec 2022 13:30:33 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: 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 Subject: Re: [PATCH 2/3] perf build: Use libtraceevent from the system Message-ID: References: <20221205225940.3079667-1-irogers@google.com> <20221205225940.3079667-3-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 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, Dec 06, 2022 at 01:23:45PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Dec 06, 2022 at 01:20:12PM -0300, Arnaldo Carvalho de Melo escreveu: > > > > util/scripting-engines/trace-event-perl.c:104:43: error: ‘struct tep_print_flag_sym’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] > > 104 | static void define_symbolic_values(struct tep_print_flag_sym *field, > > | ^~~~~~~~~~~~~~~~~~ > > util/scripting-engines/trace-event-perl.c: In function ‘define_symbolic_values’: > > This cured it, folding into your patch: > > diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c > index 5b602b6d46854133..0bacb49408f84adf 100644 > --- a/tools/perf/util/scripting-engines/trace-event-perl.c > +++ b/tools/perf/util/scripting-engines/trace-event-perl.c > @@ -27,6 +27,7 @@ > #include > #include > #include > +#include > > #include > /* perl needs the following define, right after including stdbool.h */ Building with NO_LIBTRACEEVENT=1 I get: CC /tmp/build/perf/util/cap.o util/data-convert-bt.c: In function ‘get_tracepoint_field_type’: util/data-convert-bt.c:194:36: error: invalid use of undefined type ‘struct tep_format_field’ 194 | unsigned long flags = field->flags; | ^~ util/data-convert-bt.c:196:21: error: ‘TEP_FIELD_IS_STRING’ undeclared (first use in this function) 196 | if (flags & TEP_FIELD_IS_STRING) | ^~~~~~~~~~~~~~~~~~~ util/data-convert-bt.c:196:21: note: each undeclared identifier is reported only once for each function it appears in util/data-convert-bt.c:199:23: error: ‘TEP_FIELD_IS_SIGNED’ undeclared (first use in this function) 199 | if (!(flags & TEP_FIELD_IS_SIGNED)) { | ^~~~~~~~~~~~~~~~~~~ util/data-convert-bt.c:201:29: error: ‘TEP_FIELD_IS_LONG’ undeclared (first use in this function) 201 | if (flags & TEP_FIELD_IS_LONG || flags & TEP_FIELD_IS_POINTER) | ^~~~~~~~~~~~~~~~~ working on it...