Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp983001rwb; Wed, 7 Dec 2022 07:19:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf6KFN2UbhWfVjCpP69Sm3zfbuqt4+xFhaOLB29EQNyXuBa3UOm3I6zgtrAp//y6A7gAW/Ei X-Received: by 2002:a63:4c01:0:b0:478:b7ab:2f70 with SMTP id z1-20020a634c01000000b00478b7ab2f70mr13696574pga.13.1670426357394; Wed, 07 Dec 2022 07:19:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670426357; cv=none; d=google.com; s=arc-20160816; b=JbvHtOvulVoX+GWIQv/pQJJRyIXOyQSy0EwOG6qFCexxgJX6IQ0Hwx18c62Ihd5qk1 wTPfNO2QfiNZeJNmcsLtDyW4LlEyIWeOFPVsm90PvE2r85OsC4a5A+5Mr1qCLo6oEwof 08x4joJvss1ycWyDEnoU8kpO7gUrNdQn+PHRx6cnKp0ukA4NAxfqMVJgrjZlNoZIqTs1 1xAlYUDSpynI8XSeTGYrVVxtOAOGt2o+47aVhZRXUofhI7Ii4RWkKhdeT10PckRdE2Cl kyzPP6XKmOR/g9LRqb3coGU4BmgSOu2sPwnMiZIfxtMTk8koZDuW3wmQXqMHdY4/1n47 iB/g== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q5A1byhbv945QKnNnreMyn5CIcQSCcDgUlyeJ0E+vYc=; b=xaZ5dulwyJBKJvvoBWSRFp5rP0IOkaIp3ZSzjNJ28P1itACna5qdWDS1KZE/ZzNxKf 1Th3ez/4020HOLIC5qCsOCY/502SVyoeYxSGGhzcuzz5327EFKYwA5dtlE9YbObMCAg3 vdi/l03yK+DiAQtQncsw8WIiIfj7ni3v3M6RjHm5Bj/+o0YYeBQRbQ1VFh38V/+OUq5c AvSAhRjtzbOtSLyHUkQ5C+fIK9nrwUO4xTNOXBtqDE0WAvdTH1QE1bVZQ7E4N/KYGPaE 0JkSnj5v4cbVlTd5jT5qUXM4HS4Xxrma4XTjv8K7vpuY2N42K4Pzb7xGZlhstSvYHWBo C/Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=scD0kHl4; 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 e13-20020a056a001a8d00b00572698b413esi21995762pfv.195.2022.12.07.07.19.06; Wed, 07 Dec 2022 07:19:17 -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=scD0kHl4; 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 S229798AbiLGOho (ORCPT + 76 others); Wed, 7 Dec 2022 09:37:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbiLGOhk (ORCPT ); Wed, 7 Dec 2022 09:37:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47F43E10; Wed, 7 Dec 2022 06:37:40 -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 D903161A22; Wed, 7 Dec 2022 14:37:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B35EC433B5; Wed, 7 Dec 2022 14:37:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670423859; bh=RAlHgKqZZZm+DQ/f0MYPxHfZBwykr3Y8qGJYKBulNe0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=scD0kHl4xIu2Mcvt+TzLJwIu92z2/MqOzwITkuEcX8llvbN9MnUT52rHxjyl6GeYt /CMX/KemMCGEo0nG5nHa1ot80nAO6Ll/i7UZz9RpeEwuvCU7zJJ38Qah7zKAV12Rgw eh6H8qsZYkgW9X7i5Ch9vrdu28s7znO4z1eybD3sImrclphu0UsE/QCL1EI1Las0Ge PW6DMOcwPP61/Stgtz7xMMlOevquIMYcGphlYw2AcgysNy+qANbitcoEax1CusUoFU eu2KVkEO6tSrWYp1dc0oZSYULnJrOeLNnb6PGg5jdADsbSSv9hc60N7FUS2e+A1uYT 97LT0GwbWfMNg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 67BE140404; Wed, 7 Dec 2022 11:37:36 -0300 (-03) Date: Wed, 7 Dec 2022 11:37:36 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers , Steven Rostedt 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: [ALMOST ready] Re: [PATCH 2/3] perf build: Use libtraceevent from the system Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Wed, Dec 07, 2022 at 11:21:18AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Dec 06, 2022 at 02:22:15PM -0800, Ian Rogers escreveu: > > On Tue, Dec 6, 2022 at 9:31 AM Arnaldo Carvalho de Melo wrote: > > > Em Tue, Dec 06, 2022 at 02:13:48PM -0300, Arnaldo Carvalho de Melo escreveu: > > > I'm missing some detail, this isn't working, util/trace-event.c is still > > > being built and linked. > > > > The python binding should be usable without tracepoints, in fact its > > > first usage was just to have access to the perf metaevents, see > > > tools/perf/python/twatch.py. > > > You're right. I'd assumed that if you were disabling libtraceevent > > then you'd also disable python. To fix the issue above you can do: > > > --- a/tools/perf/util/python-ext-sources > > +++ b/tools/perf/util/python-ext-sources > > @@ -30,7 +30,6 @@ util/rblist.c > > util/counts.c > > util/print_binary.c > > util/strlist.c > > -util/trace-event.c > > ../lib/rbtree.c > > util/string.c > > util/symbol_fprintf.c > > > but this needs making conditional (possibly in setup.py) on whether > > libtraceevent is present or not. > > Ok, I fixed this by removing the util/trace-event.c file at setup.py > time, and removing it from the list of dependencies for python.so build, > etc. > > With what I have at tmp.perf/core I'm being able to build with > combinations of: > > - Having or not libtraceevent-devel installed > > - Using NO_LIBTRACEEVENT=1 > > - The default build cross building reveals some more: 22 11.70 debian:experimental-x-arm64 : FAIL gcc version 12.2.0 (Debian 12.2.0-9) arch/arm64/util/kvm-stat.c: In function 'event_get_key': arch/arm64/util/kvm-stat.c:30:20: error: implicit declaration of function 'evsel__intval'; did you mean 'evsel__env'? [-Werror=implicit-function-declaration] 30 | key->key = evsel__intval(evsel, sample, kvm_exit_reason); | ^~~~~~~~~~~~~ | evsel__env cc1: all warnings being treated as errors make[5]: *** [/git/perf-6.1.0-rc6/tools/build/Makefile.build:139: util] Error 2 make[4]: *** [/git/perf-6.1.0-rc6/tools/build/Makefile.build:139: arm64] Error 2 make[3]: *** [/git/perf-6.1.0-rc6/tools/build/Makefile.build:139: arch] Error 2 I'll conditionalise tha one as well... - Arnaldo