Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp118515iof; Sun, 5 Jun 2022 22:56:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbS6UsLz10SccBSEEXHQSSdGPVYQYvEfnCoQX0nbB22D/PwoYszL874DE2CLl6vBfxpIAn X-Received: by 2002:a63:8541:0:b0:3fd:241d:6596 with SMTP id u62-20020a638541000000b003fd241d6596mr13774768pgd.211.1654494963238; Sun, 05 Jun 2022 22:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654494963; cv=none; d=google.com; s=arc-20160816; b=DztgKTUFMC2FruClDfGPwzsE91hu2z0rEwb28iWeGOG96wqbtaTLOCw4e52bUwdJAy yMuL04CRv7rc1y3/FJu+xLt3JLWaCx+/Z/ge47AS4O6ssMpqr1ByruxvGDV7hVHrfCu4 xNpPHMwbQWbUN34RuEwqJfmR5LDD2bTtYz5prNNeKSVk3b/eeE+T5ZDtD6iNaK19XnPh nsITiwpDfYvrPbNEN3bTorOO1xurH0eCW3DetQ9NrLfcg35kOssPLvtlI+Owu42Qmh/j 4+kGUz8Np26Zgi7EK8Zt+Wxh/xm69OKyNqEdkPjkaIOH4GlTBb46Cs2yoZqNP7LjHF/6 kPIw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aNtpZMpmhzzigHJWogRhGrnjd9keOwjSic3XnS7CKFQ=; b=rQhcoculcazjhpqysnebqaVZj27uAmv4GuZoNMwMlGLzYwf+o5LzxJA6heshwVb9Lz h1HmflLdxnwPUHIMbAnbEi/1P+3K3+jmqN0WWL+80nt7/hpUSCmBvxZuxVtdxAZ2JASD liRIwL5i42YPzkS4hKr5opoVVBAVG6wNdw3G/NpiMltr1G8IDlOeoew5zh97cCSarsfC +X02ZNSNB8zHn58Op3V4tejM5DgkRajo37jmv5frwPeaN6O8srspfd/FY58Ue+JZv2Ur Q1sa2hD4HO4xcDhQATp6ObRTFn7GLyj1GuYrsLhzPDHk0u6T7futI8/G4rc+9gk00FF0 zILA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1PAs3IzB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p13-20020a056a000b4d00b0051bf9950f37si2130474pfo.103.2022.06.05.22.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:56:03 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1PAs3IzB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AF7552D4708; Sun, 5 Jun 2022 21:44:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344846AbiFCRnl (ORCPT + 99 others); Fri, 3 Jun 2022 13:43:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344979AbiFCRnD (ORCPT ); Fri, 3 Jun 2022 13:43:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FEED9FF0; Fri, 3 Jun 2022 10:41:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3BDC3B82430; Fri, 3 Jun 2022 17:41:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3DACC385A9; Fri, 3 Jun 2022 17:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278110; bh=A588RVeDhK4NjzENZtV/3VQJOtZ/Cs2rL2WkvM7y+xQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1PAs3IzBoEoYu9tMcNX7Sy4In/1krj+3JA1jLl7MvyamURsMwCc8TO1HleQ+Yp3ZX M4qZPMizDMmCjqQbJABsOGWEzn8uqayxfAiJQJXC7OizHWVHdp5oqz43HMIPMhv0gR tiW7bh9QPASpuQ+dzgKgntQPMh25mEfKp4dcIsk0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Hutchings , Salvatore Bonaccorso , Steven Rostedt , linux-trace-devel@vger.kernel.org, Arnaldo Carvalho de Melo , =?UTF-8?q?Daniel=20D=C3=ADaz?= Subject: [PATCH 4.19 13/30] libtraceevent: Fix build with binutils 2.35 Date: Fri, 3 Jun 2022 19:39:41 +0200 Message-Id: <20220603173815.484246154@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173815.088143764@linuxfoundation.org> References: <20220603173815.088143764@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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: Daniel Díaz Signed-off-by: Greg Kroah-Hartman --- tools/lib/traceevent/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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 \