Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2495300pxy; Mon, 3 May 2021 01:00:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb0UcHVqfg6fSTHo2VBdtPN3wQnJAVwnj5I45Vpuyn18vile2F3q3Lxq7wUzG+wGQsNT0K X-Received: by 2002:a17:902:f284:b029:ed:1840:5cad with SMTP id k4-20020a170902f284b02900ed18405cadmr18966910plc.34.1620028838098; Mon, 03 May 2021 01:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620028838; cv=none; d=google.com; s=arc-20160816; b=eMCcUl0ISOjD69KIKRmK7oWndKImIXPrGAKr9IdOJfyoimnaL+Pm2E+cvFoM58tqp8 AwIDQmV8TsL8tXqM0Un4LWwfvlUagZwRgH7sBgbCPJ6uhXpsK8UqF07CnacnuGhtpNPv XU7LpIQIvZChWKfNJ1LUo7O0wVqbu1m8hCc8taF5NVUhGnEr+X79C1l0R/1XzOVCO7J5 /9HYlacyao73bS+MDTNhMN5oFc/oweM3JvqlVxTd/lPs1vyo8aBH3oWo+6NzA/xn0kxC kFzHZjvRSRbsjyHqPfbTSOpIJUBFxUeEjOQcEF7VEIrBTnTh/YPv2RyGRPoAaDrDbxLk DAOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=5wQ58QmE9rd2XQ2cySSLGBm/LraaVfP/exkFVcgYCBo=; b=RWooY06m36dmO5+nI5rxoNCxfDtrLatxNDw9a/YSB43C+fVY6ncUXOAGQq2uL2lZ25 3lU3Q31+G2mT+Kcd0EjrmcHX11Qi0Fozh+7lw37hxjNFOvjOV8JWvdjuto7CzYpcQuQf vbLOtuNZhtcPuCkg+FmLQRme2l5dic8hiB55c2K8tmDlU4nhLqS61dmIY45R1PeFLKwi /DNj+0JoW1ox2IbLQqrsWUckSBwBjAjKx/u9+oVQr0rLP33abbLpvM+oVVtug28WZiKM l51m7cisIGmbjBck3902HRSe9qh/SsMSiG8/2Oc9zlwJJW7Y9GAjmEH2wuoFnPsDzJVY nUzA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si5609306pfu.53.2021.05.03.01.00.24; Mon, 03 May 2021 01:00:38 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232911AbhECIAd (ORCPT + 99 others); Mon, 3 May 2021 04:00:33 -0400 Received: from mail-ej1-f46.google.com ([209.85.218.46]:34519 "EHLO mail-ej1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhECIAc (ORCPT ); Mon, 3 May 2021 04:00:32 -0400 Received: by mail-ej1-f46.google.com with SMTP id a4so6542638ejk.1; Mon, 03 May 2021 00:59:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5wQ58QmE9rd2XQ2cySSLGBm/LraaVfP/exkFVcgYCBo=; b=czHH6Y9Yv16rQcpHt/8cv7o1GALW6ggM/m7sqI7fvovTQaS3ajLvIiC7pr4rI0h7IY oQrbE+ZNl4SOMjDWo8Oi7upRb6fikb5ECbLwXybYlYHeOturg/UEH63erQ+ZsBvtoQ9L IdgWNeIYpeS8880NN/ogI5P1g+gx8wKizd9aPmK9vQH8jjuzWKflc8HsnoA5GGI2gg0h tWCZpRinNlZzXyB2cRKhpAE4Oz1m9r+5TatXCEsfERiw94GJdrWlwpvL9ku4NccQhZ1E rhjrQa8vvrsXEMDJiYSBZLWrb064edShb8ywRQJ5j677dwxJSNBeXLEYsy2qBPn3yxkb rR6Q== X-Gm-Message-State: AOAM533b8fys9zA+k/QhnvC73+UrbVahH+QExFEYTJ9K1/tGodJqxOGy 3aPEWJoRUH4jXv4fzp8X8zCDfjc+kM6ufg== X-Received: by 2002:a17:906:5855:: with SMTP id h21mr15685833ejs.522.1620028778847; Mon, 03 May 2021 00:59:38 -0700 (PDT) Received: from ?IPv6:2a0b:e7c0:0:107::70f? ([2a0b:e7c0:0:107::70f]) by smtp.gmail.com with ESMTPSA id a22sm11793899edu.14.2021.05.03.00.59.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 May 2021 00:59:38 -0700 (PDT) Subject: Re: linux-next failing build due to missing cubictcp_state symbol From: Jiri Slaby To: =?UTF-8?Q?Michal_Such=c3=a1nek?= , Jiri Olsa Cc: Yonghong Song , linux-kernel@vger.kernel.org, Martin KaFai Lau , "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Song Liu , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org, Jiri Olsa , Jesper Dangaard Brouer References: <316e86f9-35cc-36b0-1594-00a09631c736@fb.com> <20210423175528.GF6564@kitsune.suse.cz> <20210425111545.GL15381@kitsune.suse.cz> <20210426113215.GM15381@kitsune.suse.cz> <20210426121220.GN15381@kitsune.suse.cz> <20210426121401.GO15381@kitsune.suse.cz> <49f84147-bf32-dc59-48e0-f89241cf6264@fb.com> <20210427121237.GK6564@kitsune.suse.cz> <20210430174723.GP15381@kitsune.suse.cz> <3d148516-0472-8f0a-085b-94d68c5cc0d5@suse.com> <6c14f3c8-7474-9f3f-b4a6-2966cb19e1ed@kernel.org> Message-ID: <4e051459-8532-7b61-c815-f3435767f8a0@kernel.org> Date: Mon, 3 May 2021 09:59:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <6c14f3c8-7474-9f3f-b4a6-2966cb19e1ed@kernel.org> Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03. 05. 21, 8:11, Jiri Slaby wrote: >>>>>> looks like vfs_truncate did not get into BTF data, >>>>>> I'll try to reproduce >> >> _None_ of the functions are generated by pahole -J from debuginfo on >> ppc64. debuginfo appears to be correct. Neither pahole -J fs/open.o >> works correctly. collect_functions in dwarves seems to be defunct on >> ppc64... "functions" array is bogus (so find_function -- the bsearch >> -- fails). > > It's not that bogus. I forgot an asterisk: >> #0? find_function (btfe=0x100269f80, name=0x10024631c "stream_open") >> at /usr/src/debug/dwarves-1.21-1.1.ppc64/btf_encoder.c:350 >> (gdb) p (*functions)@84 >> $5 = {{name = 0x7ffff68e0922 ".__se_compat_sys_ftruncate", addr = >> 75232, size = 72, sh_addr = 65536, generated = false}, { >> ??? name = 0x7ffff68e019e ".__se_compat_sys_open", addr = 80592, size >> = 216, sh_addr = 65536, generated = false}, { >> ??? name = 0x7ffff68e0076 ".__se_compat_sys_openat", addr = 80816, >> size = 232, sh_addr = 65536, generated = false}, { >> ??? name = 0x7ffff68e0908 ".__se_compat_sys_truncate", addr = 74304, >> size = 100, sh_addr = 65536, generated = false}, { > ... >> ??? name = 0x7ffff68e0808 ".stream_open", addr = 65824, size = 72, >> sh_addr = 65536, generated = false}, { > ... >> ??? name = 0x7ffff68e0751 ".vfs_truncate", addr = 73392, size = 544, >> sh_addr = 65536, generated = false}} > > The dot makes the difference, of course. The question is why is it > there? I keep looking into it. Only if someone has an immediate idea... Well, .vfs_truncate is in .text (and contains an ._mcount call). And vfs_truncate is in .opd (w/o an ._mcount call). Since setup_functions excludes all functions without the ._mcount call, is_ftrace_func later returns false for such functions and they are filtered before the BTF processing. Technically, get_vmlinux_addrs looks at a list of functions between __start_mcount_loc and __stop_mcount_loc and considers only the listed. I don't know what the correct fix is (exclude .opd functions from the filter?). Neither why cross compiler doesn't fail, nor why ebi v2 avoids this too. regards, -- js