Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7734888rwb; Tue, 6 Dec 2022 09:11:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf4yYYQj4s5p2cqOh5zmmp7CLgDnCgRfmEmLgcPBdWkpJWS9nP8YDj6XoZS0q+kBNcQEa+w7 X-Received: by 2002:a17:906:824e:b0:7c0:ec3f:e55d with SMTP id f14-20020a170906824e00b007c0ec3fe55dmr9834447ejx.508.1670346704115; Tue, 06 Dec 2022 09:11:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670346704; cv=none; d=google.com; s=arc-20160816; b=noChDb5LtZUC2hy8Vf7uKspJpv8fGtVNOwLMAci+qIUSxRoWqHontc+Z9JvTWw/c7Q N1EHUyRajg/SLbM63+6nzsKMRv6Ff9/EnLIMniWde8XGWuEj7DEfCuBoKKvhPuCVFMTt I6F/2D1ALthfsxrt1pGbmN9USiSjFrQH94CalTYdPvMV7PH3Drgiae8hMe3Nm5P/fUh5 oNdhJyGy20i0S1vGWlBkdzYtFV1rKnh/uubtissISXyawHv9Ou4Ai5gCj3Gh82SGn9qQ 2rUnSNgdGyajGg9GT3fVBY5upe8Y7nMy3pj9a4gGJKcBTbEFnCqNwwK6+1ESuSwNvmpF G89w== 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=2Br1FwlnyvC8K4LPpndmyJ2buzfeTRxFCiH+zZ983WM=; b=HL2ST/IPTSK5rI12xcfGcwndbxh7KAUatPrihoHTpmjGtzF14nNqH5tDrLqv9nDkXD fZgwYwBi25J7kjDMrI4tca6VivM+lM/nJ/IMLGgR64hQvm7y6FvSd7J1czB1Vcdwek+P 4jQCII1f7pW6/SvrjgvbhUxJFYJn8YXN3wXz9mJTSGoZLUipSUWUHbJBwx39Vnh2kZ4W /9KFbtFcE2F/Vjd0WqC1xQoxLxwJM7LZezigmQe4V3txbiLDZjb3OykIayewnOXPdZAh revOawyF/Uq3kTbQUgZ7uuz1qs3s0rF8m7aGdYVx4qiXYhcWYjZYO/r7l1ZH/nY5aIDr xABw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QAj3KbZ6; 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 hz3-20020a1709072ce300b0078fcfc5d24esi8972699ejc.618.2022.12.06.09.11.25; Tue, 06 Dec 2022 09:11:44 -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=QAj3KbZ6; 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 S235035AbiLFRIR (ORCPT + 77 others); Tue, 6 Dec 2022 12:08:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234957AbiLFRHn (ORCPT ); Tue, 6 Dec 2022 12:07:43 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6329F7D; Tue, 6 Dec 2022 09:07:38 -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 B82AC617E6; Tue, 6 Dec 2022 17:07:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA58BC433C1; Tue, 6 Dec 2022 17:07:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670346457; bh=lEuyI5w1R//aNy3kUfU54WqWhb7jdLiS6Jm+x6fdCpQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QAj3KbZ6M5+yZtlniUu5znjr/2J4BP5YT65Uxi+k2RssB1p89+y+Dmh2DxBfUoaNz QxvTT7RUadm9mjDagmjK63hwSoIMUr7ljndtRkNZ/kLDJnQ6MI75Wu9DL0qblDdCop 8H4pXAVWYxsGWKfYamRHHakps7KamXBJJMstCd+jVK9nvHhz/TwcUsHBGEd67FvNFX vodMCFJqDDRbwW4NdlCFqUkQUnNwDwdxLb/Eonivt0o1fLwi4MMBbly9UoD1MviAzW bdNK2zibpcNDd9ehNfKrXLKw0zD3pDqy1S/Jl+/ALowz2V1rR4qZnI146znhTt4kHC INAqv4BEqDB2w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id D684A40404; Tue, 6 Dec 2022 14:07:32 -0300 (-03) Date: Tue, 6 Dec 2022 14:07:32 -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=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 Tue, Dec 06, 2022 at 02:01:43PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Dec 06, 2022 at 01:41:41PM -0300, Arnaldo Carvalho de Melo escreveu: > > Now to look at the BUILD_BPF_SKEL=1 kaboom: > > > > [acme@quaco perf]$ alias m > > alias m='rm -rf ~/libexec/perf-core/ ; make -k NO_LIBTRACEEVENT=1 BUILD_BPF_SKEL=1 O=/tmp/build/perf -C tools/perf install-bin && perf test python' > > [acme@quaco perf]$ m > > make: Entering directory '/home/acme/git/perf/tools/perf' > > BUILD: Doing 'make -j8' parallel build > > > > /usr/bin/ld: /tmp/build/perf/perf-in.o: in function `add_work': > > /home/acme/git/perf/tools/perf/util/bpf_kwork.c:285: undefined reference to `perf_kwork_add_work' > > /usr/bin/ld: /tmp/build/perf/perf-in.o: in function `lock_contention_read': For that bpf_kwork.c see below. Now to see why the python binding is not building, I guess is unrelated and you have some other outstanding patch? [acme@quaco perf]$ git diff diff --git a/tools/perf/util/Build b/tools/perf/util/Build index 255bc751d19452f2..c97093f47c990b45 100644 --- a/tools/perf/util/Build +++ b/tools/perf/util/Build @@ -153,8 +153,12 @@ perf-$(CONFIG_PERF_BPF_SKEL) += bpf_counter.o perf-$(CONFIG_PERF_BPF_SKEL) += bpf_counter_cgroup.o perf-$(CONFIG_PERF_BPF_SKEL) += bpf_ftrace.o perf-$(CONFIG_PERF_BPF_SKEL) += bpf_off_cpu.o -perf-$(CONFIG_PERF_BPF_SKEL) += bpf_kwork.o perf-$(CONFIG_PERF_BPF_SKEL) += bpf_lock_contention.o + +ifeq ($(CONFIG_TRACEEVENT),y) + perf-$(CONFIG_PERF_BPF_SKEL) += bpf_kwork.o +endif + perf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o perf-$(CONFIG_LIBELF) += symbol-elf.o perf-$(CONFIG_LIBELF) += probe-file.o [acme@quaco perf]$ m make: Entering directory '/home/acme/git/perf/tools/perf' BUILD: Doing 'make -j8' parallel build Warning: Kernel ABI header at 'tools/arch/x86/include/asm/msr-index.h' differs from latest version at 'arch/x86/include/asm/msr-index.h' diff -u tools/arch/x86/include/asm/msr-index.h arch/x86/include/asm/msr-index.h Warning: Kernel ABI header at 'tools/arch/arm64/include/uapi/asm/perf_regs.h' differs from latest version at 'arch/arm64/include/uapi/asm/perf_regs.h' diff -u tools/arch/arm64/include/uapi/asm/perf_regs.h arch/arm64/include/uapi/asm/perf_regs.h Warning: Kernel ABI header at 'tools/arch/arm64/include/asm/cputype.h' differs from latest version at 'arch/arm64/include/asm/cputype.h' diff -u tools/arch/arm64/include/asm/cputype.h arch/arm64/include/asm/cputype.h Warning: Kernel ABI header at 'tools/perf/arch/powerpc/entry/syscalls/syscall.tbl' differs from latest version at 'arch/powerpc/kernel/syscalls/syscall.tbl' diff -u tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc/kernel/syscalls/syscall.tbl Makefile.config:1138: No openjdk development package found, please install JDK package, e.g. openjdk-8-jdk, java-1.8.0-openjdk-devel INSTALL libsubcmd_headers INSTALL libapi_headers INSTALL libsymbol_headers INSTALL libperf_headers GEN /tmp/build/perf/python/perf.so INSTALL libbpf_headers INSTALL binaries INSTALL tests INSTALL perf-read-vdso32 INSTALL libexec INSTALL bpf-examples INSTALL perf-archive INSTALL perf-iostat INSTALL strace/groups INSTALL perl-scripts INSTALL python-scripts INSTALL dlfilters INSTALL perf_completion-script INSTALL perf-tip make: Leaving directory '/home/acme/git/perf/tools/perf' 14: 'import perf' in python : FAILED! [acme@quaco perf]$