From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLACK,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3D16C433B4 for ; Thu, 15 Apr 2021 04:01:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8A0E560230 for ; Thu, 15 Apr 2021 04:01:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229521AbhDOEBw (ORCPT ); Thu, 15 Apr 2021 00:01:52 -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-8; format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14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07bOoGdUUUUU= 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