Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp318848pxu; Fri, 4 Dec 2020 04:13:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnGV+98oyfNULXCAk7S71PzTnVPDTpxppENqkqoVPbm91IXd9Se1xpRTBDisykW9bpSht6 X-Received: by 2002:a17:906:adcb:: with SMTP id lb11mr4880090ejb.346.1607084027766; Fri, 04 Dec 2020 04:13:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607084027; cv=none; d=google.com; s=arc-20160816; b=TGkK4TLfnnVHhEdoiC7Ql2gq3qF3dwIPphGtodqjjmnZE3KSek3MzIEKdHsA90n/BZ QSOLtLDzXL1FrfQjbbKourAQVVlRaKafUiqfOxV3KIT/02SIUmEGhEBl+8nWh2nLc10v XZyiwGcWed2dJTkUam1RJCgwznD/NHQr0c6CBgEGjpEBdakk7Wh7AGYvxi1XgiZK1yhL qPcdFIB8QpyRlGyP4bte7fPHizOdvlfa9G+TJlk6n6/yduogaw+iI+6e9KPrFRPQuwDI PcavRT5QWrOuijuFHziNc1/6+FwSRE+eaiVUjQRWwQXOrab1nJUeoCtEPMEB9NeBs8N/ /7IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=JDqiQ9EzT0EsXHPCPJBHHPNcW03xJcoi7+nu4VZInVs=; b=NO46+cOPPs94FzayKE7dGlGWDQqjSuFQZFjYbqa1Z0KdaqC/WS8Kpmzkq8fU566DdI Clw4iJ8nDtk9jHqnPCbfGbDDjrT7ijmmzFEOe4mgjirFuX2yJlRGUmXAfqBSV2GMlIF/ uoe4QeKYDYljWMg7i24izkYLcOsUmLVIAxBU3m9Q7VYWDM5YTtudla84I2eZcEiu+Qpj QBNmqVenQBUSDLBjT4e3/A6dvAH2JmhhvwDlezpqA7RZt3mcd2tGYw7YDes5Fp0ohP69 estP7wPmlSeXU2HxKnL1mrzBvLBnMVkkzGGmiJ+87IF2aZV3JnzfuUgRqbxc1K43LiWI cZ3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id uz9si1227514ejb.386.2020.12.04.04.13.24; Fri, 04 Dec 2020 04:13:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730099AbgLDMKz (ORCPT + 99 others); Fri, 4 Dec 2020 07:10:55 -0500 Received: from elvis.franken.de ([193.175.24.41]:48097 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728306AbgLDMKy (ORCPT ); Fri, 4 Dec 2020 07:10:54 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kl9ud-0005Nb-04; Fri, 04 Dec 2020 13:10:11 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id EED0FC02E5; Fri, 4 Dec 2020 13:08:52 +0100 (CET) Date: Fri, 4 Dec 2020 13:08:52 +0100 From: Thomas Bogendoerfer To: Xingxing Su Cc: Youling Tang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: Enable GCOV Message-ID: <20201204120852.GE10011@alpha.franken.de> References: <1606980171-9536-1-git-send-email-suxingxing@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1606980171-9536-1-git-send-email-suxingxing@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 03, 2020 at 03:22:51PM +0800, Xingxing Su wrote: > Enable gcov profiling of the entire kernel on mips. Required changes > include disabling profiling for: > > * arch/kernel/boot/compressed: not linked to main kernel. > > Lightly tested on Loongson 3A3000 an 3A4000, seems to work as expected. > > without "GCOV_PROFILE := n" in compressed Makefile, > build errors as follows: > ... > ld: arch/mips/boot/compressed/string.o:(.data+0x88): > undefined reference to `__gcov_merge_add' > ld: arch/mips/boot/compressed/string.o: > in function `_GLOBAL__sub_I_00100_0_memcpy': > string.c:(.text.startup+0x4): undefined reference to `__gcov_init' > ld: arch/mips/boot/compressed/string.o: > in function `_GLOBAL__sub_D_00100_1_memcpy': > string.c:(.text.exit+0x0): undefined reference to `__gcov_exit' > ... > > Signed-off-by: Youling Tang > Signed-off-by: Xingxing Su > --- > arch/mips/Kconfig | 1 + > arch/mips/boot/compressed/Makefile | 1 + > 2 files changed, 2 insertions(+) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]