From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 606F23AC0D9 for ; Wed, 24 Jun 2026 09:28:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782293304; cv=none; b=iG5WRnDRHTQoVVguc7uXgjDJJqf+ltW6Cj/FHrAuBAZ7rcPzVgPXTDN3VZPI9P0P2d5DNK6gLsnpjaF6R2+ZFwiUWtkaF8yAI5h9UHzLX0+COcGNGuU1XuWC8f1NX0Grsc9kceOPlfBkIa39B5tRIx3s/vv1uFbqTyayXX7v/ik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782293304; c=relaxed/simple; bh=9c+jD2z2sETY12oFY277uAmbAaajDUjpcHK99y+prCM=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rPU14ZV/NllB0OR4tdy4O/KRdH9cVmkugwxz23+wm5w0PG6xvnQ4t4wrWdoNQuscoOdiKXT6T+KQRYGeCDgUT/RgUsMPKrL05hXSgSEVu6z/uk2F0687V+z4sAP7R7ZXt0mgKQkoVP5z+NVr45XKO9mwEfQznEABLwobWjkLwIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=k+ioyn+t; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="k+ioyn+t" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-49222b6e871so5013945e9.3 for ; Wed, 24 Jun 2026 02:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782293286; x=1782898086; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=rFKkTvWOSQrcXuCFTLZ8S0fbWlO1anbu3cbJE6d9vEQ=; b=k+ioyn+tAHpKei88ufuesbR+DFyXU8J69zS9oSco1n6/IQLOHzQb89F4iSkaWXeBHL ldcny0p1IbAFHVE65L7q6eUmeeyMdjjz3cqz+qyw8tf98SZ9J305zYY2NwAwQO/iakJG YoCQa4KM3fXW6bGZ7VNhE34smVe+VCVm2DxjeKgTzf7dPcnaU8nrnZX544uz6dMm8HB+ V0JtwE9AgcwG7qQ1kOpMLamXhRO9NQJEDx4pAJIajE9KhWuf/iBV2uJTE22h+TnP2jrW IAxQ2a6nGmSBs8fKrBsta9pMrMhqTyDj7LMN4C8BTIK/Mafg92l6dE42MU9TEDNSSKDb bTig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782293286; x=1782898086; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rFKkTvWOSQrcXuCFTLZ8S0fbWlO1anbu3cbJE6d9vEQ=; b=Aieb/TmHEP822BLzzqIrQXVf1iVygxgjlf5MvU0sU0KPVXbFNA4pd7+11uq+MNVrVt twdmZ8aE9AZYCAAsoAZvHnd3fnJZfS70Lhkv9oG/VIyiPu06KjQoJICZscMNnrJhwnV9 4M6cYk3vKgXB7si65IV8ECOjLxf/gVbiWIqWSwZj+5fZaBSrAwEGkcqB8wQmpX1qubs+ nrIi+tNe5rocbzzHZ4s3+yVVC39QPuqHPThuiEg8EL1pWbj5AoG9TlLwwAU79S78BF+U ippBT2yebLMuZaUroR6cbZe9GPp60VAWUlYepUi9xK4ZHjjz4e23g0veKTlfSsZANWWs RhXQ== X-Forwarded-Encrypted: i=1; AFNElJ+cP/dJufJgOlgh3ZrJgKWSqUdqsKKIjGK4dms8IrZQ4ue8xyXYLXBclSRJtHRN/kMMryn0tRbu@vger.kernel.org X-Gm-Message-State: AOJu0YzighQNHH2Z1DxpWW5dCiI2dRYIoUlDQTDG7yciPAhxD8gQv0WX Vmspm2Lx5FUfHVAdBAFcaL5Z17jWR0i6zG7TWslXvsxhaAMJUydXH+Qj X-Gm-Gg: AfdE7ckYMyb72EZV/cnF7TdoziDgVNfyI4jHxy5jq2dhJ2JSMafMPdpbFsVwrZxQSjE brHuaV/7nia2nk3a1QScNoEYvh5AN/yoclF8KlGRA3FlpjMJuZTqRgEP45Zd2BD8HNAYY7H5X+O A2YneF7ImdFEsoMQ9vOM274EZU69Xpww6+G8uwi691STTxrRG6ugfr5orBIzzlwCZvAWXs1oM5I BxjqMfun+ia5l/w1K7JASTtoYbvjTluLVhgXfkS0ZeJoDaCN93drlhVqsRHMRdcUud95F34Sdky MDZp+zFbEUlZtT93JhoMGtQNu+Koc95RorWdXG5NMwKR2W/ecr7X7GQ+HqCNMNo8ycNYXH2WUKE ouqRUoIpZ2RyJ8yj12cbXLTdlM0jPPXU7Df8Gq1dmC/JAWpQOLTWx0psDi+uzqTLw/CUFZlkeWb q4 X-Received: by 2002:a05:600c:81c5:b0:490:a1dc:e542 with SMTP id 5b1f17b1804b1-4925b34ee58mr88244475e9.6.1782293286012; Wed, 24 Jun 2026 02:28:06 -0700 (PDT) Received: from krava ([176.74.159.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4923ff821aasm466328435e9.12.2026.06.24.02.28.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2026 02:28:05 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Wed, 24 Jun 2026 11:28:04 +0200 To: Alan Maguire Cc: Jiri Olsa , Yonghong Song , Arnaldo Carvalho de Melo , dwarves@vger.kernel.org, Alexei Starovoitov , Andrii Nakryiko , bpf@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH dwarves v7 0/5] pahole: Encode true signatures in kernel BTF Message-ID: References: <20260623040704.2732530-1-yonghong.song@linux.dev> Precedence: bulk X-Mailing-List: dwarves@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Jun 23, 2026 at 05:02:30PM +0100, Alan Maguire wrote: SNIP > >> > >> hi, > >> I tried to get the numbers from my setup and noticed that some new > >> functions were included in BTF compared to the current version > >> (functions diff attached below) > >> > >> like for "arp_process" function the current pahole gives me: > >> > >> arp_process : skipping BTF encoding of function due to unexpected register usage for parameter > >> > >> but it's included in BTF generated with the new pahole. > >> > >> in addition to your explanation above also one of the commit says: > >> > >> - a parameter with no location, a constant value, or (for non-clang) no > >> register found is marked optimized out > >> > >> please check below, it seems like 2nd argument of arp_process has no location, > >> so iiuc it should not be included in BTF, right? > >> > >> thanks, > >> jirka > >> > >> > > > > thanks for catching this; it looks like we return a bit early before detecting > > missing locations in the non-true-signature code. If you get a chance, would you > > mind trying the attached patch to see if it fixes the problem? > > > > If the fix works and Yonghong is happy with it we can add it as a followup > > and land the true signature series to save another round. > > actually sorry that patch leaked true signature partial names for gcc; updated > patch attached. hum, I can't apply either of them, but I see that change on top of: alan-maguire/dwarves-true-sig-v7 but on that branch I can still see arp_process function in the btf please let me know if I should try some other branch thanks, jirka