From patchwork Tue Dec 13 18:03:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 32907 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp278485wrn; Tue, 13 Dec 2022 10:06:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ghHw/Dtnp71TmoyxVg8pBe+yOJD7JBCCj4VyfnwMJLrhF4F0nv9jj2pJbT8JqWJLEOTTv X-Received: by 2002:a05:6402:17d7:b0:46c:bdf6:db5b with SMTP id s23-20020a05640217d700b0046cbdf6db5bmr18254077edy.33.1670954794954; Tue, 13 Dec 2022 10:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670954794; cv=none; d=google.com; s=arc-20160816; b=Y6dHjwEf4XWs7nttCiS0TaxZHrN6+RRzCENV/mMvnz1fatm71FrCElhqfsfp6NxWvc 1LOx1pKEoOKOmyFTC739q52dnbwZasyJnL/tkm7YxVbHpxANbL5dzju95aA5iOfF4qIx XJ2SSzxZlX+PwM2yvfgWd6A3Iu+Rn+EnkijVG6JoYuZ5mC2Kj/iDczG9p8pGqEy/qtJN CwLSqSsDG+M4R+nPn6P2ooLdKfh3iASrpMSt5aaZYTQxslt3GYA3C0c3CYUc0p6kyTWG NHYLSh1aUw3/t7OM+WDRgxv0uMG8TH6k+nhbvDeDG1f4t/Nb0AnjDGLUZC38oeAZoYeP XJPg== 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 :message-id:date:subject:cc:to:from; bh=uWjyDPrgLHzeSOHnoP5hsPx6AEyyUl1pzDp3pv9K33M=; b=zzqs50X/Ms15EDutoRnmY3SVEqRMB90SMOOtO5+jHvqB9p035MnmtUkFCtaJYVfFch w3K+cuZUC+jBEBee0tCno6LjW1Rz64kZu5kCew/SAcerdq/IYgLhHsJCCi4z96y8YfLC ccClfmHxZdE9CT1FC0DP7lWxM2RPT64vvauBMhi+VW1FUrO3guPE2etU32ynIAJvtRsA vKeRX+USwVapIHbn/OztzHtiToO6GwneEirUJWLKAL3IoQiCWGqpXu7lhjNZ8itR71A+ v24o4fBtBWWwwPgTdSw0rLxd0LLfI7R9sgy6cTCWUTHp0VdIUxXFE8EXAPVu/5JzBbL7 5jyQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=csgroup.eu Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a056402078b00b0046b16afc438si8767682edy.323.2022.12.13.10.06.11; Tue, 13 Dec 2022 10:06:34 -0800 (PST) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=csgroup.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230061AbiLMSDn (ORCPT + 99 others); Tue, 13 Dec 2022 13:03:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235365AbiLMSDm (ORCPT ); Tue, 13 Dec 2022 13:03:42 -0500 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7082520352; Tue, 13 Dec 2022 10:03:40 -0800 (PST) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4NWmZf5rWVz9smn; Tue, 13 Dec 2022 19:03:38 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UCqxqYXXsQ8T; Tue, 13 Dec 2022 19:03:38 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4NWmZf4ybRz9smJ; Tue, 13 Dec 2022 19:03:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 998358B773; Tue, 13 Dec 2022 19:03:38 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id U_aiRmb3iWhf; Tue, 13 Dec 2022 19:03:38 +0100 (CET) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.7.67]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 5EEE98B766; Tue, 13 Dec 2022 19:03:38 +0100 (CET) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 2BDI3NBF737221 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 19:03:23 +0100 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 2BDI3LhP737213; Tue, 13 Dec 2022 19:03:21 +0100 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: gregkh@linuxfoundation.org, stable@vger.kernel.org Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Ben Hutchings , Salvatore Bonaccorso , Steven Rostedt , linux-trace-devel@vger.kernel.org, Arnaldo Carvalho de Melo Subject: [PATCH] [BACKPORT FOR 4.14] libtraceevent: Fix build with binutils 2.35 Date: Tue, 13 Dec 2022 19:03:07 +0100 Message-Id: X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1670954585; l=1329; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=S7mrLyJvmUixcNAmwGFNK/txVTz4era2R9aIZnLMX2Y=; b=/7rRXy1Mh+5nF/pPOHuSwoiroRaCdraCGJQld2g8Ep1FH0UJXy92iMLkftOIuueBuB6hbY+h8pY8 nA3glJxhDvKjfUqzznkqivLGN+x/vFel/1wSLkc0SIdwNFRFDL22 X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752123094627409452?= X-GMAIL-MSGID: =?utf-8?q?1752123094627409452?= From: Ben Hutchings [upstream commit 39efdd94e314336f4acbac4c07e0f37bdc3bef71] In binutils 2.35, 'nm -D' changed to show symbol versions along with symbol names, with the usual @@ separator. When generating libtraceevent-dynamic-list we need just the names, so strip off the version suffix if present. Signed-off-by: Ben Hutchings Tested-by: Salvatore Bonaccorso Reviewed-by: Steven Rostedt Cc: linux-trace-devel@vger.kernel.org Cc: stable@vger.kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Christophe Leroy --- tools/lib/traceevent/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index a0ac01c647f5..2d6989f8a87c 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile @@ -263,7 +263,7 @@ define do_generate_dynamic_list_file xargs echo "U w W" | tr 'w ' 'W\n' | sort -u | xargs echo`;\ if [ "$$symbol_type" = "U W" ];then \ (echo '{'; \ - $(NM) -u -D $1 | awk 'NF>1 {print "\t"$$2";"}' | sort -u;\ + $(NM) -u -D $1 | awk 'NF>1 {sub("@.*", "", $$2); print "\t"$$2";"}' | sort -u;\ echo '};'; \ ) > $2; \ else \