Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2468629rdg; Mon, 16 Oct 2023 05:42:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGAk3XHuZPEiYhazRS1Ot3S1mthHg0nhAHqpdKKzLWm9cFp95vSJxQiGudho6kQZ7Qo0MH9 X-Received: by 2002:a05:6a00:2404:b0:68a:45a1:c0ee with SMTP id z4-20020a056a00240400b0068a45a1c0eemr38085842pfh.15.1697460157861; Mon, 16 Oct 2023 05:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697460157; cv=none; d=google.com; s=arc-20160816; b=NAbUjCJ0j9vALuuSbJ3YAjfEgBk5SCOPW4LTGhvYPsRY1SFcXnM6xEz5Zk1K+f0lBG 2wl6a2zUZpk/V0ByWd0ROMo79AvUWqnFaQYhhmPcugT4U9SGfFEhas0MCluC3jg/5waS jknV6RfRxhOaXTO9RD8StAlHRj3EG1BgbJW1LeC96gmk3hpl/GIgr2krH2U9hXmxgmtJ J3ty/xmWi3Mrz4q+rWLInpHxBqSJEczyMr52G1bKXz+BDfXHSQB51256D4durmYjeT3Y gXASBR1r3yCsdmg5whuFaNocZf7QAYO3gBhYOJZopRoPdRcLnxYLa5wQnHmcQdcIhgqC NSWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=K18szZSg2w+mk2e/fa/9iCU5MzTgFeikOfJQgGvkMdY=; fh=ifHCnIRFjf+vwdwy+/MF8h40VG9dA/DNvgtirK9DEI4=; b=YWgpKtBW3ObmdDPHR/RFbJy7L/uacT9FL16jBvebE+VnGhwgUeoq0HCrWAWTSCnFg5 4rh79uMG79mN2mUtrjsTmWxOKvbsLfzHARM/wXjhMNa8zBq/GOGttnSEH9JIxKT2LZlN 2iCfslioTV6spauq1uL7AWbqWGF5S9mqdLICO69ZDYNzPGeMibfOHs1H42wUlycHmcnL I7mEByj56ONaYv4fycV99JPXRV2k+9b31aYZB+dkdnRGf/OgoG84Xf82o0+WNUHXvfSO awCAUu/CKmpsm+9j48ZFO87EGyphMpVW8Rod+tNuiaxcTbVRRDKci8g+qj19WseAO6D4 77Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yl4wcWYp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id b8-20020a056a000a8800b006901387b09bsi23828699pfl.344.2023.10.16.05.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 05:42:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yl4wcWYp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9337C80A44E5; Mon, 16 Oct 2023 05:42:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233390AbjJPMm0 (ORCPT + 99 others); Mon, 16 Oct 2023 08:42:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233134AbjJPMmY (ORCPT ); Mon, 16 Oct 2023 08:42:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C5CFA2; Mon, 16 Oct 2023 05:42:23 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 080E7C433C7; Mon, 16 Oct 2023 12:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697460142; bh=fxutcQlYAmEEzHYBSdkxdZPz6z6pMleu2JvtcW3RJA0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Yl4wcWYpL3U3in8V1PbNCTRa5+IEntDWd90AVEb+rz8vGP83frH+Go1R/D5NUKGkt ULrnZuVx7hXL4mrwbLHDBfqvlBMV9sGNVM91204moqgTOFxcaxoHcpqTU1f+6Ab7Z/ LFq7/Q8qcrSbkMF+8+v/W/TpmEKD5uL7VcuBLyVuEu54HpRmEXmMEXLBDniwNv5vK7 +nd4wOL1kjtsQh6FTxVwT6SyCPFkg5YXLDlUURJzDpV2tfVvJ1XRF8DRE3LffIQVSX 8Q/Uz9fAEY9UNyvBSaWk/APgvqpQ1erXxraUhheFRLM3CvF8wsP5EgolpOU3F0GhBm dkV0FtlSRxHNg== Message-ID: <8a1c19dc-0a4f-4079-b2df-704ae647b1f8@kernel.org> Date: Mon, 16 Oct 2023 14:42:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5] scripts/link-vmlinux.sh: Add alias to duplicate symbols for kallsyms Content-Language: en-US, pt-BR, it-IT To: Petr Mladek , Alessandro Carminati Cc: Kris Van Hees , Masami Hiramatsu , Steven Rostedt , Josh Poimboeuf , Masahiro Yamada , Luis Chamberlain , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Alexander Lobakin , Nick Alcock , Eugene Loh , Francis Laniel , Viktor Malik , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org References: <20230927173516.1456594-1-alessandro.carminati@gmail.com> From: Daniel Bristot de Oliveira In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 16 Oct 2023 05:42:35 -0700 (PDT) >> In any case, as you've pointed out, duplicates can arise from names in code >> that is not intended to be a module. >> Therefore, relying solely on the module name would not fully address the >> problem you initially aimed to solve. > > From my POV: > > The source path and the line number is enough to distinguish duplicate > symbols even in modules. > > The added module name would just add extra complexity into the kernel > and tools parsing and using the alias. The tracing tools would need to > handle the source path and line number anyway for symbols duplicated > within same module/vmlinux. > > Adding module name for builtin modules might be misleading. It won't > be clear which symbols are in vmlinux binary and which are in > real modules. +1 -- Daniel