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 892C3EDE for ; Tue, 18 Jul 2023 01:01:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 446A2C433C7; Tue, 18 Jul 2023 01:01:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689642080; bh=sYoB8EsYHp3bPyDDl82q/NWRIoZwpXBQ2TK6HH5fWxE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=h+bztgsYFyCfwn61V/O/SSstG4emcnkd0rwEz3blGoOfaPLw//fwTx2kINkVanA0Z S9vdvl5X5WKhhrI/Nkqnj6PaybZZ0tmAHYJtt3aFNEvzuoqKuRWjeXVK7waOuYpBWj 6DiJD1FVcy8t7Lme8Fh+iPYILfgmE18VRQdB3dbTJSFJYYCyKyPed9N/wQw1wp72py sYyn01wXYbvUtgS0jgxlOqvTh1TQvrrWLHc7j9c/g2xDGENKnOZzKZ4wGfgoMuKwiJ r7dVLPstrM5Q4tdfxoRgoHW7+rBztor6eCp9xiPnCAckGaCW335Hcyt6OlIDHYv5lh zphcDbo8Zuntg== Date: Tue, 18 Jul 2023 10:01:15 +0900 From: Masami Hiramatsu (Google) To: Luis Chamberlain Cc: Steven Rostedt , Alessandro Carminati , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Masami Hiramatsu , Daniel Bristot de Oliveira , Viktor Malik , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Nick Alcock , eugene.loh@oracle.com, kris.van.hees@oracle.com, live-patching@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH v2] scripts/link-vmlinux.sh: Add alias to duplicate symbols for kallsyms Message-Id: <20230718100115.ac5038d243105a46d279b664@kernel.org> In-Reply-To: References: <20230714150326.1152359-1-alessandro.carminati@gmail.com> <20230717105240.3d986331@gandalf.local.home> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 17 Jul 2023 09:50:25 -0700 Luis Chamberlain wrote: > On Mon, Jul 17, 2023 at 10:52:40AM -0400, Steven Rostedt wrote: > > Honestly, I think the "_alias_" is useless. It doesn't > > give you any clue to what function you are actually attaching to. > > Agreed. +1 :) > > There's > > been other approaches that show module and/or file names. I know there's > > still some issues with getting those accepted, but I much rather have them > > than this! > > > > See: https://lore.kernel.org/all/20221205163157.269335-1-nick.alcock@oracle.com/ > > Yes, please coordinate with Nick and review each other's work, now we > have two separate efforts with different reasons but hopefully we'll > come back with one unified solution. > > Please Cc live-patching also, as they had suggested before just to > provide the file filename + line number, that'll make it even more > valuable. I want to involve BTF, that is currently only support looking up function by name. This alias is currently decouple from the BTF, but BTF name is also need to be updated so that we can lookup BTF from the alias name. Thank you, -- Masami Hiramatsu (Google)