Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6271774rwp; Mon, 17 Jul 2023 19:08:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlFb4C9oeH8+VcgOBWkc1YbJD/hZbTUeH1N2iZ6snqcHNqd6H46bjQ96/FXHw6386LwYhNhA X-Received: by 2002:a17:903:2351:b0:1b8:86a1:9cf with SMTP id c17-20020a170903235100b001b886a109cfmr15023845plh.32.1689646103104; Mon, 17 Jul 2023 19:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689646103; cv=none; d=google.com; s=arc-20160816; b=SfAkRwgx7Yw/awysyi6up3T7yhdywVzN15deWiK7RXTh4ufvrX2ic7Vy+NkpZF72pR +rYXfshJ+7UyCncdpZi+yqtEgIT7qbOXUwG3TXwMeLnmtGu2sUNWToOf4JrMzSjNnszW Zd19cjEijMmBGE8wG844wqOyRV1hijU7xc7Jvur01M8SBNZHoJG/eYOj92YT/Es3C3yt rqqPNU2UmabrvB9YNWuUKliZRPEeh+29ma3Hb3fJZpjMtmnj5zHLt3RBFk5YD6ZPbfYM s907eLpbCvt6xgiDq6YzpVCIYXud17GMmKZQYFS7W0ID//S2KzfIERFc6jmGkYfLh4uL KJtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1ngu/Y8eTi729Ngu9hesVaZIrROJcSLsLfhNv5u1wWY=; fh=vdKC1fyjrPkCiWVxuzGaVi4ttAgJANKcdqqHFTN7qAs=; b=F7zXtt6vvce1czGbrYb4RMNrpFNNXg/FbKjwwDE5d2N18Um4++PYm8Ncv2WvQRznlU a1IEJxuJxj9EQBlX/qUVMcJaLVyRmx2xrEwb38cVlATdGqbQMOA422PTyqYyMIXUzuXa yjUFXFnyCLzsX6BNJ3arWNmMs/plyn0qECQG3nNSIp+Xq/CLvOQS3BKCO0YwkICjAPUr 2BvreBvXl+H0zQ8FytrqkyF0mPFCdn5BYMatduEF46l+sL0cjf7bItsOCzwR7iD5zKT9 EAVyWzF5r5hDKkjxbaQOeBLlQy6TCLagzz0gK+UD9QdMg2E8yXaaAKZGmGvfx0foHORu jVWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h+bztgsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ko4-20020a17090307c400b001b9fb1e25ebsi753799plb.360.2023.07.17.19.08.10; Mon, 17 Jul 2023 19:08:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h+bztgsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229870AbjGRBBX (ORCPT + 99 others); Mon, 17 Jul 2023 21:01:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjGRBBW (ORCPT ); Mon, 17 Jul 2023 21:01:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 295E3A6; Mon, 17 Jul 2023 18:01:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A6C3C6134B; 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) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)