Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp449684pxb; Wed, 14 Apr 2021 21:02:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrupA+zFIiB1FncDz2PQjgiffbt5vMYVRWBJhFbZnGdz1Jza1zpnMte4duJyirhue2p1Tr X-Received: by 2002:a17:902:c745:b029:eb:6fc0:39e7 with SMTP id q5-20020a170902c745b02900eb6fc039e7mr1693778plq.82.1618459337014; Wed, 14 Apr 2021 21:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618459337; cv=none; d=google.com; s=arc-20160816; b=gDaRaMN9HKv/Ld/s2l8Uk80O4hZg/HXdCRfKXY5K5mu279XyKCBGEhNwL6GcVHvzy0 JZPwGKmnlE3ucpV46DelXordZQayQN4amQ9RvzfNd3IOnmsZ/mDZa3zPWqHrRieYgnD4 Gwtzqlb6nvGc8QlOL3n+2Vx5WY6n5Jh3i+gSctwAdkuORe7ks+5w0v5/N/uf3mGbCi9U DFjx3zWNcX5jl1icAAZedX7rKl3vzUxn+Z/2DLIOC/uDQRRl4gVVZvex3Xr++Ukpgg5p s0DgGUZIa8QwRN6zt6cCm/mcXAKzqz4tZbPjRGgnIe6X78KYbfaTCtO7/bm4SmlLttU5 EWxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:date:message-id:cc:to:subject:from; bh=SXyRJO5C8FH6rcT/lSsNTFpc8T/+WtkOhoAhMgWwFbk=; b=zV2bR9NO6hdBmFErunJi2UwN9iMKjdDBulX0bnRREa3mk9bADpEcaNQsamomngFZ7Y Crdb/kIK99t/6NO/WtNb63NiNC9gr70qbnI1pDy6DGasqx0XSer3lherzG6E89CDfS30 3UUuVUMf+tf45GBA9VvG8H85CN5S9xSlOsx3KR49DK3ey1JoLjzymwRpZN6+A3nLnbkt lY0Zdl5h66eCiDp/VIsmmK8yCzcOjgmRJZJgYFGQkOOSQxdoy7aNuEc2DdKeWWDEREwP gE3t0Y4UyCBiZKSq5cWE6QhyZNJ4cj8kq5/Q6V42gCES9dWVhlCDD65vjMKMelPxZ7Yc vU0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d31si1711713pgm.492.2021.04.14.21.02.01; Wed, 14 Apr 2021 21:02:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbhDOEBv (ORCPT + 99 others); Thu, 15 Apr 2021 00:01:51 -0400 Received: from mail.loongson.cn ([114.242.206.163]:57962 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229450AbhDOEBv (ORCPT ); Thu, 15 Apr 2021 00:01:51 -0400 Received: from [10.130.0.135] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxPcmTundgzikIAA--.11464S3; Thu, 15 Apr 2021 12:01:24 +0800 (CST) From: Tiezhu Yang Subject: [QUESTION] Will the pahole tar source code with corresponding libbpf submodule codes be released as well in the future? To: Arnaldo Carvalho de Melo Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <2de4aad5-fa9e-1c39-3c92-9bb9229d0966@loongson.cn> Date: Thu, 15 Apr 2021 12:01:23 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-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I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07bOoGdUUUUU= X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (1) tools/bpf/bpftool build failed due to the following reason: Error: failed to load BTF from /boot/vmlinux-5.12.0-rc2: No such file or directory make: *** [Makefile:158: vmlinux.h] Error 2 (2) When set CONFIG_DEBUG_INFO_BTF=y, failed to generate BTF for vmlinux due to pahole is not available BTF: .tmp_vmlinux.btf: pahole (pahole) is not available Failed to generate BTF for vmlinux Try to disable CONFIG_DEBUG_INFO_BTF make: *** [Makefile:1197: vmlinux] Error 1 (3) When build pahole from tar.gz source code, it still failed due to no libbpf submodule. loongson@linux:~$ wget https://git.kernel.org/pub/scm/devel/pahole/pahole.git/snapshot/pahole-1.21.tar.gz loongson@linux:~$ tar xf pahole-1.21.tar.gz loongson@linux:~$ cd pahole-1.21 loongson@linux:~/pahole-1.21$ mkdir build loongson@linux:~/pahole-1.21$ cd build/ loongson@linux:~/pahole-1.21/build$ cmake -D__LIB=lib .. -- The C compiler identification is GNU 10.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Checking availability of DWARF and ELF development libraries -- Looking for dwfl_module_build_id in elf -- Looking for dwfl_module_build_id in elf - found -- Found dwarf.h header: /usr/include -- Found elfutils/libdw.h header: /usr/include -- Found libdw library: /usr/lib/mips64el-linux-gnuabi64/libdw.so -- Found libelf library: /usr/lib/mips64el-linux-gnuabi64/libelf.so -- Checking availability of DWARF and ELF development libraries - done -- Found ZLIB: /usr/lib/mips64el-linux-gnuabi64/libz.so (found version "1.2.11") CMake Error at CMakeLists.txt:60 (message): The submodules were not downloaded! GIT_SUBMODULE was turned off or failed. Please update submodules and try again. -- Configuring incomplete, errors occurred! See also "/home/loongson/pahole-1.21/build/CMakeFiles/CMakeOutput.log". (4) I notice that the pahole git source code can build successful because it will clone libbpf automatically: -- Submodule update Submodule 'lib/bpf' (https://github.com/libbpf/libbpf) registered for path 'lib/bpf' Cloning into '/home/loongson/pahole/lib/bpf'... Submodule path 'lib/bpf': checked out '986962fade5dfa89c2890f3854eb040d2a64ab38' -- Submodule update - done (5) So Will the pahole tar source code with corresponding libbpf submodule codes be released as well in the future? just like bcc: https://github.com/iovisor/bcc/releases https://github.com/iovisor/bcc/commit/708f786e3784dc32570a079f2ed74c35731664ea Thanks, Tiezhu