Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1351770pxy; Thu, 6 May 2021 06:21:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyywaSJRO+A4wqmATNAjIGFgEt58oYX71R0xx2Eo7rtaZKFHzF++NcCIsGazdhzbSEyJv7f X-Received: by 2002:a17:906:7806:: with SMTP id u6mr4163334ejm.130.1620307316373; Thu, 06 May 2021 06:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620307316; cv=none; d=google.com; s=arc-20160816; b=pLWi6RojU/ubz9xTuyo04QZXt1enOMYjPHe3T0tuDADsJe9fEl9LPNI7+aeI2mA9lA DG9sLnMRsHHgnBAfKYaAOc9xOu3JMWLkmEfasnkQJW/+ZWttPxnPYLBoyY3P3uitP0FQ xc8+fz4KPysdQKa3OSg8PmQs2dLP+TU5kTOSqvzhl9Js99Q1wVetS95lPO6HVZjydVf/ Ygc/4svxq3yWs/yuJPLEhE9oq4nLpoHLbeWHkBzYZBl0IN7IfXnuMzXsr6cdeZlJXvt9 MYSxr0kS6aacAIdwBFTde0X807J0WAyZ3xMDEjVxOzEzjcKxt1yEhOW3bDajnFN4BlTy wWwg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aFyoCh/Cvv5uFlEu/CTPouwkWlGfZVHzYvmAxhYjM4o=; b=CKBbCrnDsaTuwTuWDH1Gsg+zEwTtTFZk2obRHfZIz1HS8ePk6ySY63NVxMVDtaY75U IObP9iLYC5cKAbS1TDoCusUtKFkwnY/2SGE7QjfGHjsE+m3Kcz2nzO56FG1ZdNRVlHWc bFVIzgTUgb2FxgFg8/W4/ulDJ6PCM/HsDktpbAEdrdeTvbXJT80vjNUGoUE2ngyHVDdj D/V/PSAB8GA6I5qJYw0hYU7tGvxosycjnnEy/StJO0Gx3W0bm/N5S2D1ENiiBL4pIOHI VdKRz2v2hpDqh8Z16rQeQ6q1O5bIsfgXjw+y419BzFwLJMk8idKgXjfphCDoP+pGpSKj fytg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Tq4etUMl; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si2768885edt.43.2021.05.06.06.21.31; Thu, 06 May 2021 06:21:56 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Tq4etUMl; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233787AbhEFNRv (ORCPT + 99 others); Thu, 6 May 2021 09:17:51 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:30761 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231993AbhEFNRu (ORCPT ); Thu, 6 May 2021 09:17:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620307011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aFyoCh/Cvv5uFlEu/CTPouwkWlGfZVHzYvmAxhYjM4o=; b=Tq4etUMlv9rWYGwy9kI5cjv3WwB15vNRm49Wql4asSLCGzzz9uaBQPwlNUaXlIFn+AdiaY xJawyPBEdlUqnHXPaPTdguIQyE0q6VJU78bpEA0rF/TzefrkIDTQA190Oeibe0tZnrT9/d fenSHH3aEsanSELP9xE6HOoe3RWg0KI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-587-luWD0peDPHCz8cVEamg4ww-1; Thu, 06 May 2021 09:16:49 -0400 X-MC-Unique: luWD0peDPHCz8cVEamg4ww-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C931F1008063; Thu, 6 May 2021 13:16:44 +0000 (UTC) Received: from krava (unknown [10.40.193.227]) by smtp.corp.redhat.com (Postfix) with ESMTP id C6728620DE; Thu, 6 May 2021 13:16:36 +0000 (UTC) Date: Thu, 6 May 2021 15:16:35 +0200 From: Jiri Olsa To: Martin KaFai Lau Cc: Jiri Slaby , Michal =?iso-8859-1?Q?Such=E1nek?= , Yonghong Song , linux-kernel@vger.kernel.org, "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 , dwarves@vger.kernel.org, Arnaldo Carvalho de Melo Subject: Re: linux-next failing build due to missing cubictcp_state symbol Message-ID: References: <20210427121237.GK6564@kitsune.suse.cz> <20210430174723.GP15381@kitsune.suse.cz> <3d148516-0472-8f0a-085b-94d68c5cc0d5@suse.com> <6c14f3c8-7474-9f3f-b4a6-2966cb19e1ed@kernel.org> <4e051459-8532-7b61-c815-f3435767f8a0@kernel.org> <8c3cbd22-eb26-ea8b-c8bb-35a629d6d2d8@kernel.org> <20210506053152.e5rnv44zsitob3sn@kafai-mbp.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210506053152.e5rnv44zsitob3sn@kafai-mbp.dhcp.thefacebook.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 05, 2021 at 10:31:52PM -0700, Martin KaFai Lau wrote: > On Tue, May 04, 2021 at 08:41:47AM +0200, Jiri Slaby wrote: > > On 03. 05. 21, 12:08, Jiri Olsa wrote: > > > On Mon, May 03, 2021 at 10:59:44AM +0200, Jiri Slaby wrote: > > > > CCing pahole people. > > > > > > > > On 03. 05. 21, 9:59, Jiri Slaby wrote: > > > > > 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. > > > > > > > > Attaching a patch for pahole which fixes the issue, but I have no idea > > > > whether it is the right fix at all. > > > > > > hi, > > > we're considering to disable ftrace filter completely, > > > I guess that would solve this issue for ppc as well > > > > > > https://lore.kernel.org/bpf/20210501001653.x3b4rk4vk4iqv3n7@kafai-mbp.dhcp.thefacebook.com/ > > > > Right, the attached patch fixes it for me too. > Ah, I just noticed the attachment while replying an earlier message in > this thread. > > Please feel free to add SOB to mine or > repost yours and toss mine. Either way works for me. > I think this patch is missing the same removal I just commented on your patch.. either way is ok for me jirka