Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp789839pxv; Thu, 24 Jun 2021 21:09:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk4Q50odVfnyHFoOtxsjdUxX9Ryyv6cByqJGqzP4Xmu/6Ol/ddUx4NWzCYFzAyT/JE8OCo X-Received: by 2002:a50:ef1a:: with SMTP id m26mr7684035eds.269.1624594179859; Thu, 24 Jun 2021 21:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624594179; cv=none; d=google.com; s=arc-20160816; b=tXRHaLE+GZz7vWKdSPOFXhAI3yLfJ2heS/I3r+zwTHb/wfchlCG2/2xDfb9ooQGGmw 86COWzQ7IhZT83C2uxl+c0FnZh7XxENUXPFn2qoqPhSD2APNhvZuesldCBcnhxm42e8I F8Bit93DREi5rCXXwgv0B51X53Jjr2+PKXGaN0LRin2J+L88Rsb7ps4+silsp84Llz7I a2K0HS9EzA/r3rJJuoNqobe6Wq26Em+HR6X6nEGH0K6Vl4woyZicu78EKO5PTojPbH45 W4PoWcDsb4oL9FGzjjCC8DqtcnoyiY9HDDNvUQTh9PpoDOL3rXGeyCh+RgNvgXqoaAZy npkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Wtb2ef1+Onk4FkYj1WTTNjN9qcUMzBKmdDiK41PBwCo=; b=xiuGij7coj7+7D3q6PAZty4uLfT20F+zMk0n75m02zopKH8HSx0gwF8vrmNgJhZyuZ +JwSqE1xflD1DHHZHEK+xDQx90FdbVKKPx/jnU14ziMJK9HgODtJ669XhK0w40p+fm/h XgsgSrxcE1MFjLXHe+IXpQ3/YXB3L6e7F1GhroQ1KehOVqQF/aLKPsqUgjFDhTGLsr8I StXQSkdXrN+UofRpE5TfsnSSt7rNV+UlGaahp1saCFbfXsQCcc32wWwejA7jpoIJijBB reybnfjZa2dxgNfsr5AAVYF1URTqaRXoLdHhO4WA1smerVK0p1Aqt2rfWzUHvQEafYn+ GSgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=P5ZQzzEt; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si5584832ejj.523.2021.06.24.21.09.16; Thu, 24 Jun 2021 21:09:39 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=P5ZQzzEt; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbhFYEKg (ORCPT + 99 others); Fri, 25 Jun 2021 00:10:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbhFYEKg (ORCPT ); Fri, 25 Jun 2021 00:10:36 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 552CBC061574 for ; Thu, 24 Jun 2021 21:08:15 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id g7so4419378wri.7 for ; Thu, 24 Jun 2021 21:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Wtb2ef1+Onk4FkYj1WTTNjN9qcUMzBKmdDiK41PBwCo=; b=P5ZQzzEtVw32Z7+DdWiYMF9W3ByIMIzM/WNQjjiNvFtNfBECqKgHgrKsuB77VF+vQm KrrG+5fMzjNHLvVs54Hi6R2MLmoky8ex8xOYcUT30gFcc999JVt+iKCFgwGlw3ptwQWV 6wSFWfBP7ycBNvDZmhfN8CekUAVsf2SVHGiCu19QcRQGIbpFgL/Ml4ZdwFb8W7nugqnw UIQ/MfwBwmNQGZfdluQeCWzG+OvybfssXsvWT8TXIJsaJXI2xaq90uW/ww1OufxTmDRs KUYEUevD3JrB341dc4U6AuxtN6SSavtiOZxfnAiV3GK5w6aYTI0Vb/qr7ihGSKjRR03O OrGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wtb2ef1+Onk4FkYj1WTTNjN9qcUMzBKmdDiK41PBwCo=; b=lCujjWB+BcxjqHkjlzkTAU0L7TSs/opi5+/au7waOrSvJwu3wwJk5nuoi+Zla0XSRE xpuJOygSRVKbf8zPqTTLh35Bd7qLsnzQ4M2tTR7AlufmaTzfYvVkAPfeAf5EkbxkgJx1 KEBk6kDf6d4HhtCYWguqGiwo4vwOUqpeNsY4yj8GRp0GgogcbJsWWAi5FrpO+z5liBXa UVk+LAFHNsVsnYtal8UN7aGlzLvK4h7PhBZFRjzcPH5QQWWG5Z49qenuubsrK5aIc3zm zhtA8aF3b6oBgMUQDEHgLkMyrxpzM+u+mQ1Ql1IVZ5f8KGvtwzqN1odKu9DdMUajM5Cz eoiw== X-Gm-Message-State: AOAM533nxg4tGXbBeZmXzGVEquIK7zC5XifkwcKHl9KbdhcUS4MLAZiS 7spUw57C6AE6ihXgwb0T3gNUmf9Wkccnrv0oIa7KTQ== X-Received: by 2002:a5d:480e:: with SMTP id l14mr8651762wrq.33.1624594093763; Thu, 24 Jun 2021 21:08:13 -0700 (PDT) MIME-Version: 1.0 References: <20210623201721.980348-1-dlatypov@google.com> In-Reply-To: <20210623201721.980348-1-dlatypov@google.com> From: David Gow Date: Fri, 25 Jun 2021 12:08:02 +0800 Message-ID: Subject: Re: [PATCH] Documentation: kunit: drop obsolete note about uml_abort for coverage To: Daniel Latypov Cc: Brendan Higgins , Linux Kernel Mailing List , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Shuah Khan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 24, 2021 at 4:17 AM Daniel Latypov wrote: > > Commit b6d5799b0b58 ("kunit: Add 'kunit_shutdown' option") changes KUnit > to call kernel_halt() by default when done testing. > > This fixes the issue with not having .gcda files due to not calling > atexit() handlers, and therefore we can stop recommending people > manually tweak UML code. > > The need to use older versions of GCC (<=6) remains however, due to > linktime issues, same as before. Note: There also might still be issues > with .gcda files as well in newer versions. > > Signed-off-by: Daniel Latypov > --- This looks good to me, thanks! Now if only we could fix the issues with newer gcc versions... Reviewed-by: David Gow -- David > Documentation/dev-tools/kunit/running_tips.rst | 14 +------------- > 1 file changed, 1 insertion(+), 13 deletions(-) > > diff --git a/Documentation/dev-tools/kunit/running_tips.rst b/Documentation/dev-tools/kunit/running_tips.rst > index 7d99386cf94a..d1626d548fa5 100644 > --- a/Documentation/dev-tools/kunit/running_tips.rst > +++ b/Documentation/dev-tools/kunit/running_tips.rst > @@ -86,19 +86,7 @@ Generating code coverage reports under UML > .. note:: > TODO(brendanhiggins@google.com): There are various issues with UML and > versions of gcc 7 and up. You're likely to run into missing ``.gcda`` > - files or compile errors. We know one `faulty GCC commit > - `_ > - but not how we'd go about getting this fixed. The compile errors still > - need some investigation. > - > -.. note:: > - TODO(brendanhiggins@google.com): for recent versions of Linux > - (5.10-5.12, maybe earlier), there's a bug with gcov counters not being > - flushed in UML. This translates to very low (<1%) reported coverage. This is > - related to the above issue and can be worked around by replacing the > - one call to ``uml_abort()`` (it's in ``os_dump_core()``) with a plain > - ``exit()``. > - > + files or compile errors. > > This is different from the "normal" way of getting coverage information that is > documented in Documentation/dev-tools/gcov.rst. > > base-commit: 87c9c16317882dd6dbbc07e349bc3223e14f3244 > -- > 2.32.0.93.g670b81a890-goog >