From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9354081728; Thu, 26 Dec 2024 21:14:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735247652; cv=none; b=WTZiMj1vkqHK89HzDnuq/Np2aCTyAV5oei+V8FhNPdvmSFmDKRgybi0C+AUJeBlQIAmZNWvNwlXsBVFDRNmCbLLq4fgoA+gVzS/kCy0B2AW7GI4Uz/jv1cloaX3aOwOkGoELSriCiabsD+0x9+O6wVNoexrj71WgBRA3hBfp1HU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735247652; c=relaxed/simple; bh=+I9wW5utyeXNqVoDfDUusXgGA22saKDFjgRbqYkAyHc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U0ShJsI3xHZXXy29Bs6mQOPTxM4qB49N720d00JMzXHEuWYpQFprtADrqmmijNOtDR1gmwHslCWdXg+UbUziV7DEbz/P7gWAN3tBzUkBgTyoRi+aSm9ToaIavcUOMu3LiC9T0zp6/Bbac4RVjB3C+0zzO/zbqTohNwdUmyViaVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hqPzCSr5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hqPzCSr5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8336EC4CED1; Thu, 26 Dec 2024 21:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1735247652; bh=+I9wW5utyeXNqVoDfDUusXgGA22saKDFjgRbqYkAyHc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hqPzCSr5FVqRwRk1LbrhyolnKeLE1RAdR1bJtpe0SCxYUw6YH0GH/Ajz68VUQOJCk hFoeM20JPURVFVQoK1vcR7X5KwXDtvs3plBXgKV3rmf4X6KvN9TNKePI8/Qk/qyr8q lJQd4yZqovv5EItGm8/dmU6/yULXtzrDJOBRQzOZakdteLL3bsXGNVdj1uFueMaF3e 2YE+Tsp0kq+BFXlGSxLRkMeC8FsEdayoG64bubaFRIouZ8gRDzY5LIRxUpHr0oCRP5 Vezi8FCOcCYx5C/G7qKfjKsA3/+VapueXu+FVI1XEDhsbWFM5EG0qSRUmq+RPZyWZn D0HogaVGtWyhw== Date: Thu, 26 Dec 2024 18:14:09 -0300 From: Arnaldo Carvalho de Melo To: Alan Maguire Cc: Eduard Zingerman , dwarves@vger.kernel.org, arnaldo.melo@gmail.com, bpf@vger.kernel.org, kernel-team@fb.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, yonghong.song@linux.dev Subject: Re: [PATCH dwarves v1 2/2] tests: verify that pfunct prints btf_decl_tags read from BTF Message-ID: References: <20241211021227.2341735-1-eddyz87@gmail.com> <20241211021227.2341735-2-eddyz87@gmail.com> 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 Thu, Dec 26, 2024 at 06:11:57PM -0300, Arnaldo Carvalho de Melo wrote: > On Thu, Dec 12, 2024 at 07:50:57PM +0000, Alan Maguire wrote: > > On 11/12/2024 02:12, Eduard Zingerman wrote: > > > When using BTF as a source, pfunct should now be able to print > > > btf_decl_tags for programs like below: > > > > > > #define __tag(x) __attribute__((btf_decl_tag(#x))) > > > __tag(a) __tag(b) void foo(void) {} > > > > > > This situation arises after recent kernel changes, where tags 'kfunc' > > > and 'bpf_fastcall' are added to some functions. To avoid dependency on > > > a recent kernel version test this by compiling a small C program using > > > clang with --target=bpf, which would instruct clang to generate .BTF > > > section. > > > > > > Signed-off-by: Eduard Zingerman > > > > nit: the test is great but it would be good to print out a description > > even in non-verbose mode; when I run it via ./tests I see > > > > 5: Ok > > > > could we just echo the comment below, i.e. > > > > 5 : Check that pfunct can print btf_decl_tags read from BTF: Ok > > > > ? To clarify, I'm doing as Alan suggests and adding that message when the test succeeds. > > Reviewed-by: Alan Maguire > > Tested-by: Alan Maguire > > Thanks, applied. > > - Arnaldo >