Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7720086rwb; Tue, 6 Dec 2022 09:03:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6F9pq3Q0dQNIb9/k3is/hg3ro0Fn973fHCDa6m1gfbPvOXuymaUeRy4GFK03FbOC+f1Q6w X-Received: by 2002:a17:906:3a41:b0:78d:9caa:31b7 with SMTP id a1-20020a1709063a4100b0078d9caa31b7mr61862153ejf.263.1670346214209; Tue, 06 Dec 2022 09:03:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670346214; cv=none; d=google.com; s=arc-20160816; b=pnrv3Bv7/9FkHOYQINbEEO0ziDMP1HBRo3S7KoNfeb7soTWBbWHWiUOzlpVK608jt8 Ffqln3GQglGJZAUD5uMwk+RUOwZPJsYPgw1Uc8x6S3/fioeUnBNouLg2hQP6zNzrMQwg q4oJXwSombj7rRhtzl5CKpCKzIloLArGBkEkBwIsG2PzA/7KLHR0qoHj+5RK0Bp6YO45 8H8XH5/XaLVFLnUR4GkPknUCeWhzBBWCNrCjmqQxDgC/7vjfqPgAzcxWm9Sz64ZbSxIV nHlnt6YaVZcj8xmrenrHiuuv8UN91yQgTFN1+CeJPmL1KkkYVXcWemV/gGKaWzydwjPI 3W7Q== 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=hvH6S++8WWpWv/6l92R8TBeNDtZkX2opPm0mO+KBux0=; b=eK/AyT6V8vuwCnnew/8QUfyfPUVjxVQQHiJ9pPVORyDfUpd5nxKMuEA0j7j16IAGL1 Tb7CAaBVzV2kAsQ3rTmYD/UZkPSgwVK8thDqGizyLbVopsSHu5IaWeQxkkjp+eTZ2jCm DLivXY7tlK24lC7hbFrmJn4MQanQzVEznmWNK91GG4s1kUiRSv8GbtngU5nx3tuWZg2g 1Gb95Gm5843hGv3Pb0nbJYQ9HC3E/HXgA2Jqf3A2Eebf6b+H0LyQH7KW9ZZVudGoZ+Du qLWer9Ygp/w+8bJM1lz5OBdZZg79keQfuV+uvak/4r0oyo4RnRIiROJQ+0+FNTkUudTo 6/bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xp8z5kv0; 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 k9-20020a1709061c0900b007adf38290f1si11100092ejg.642.2022.12.06.09.03.14; Tue, 06 Dec 2022 09:03:34 -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=Xp8z5kv0; 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 S233745AbiLFQXw (ORCPT + 77 others); Tue, 6 Dec 2022 11:23:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229780AbiLFQXu (ORCPT ); Tue, 6 Dec 2022 11:23:50 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 265AECE22; Tue, 6 Dec 2022 08:23:50 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B5BCE617D4; Tue, 6 Dec 2022 16:23:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C72F2C433D6; Tue, 6 Dec 2022 16:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670343829; bh=ad2lDY343TkFcWm5TqcqRjN3pJz83g/1a8BC4bGnAAg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xp8z5kv0ju5bSohNsyOhDhwmxRGwI82eDsPE2xrTJSB7nziBMdGe3aT3Mu1uAFbEZ ZyBeZNfB5IbtsRK2YMgxmJLg9p44Y23TPp9cFkGgX1CtGXBf9VmoJZsp/uknivFtFV u/eeE5bjGXSNUtzp0RvyCZbudYVtAl6j0i4rv2oeEYGKOxA4EvDadZhvVvi4CEyH88 LD3w0dv2FCwtNaPZzG+UiDFqQw7UETEv87W+Rdj7k/6ECNs0/RJqJhlVL3CXhTY/Ig h+I9l+Xh9xRvBJV3VgCayC+1GyglQSm/1AdGjvEX76uMHq2heXdLMXXvPMZivCIwa+ +OZlP3Sru+tiQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 2F4F240404; Tue, 6 Dec 2022 13:23:45 -0300 (-03) Date: Tue, 6 Dec 2022 13:23:45 -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:20:12PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Dec 06, 2022 at 01:15:04PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Mon, Dec 05, 2022 at 02:59:39PM -0800, Ian Rogers escreveu: > > > 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". > > > > Had just this .rej and I fixed it up manually, testing now: > > Investigating: > > [acme@quaco perf]$ rpm -q libtraceevent-devel > libtraceevent-devel-1.5.3-2.fc36.x86_64 > [acme@quaco perf]$ > [acme@quaco perf]$ grep -i traceevent /tmp/build/perf/FEATURE-DUMP > feature-libtraceevent=1 > [acme@quaco perf]$ > > [acme@quaco perf]$ alias m > alias m='rm -rf ~/libexec/perf-core/ ; perf stat -e cycles:u,instructions:u make -k BUILD_BPF_SKEL=1 O=/tmp/build/perf -C tools/perf install-bin && perf test python' > [acme@quaco perf]$ > > [acme@quaco perf]$ rpm -ql libtraceevent-devel | grep \.h$ | xargs grep tep_print_flag_sym > /usr/include/traceevent/event-parse.h:struct tep_print_flag_sym { > /usr/include/traceevent/event-parse.h: struct tep_print_flag_sym *next; > /usr/include/traceevent/event-parse.h: struct tep_print_flag_sym *flags; > /usr/include/traceevent/event-parse.h: struct tep_print_flag_sym *symbols; > [acme@quaco perf]$ > > 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 */