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=-11.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS 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 1135CC433B4 for ; Tue, 6 Apr 2021 17:36:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D1B22613D3 for ; Tue, 6 Apr 2021 17:36:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237017AbhDFRgr (ORCPT ); Tue, 6 Apr 2021 13:36:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:56516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233683AbhDFRgq (ORCPT ); Tue, 6 Apr 2021 13:36:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6765961396; Tue, 6 Apr 2021 17:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617730598; bh=k497DPwMqsBLXF12dm5eLF/zy/6bqwtj361dl3WVuJI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gIKZyS0oM7qslBeLy1THEICjZva/yPfeizkH39Uqicu4Y6eeClasBERa5jKkU0FFm eU/58/3TJV8+F5NxRIoS0i4lGuSS6LOAARGCE/dV+pbZNA0WSYc2GNrQzJAcuj4PH/ oRdrVTjR4LI7/JgOrQBQFb7tfdzsWx1idGPFE4sRfPpNatSL2L9WF0vP58MFp+Stf0 3xqzWdiimkLryc4RxTWLeBRUY+xsGSTUroFy6jeug9QlwYQajRGqdwTX4cjZ2Ez5ob bPAw+Nji7f4Vk6Dz3PeTy1tG9zvRCXfZdaXffYfe+bEJLgwsJTZgVQGI7zp79jG868 bLn3wB1U2mBYA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 12FFD40647; Tue, 6 Apr 2021 14:36:36 -0300 (-03) Date: Tue, 6 Apr 2021 14:36:36 -0300 From: Arnaldo Carvalho de Melo To: Yonghong Song Cc: Bill Wendling , Jiri Olsa , dwarves@vger.kernel.org, Alexei Starovoitov , Andrii Nakryiko , bpf , David Blaikie , =?utf-8?B?RsSBbmctcnXDrCBTw7JuZw==?= , kernel-team@fb.com, Nick Desaulniers Subject: Re: [PATCH dwarves 0/2] dwarf_loader: improve cus__merging_cu() Message-ID: References: <06ba2ed4-2730-9ce8-0665-3c720bc786a3@fb.com> <3a6aa243-add9-88a5-b405-85fd8bfbe21d@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: dwarves@vger.kernel.org Em Tue, Apr 06, 2021 at 02:34:01PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Apr 06, 2021 at 10:23:37AM -0700, Yonghong Song escreveu: > > On 4/6/21 10:03 AM, Arnaldo Carvalho de Melo wrote: > > > Em Tue, Apr 06, 2021 at 01:59:30PM -0300, Arnaldo Carvalho de Melo escreveu: > > > > Em Tue, Apr 06, 2021 at 01:55:54PM -0300, Arnaldo Carvalho de Melo escreveu: > > > > > Em Tue, Apr 06, 2021 at 01:40:20PM -0300, Arnaldo Carvalho de Melo escreveu: > > > > > > Em Tue, Apr 06, 2021 at 10:22:37AM -0300, Arnaldo Carvalho de Melo escreveu: > > > > > > > I'm seeing these here: > > > > > > > > > > > > [acme@five bpf]$ rm -f ../build/bpf_clang_thin_lto/*vmlinu* > > > > > > > [acme@five bpf]$ time make -j28 LLVM=1 LLVM_IAS=1 O=../build/bpf_clang_thin_lto/ vmlinux > > > > > > > make[1]: Entering directory '/home/acme/git/build/bpf_clang_thin_lto' > > > > > > > GEN Makefile > > > > > > > DESCEND objtool > > > > > > > DESCEND bpf/resolve_btfids > > > > > > > CALL /home/acme/git/bpf/scripts/atomic/check-atomics.sh > > > > > > > CALL /home/acme/git/bpf/scripts/checksyscalls.sh > > > > > > > CHK include/generated/compile.h > > > > > > > GEN .version > > > > > > > CHK include/generated/compile.h > > > > > > > UPD include/generated/compile.h > > > > > > > CC init/version.o > > > > > > > AR init/built-in.a > > > > > > > GEN .tmp_initcalls.lds > > > > > > > LTO vmlinux.o > > > > > > > OBJTOOL vmlinux.o > > > > > > > vmlinux.o: warning: objtool: aesni_gcm_init_avx_gen2()+0x12: unsupported stack pointer realignment > > > > > > > vmlinux.o: warning: objtool: aesni_gcm_enc_update_avx_gen2()+0x12: unsupported stack pointer realignment > > > > > > > vmlinux.o: warning: objtool: aesni_gcm_dec_update_avx_gen2()+0x12: unsupported stack pointer realignment > > > > > > > vmlinux.o: warning: objtool: aesni_gcm_finalize_avx_gen2()+0x12: unsupported stack pointer realignment > > > > > > > vmlinux.o: warning: objtool: aesni_gcm_init_avx_gen4()+0x12: unsupported stack pointer realignment > > > > > > > vmlinux.o: warning: objtool: aesni_gcm_enc_update_avx_gen4()+0x12: unsupported stack pointer realignment > > > > > > > vmlinux.o: warning: objtool: aesni_gcm_dec_update_avx_gen4()+0x12: unsupported stack pointer realignment > > > > > > > vmlinux.o: warning: objtool: aesni_gcm_finalize_avx_gen4()+0x12: unsupported stack pointer realignment > > > > > > > MODPOST vmlinux.symvers > > > > > > > MODINFO modules.builtin.modinfo > > > > > > > GEN modules.builtin > > > > > > > LD .tmp_vmlinux.btf > > > > > > > BTF .btf.vmlinux.bin.o > > > > > > > LD .tmp_vmlinux.kallsyms1 > > > > > > > KSYMS .tmp_vmlinux.kallsyms1.S > > > > > > > AS .tmp_vmlinux.kallsyms1.S > > > > > > > LD .tmp_vmlinux.kallsyms2 > > > > > > > KSYMS .tmp_vmlinux.kallsyms2.S > > > > > > > AS .tmp_vmlinux.kallsyms2.S > > > > > > > LD vmlinux > > > > > > > BTFIDS vmlinux > > > > > > > WARN: multiple IDs found for 'inode': 232, 28822 - using 232 > > > > > > > WARN: multiple IDs found for 'file': 374, 28855 - using 374 > > > > > > > WARN: multiple IDs found for 'path': 379, 28856 - using 379 > > > > > > > WARN: multiple IDs found for 'vm_area_struct': 177, 28929 - using 177 > > > > > > > WARN: multiple IDs found for 'task_struct': 97, 28966 - using 97 > > > > > > > WARN: multiple IDs found for 'seq_file': 510, 29059 - using 510 > > > > > > > WARN: multiple IDs found for 'inode': 232, 29345 - using 232 > > > > > > > WARN: multiple IDs found for 'file': 374, 29429 - using 374 > > > > > > > WARN: multiple IDs found for 'path': 379, 29430 - using 379 > > > > > > > WARN: multiple IDs found for 'vm_area_struct': 177, 29471 - using 177 > > > > > > > WARN: multiple IDs found for 'task_struct': 97, 29481 - using 97 > > > > > > > WARN: multiple IDs found for 'seq_file': 510, 29512 - using 510 > > > > > > > SORTTAB vmlinux > > > > > > > SYSMAP System.map > > > > > > > make[1]: Leaving directory '/home/acme/git/build/bpf_clang_thin_lto' > > > > > > > > > > > > > > [acme@five pahole]$ clang -v > > > > > > > clang version 11.0.0 (Fedora 11.0.0-2.fc33) > > > > This could be due to the compiler. The clang 11 is used here. Sedat is > > using clang 12 and didn't see warnings and I am using clang dev branch Cool, clang 12 is the one in Fedora 34 beta. - Arnaldo > > (clang 13) and didn't see warnings either. clang 11 could generate > > some debuginfo where pahole didn't handle it properly. > > > > I tried to build locally with clang 11 but it crashed as I enabled > > assert during compiler build. Will try a little bit more. > > Right, I'm now at: > > $ git clone https://github.com/llvm/llvm-project.git > $ cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm