Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp874725ybx; Wed, 6 Nov 2019 09:40:13 -0800 (PST) X-Google-Smtp-Source: APXvYqwnzDt+miF6HLr5mnlKl72NMHy2A8Fl4APUpxG5n/v2SYJJYGJqOsw/R4MXHdGWeZLtYJfc X-Received: by 2002:a17:906:4cd2:: with SMTP id q18mr35011859ejt.319.1573062013014; Wed, 06 Nov 2019 09:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573062013; cv=none; d=google.com; s=arc-20160816; b=u83uPEqT37jz4E02qLyzpvuPJILTF6BYpdBc6e9Kqyyggyw5hjkGQUo7jMywZcmbdo XoZcG5cyGPZayviyfKdY+HIJfBv+i1FQLfvt64ZnZIB4fTEL1UjNov7YD36DDwRNemSV Ilu68YeQ0KrDrIVHmlJ3IGvIpX5DncRVZoiAkHGvqodMFzm1lI0dTqR06D48WYcmbl2f rZH0XtVtRfZU/Z5bvq5Mi+H/Wjo1wa4mMdmcR5r1quM6XjcB/eL5l5L+qYYBX1piRHua Ft8wm4CHhXXVH3QGr+WPzwLQbjdaXWh6EotxW2IWQzSNJDbDmBjFcbvpqaac3lFrVjB5 +F8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=kNp6br3CMNL6AqzFdjI/wNXbwG1GAMDPkjZI43sjMlA=; b=Vkd6GAgItuUlpnhLAVlNo+tupB+Jq1ddZuOunO57usYHfFuLc0s8NqHr5ozXAMIe/L JpfxUKxfLAcJwxG36GVmY7XGCm4idWFwt8HFdWtNVO+xDQ422uiUvlQbhAYzderHFQmB 89CdQ63QDbWYIvawwHLcWaVNUTErX7NBu/B6MYMN9cHwcdeTu5xfQC14rnAn/ZkyDnR7 TkrVKkJ323LWkTT1r4ti3nM5nfYhgOPRnEIlO//WyuWysa6OnlapOK751o0ia55xWqLM Pv9aaLSRpRtgUD1o9w0zQAtC/LUMUxcRQOHXmcQj1swR0oj4EFVDqULcHHEFple/1Fn2 j9vw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h21si12931277edh.110.2019.11.06.09.39.48; Wed, 06 Nov 2019 09:40:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732367AbfKFRi6 (ORCPT + 99 others); Wed, 6 Nov 2019 12:38:58 -0500 Received: from mail.ispras.ru ([83.149.199.45]:56718 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732141AbfKFRi6 (ORCPT ); Wed, 6 Nov 2019 12:38:58 -0500 X-Greylist: delayed 557 seconds by postgrey-1.27 at vger.kernel.org; Wed, 06 Nov 2019 12:38:57 EST Received: from hednb3.intra.ispras.ru (pluton2.ispras.ru [83.149.199.44]) by mail.ispras.ru (Postfix) with ESMTPSA id F2F8754006B; Wed, 6 Nov 2019 20:29:38 +0300 (MSK) From: Alexey Khoroshilov To: Ralf Baechle , Paul Burton , James Hogan Cc: Alexey Khoroshilov , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: allow building with kcov coverage Date: Wed, 6 Nov 2019 20:28:42 +0300 Message-Id: <1573061322-455-1-git-send-email-khoroshilov@ispras.ru> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add ARCH_HAS_KCOV and HAVE_GCC_PLUGINS to MIPS config. Disable instrumentation of vdso to avoid build failure. Signed-off-by: Alexey Khoroshilov --- arch/mips/Kconfig | 2 ++ arch/mips/vdso/Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 7cb8947..2ae1e6d 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -87,6 +87,8 @@ config MIPS select SYSCTL_EXCEPTION_TRACE select VIRT_TO_BUS select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI) + select ARCH_HAS_KCOV + select HAVE_GCC_PLUGINS menu "Machine selection" diff --git a/arch/mips/vdso/Makefile b/arch/mips/vdso/Makefile index 996a934..e059389 100644 --- a/arch/mips/vdso/Makefile +++ b/arch/mips/vdso/Makefile @@ -75,6 +75,7 @@ CFLAGS_REMOVE_vdso.o = -pg GCOV_PROFILE := n UBSAN_SANITIZE := n +KCOV_INSTRUMENT := n # # Shared build commands. -- 2.7.4