Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3753679pxf; Mon, 22 Mar 2021 14:16:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwblzg8JzFSjuQMKrMf4Yb0UUpU+By27c6U0LDf9x4+ZvVFTJErK9e/rLmv607uL3+H2BfP X-Received: by 2002:aa7:dc0b:: with SMTP id b11mr1617410edu.124.1616447783707; Mon, 22 Mar 2021 14:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616447783; cv=none; d=google.com; s=arc-20160816; b=IakiV1lWCaU1n+p1pPP77aky5tiULcPy3/SfcrUttj8iy4j8k49UPSooR1GRovjnUt XH9yEkuMDGe7ICi7p5v4Dgfs9+oWLECoFoBoFVkFZgFPAyq7b1O6b0h3KoGr21RdkGtD oq3XHFaZTrF8X3gNT0ac19GwkKxwpE1CIngycq2QcAnqPSR439uZh77Ejt7lmMCvFzRo qSrKHT1zv8JFGhp5FJdavcjXUoFC0cUWI0vhG0kdTN0ZwsXtVdmOSzTySc0uXR+KY48t +fv/RhtsPkFT7gyD4mNGKVxfnRHsynC/dpqCoco3NQuAn4171m0xc7hrrt+onwO7b1UA s7OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=+KrRzh5xmraTlZE7Njs3hlaa7m+E5z8AfQskFmxJcRw=; b=tHL/bYBv/fw4O0XzFOxoTdroWJK+cLMcJBcxyTZFv6KuH14S2qHkvYKgGiUerdMDG2 dNTYvhvQ6WILGtxIZnmRSV8YBg1n44opq/lu0m15mdCSNDRYMbjNwyK+kiQtN+lRYNFp zSyeM7Fbr8D3tWY46LaRowxsiSN3aqEgoovHtwWOKFzwMqLIgABOC8gymnd2EJd5KFGd /IQFI7jcTC8LYhafcQHIRJCXUhc+CCBau5Dm8gitNnz+lqwXelPJxLXNZznrtAUW8Qdg wnzNxuEuDT23vK0JsaivavpX10zTEeADWxdh7Iaqh0RgeMGsFWbC4WliotSsQOrJoJe6 ff2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alexander-lochmann.de header.s=key2 header.b=i614trfF; 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 ec23si12443432ejb.710.2021.03.22.14.15.59; Mon, 22 Mar 2021 14:16:23 -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=@alexander-lochmann.de header.s=key2 header.b=i614trfF; 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 S231160AbhCVVPB (ORCPT + 99 others); Mon, 22 Mar 2021 17:15:01 -0400 Received: from relay.yourmailgateway.de ([188.68.63.98]:36847 "EHLO relay.yourmailgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbhCVVOk (ORCPT ); Mon, 22 Mar 2021 17:14:40 -0400 Received: from mors-relay-2501.netcup.net (localhost [127.0.0.1]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4F46h71Xhqz6QSW; Mon, 22 Mar 2021 22:14:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alexander-lochmann.de; s=key2; t=1616447671; bh=m5Fh3iue/DEDYesjHqsKNJdSbpjrXQ6szUxSBhPjM8I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=i614trfF/AQwO29b+v98r9jkMgIAoaS7XhDJ/k/ujUn1+8p7T2T0aPxNC3A2nrwkW a4tTAqxhgd43PlWKq29inLcYbpy6N910S1QeWgRkcsauxsZn1vlH+RnwO/zFVzEGUV hE5lxzSvePfqerYjIDFwF0CKTMaOu5t6BqK/pghrKNFzA84ZuZ8J4JfcVrD+fairgr 8KPJS6ckAjljGOVrTOb8wge9hjK/ujn7YvHegx+8aXwA+DXLr1Q+UCb+WHKC9xtLqt 82KhLDxosZIxzdSja3cBc8qnNPaJ6ylCbUPDFBS/3oHFpkjx4IldNTHzXXHJeHSxMG eQT7Cc/PZ9YHA== Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4F46h7166Xz5DJR; Mon, 22 Mar 2021 22:14:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at policy01-mors.netcup.net X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from mx2e12.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy01-mors.netcup.net (Postfix) with ESMTPS id 4F46h441jQz8tGR; Mon, 22 Mar 2021 22:14:28 +0100 (CET) Received: from [IPv6:2003:ed:7f03:8df0:3b15:ded:17a1:3116] (p200300ed7f038df03b150ded17a13116.dip0.t-ipconnect.de [IPv6:2003:ed:7f03:8df0:3b15:ded:17a1:3116]) by mx2e12.netcup.net (Postfix) with ESMTPSA id 2364CA1AFC; Mon, 22 Mar 2021 22:14:27 +0100 (CET) Authentication-Results: mx2e12; spf=pass (sender IP is 2003:ed:7f03:8df0:3b15:ded:17a1:3116) smtp.mailfrom=info@alexander-lochmann.de smtp.helo=[IPv6:2003:ed:7f03:8df0:3b15:ded:17a1:3116] Received-SPF: pass (mx2e12: connection is authenticated) Subject: Re: [PATCH] Introduced new tracing mode KCOV_MODE_UNIQUE. To: Miguel Ojeda Cc: Dmitry Vyukov , Andrey Konovalov , Jonathan Corbet , Miguel Ojeda , Randy Dunlap , Andrew Klychkov , Greg Kroah-Hartman , Andrew Morton , Aleksandr Nogikh , Jakub Kicinski , Wei Yongjun , Maciej Grochowski , kasan-dev , Linux Doc Mailing List , linux-kernel References: <20210321184403.8833-1-info@alexander-lochmann.de> From: Alexander Lochmann Message-ID: <09e2b5a1-16ad-037a-88d2-6b29bc3fea6a@alexander-lochmann.de> Date: Mon, 22 Mar 2021 22:14:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-PPP-Message-ID: <161644766760.12995.11637851970269855327@mx2e12.netcup.net> X-PPP-Vhost: alexander-lochmann.de X-NC-CID: kW0vvfUiLZdNgXacqVw4qIspfyEOcREZsez+ffHhqAayMnL2gBkxpC7V Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.03.21 13:17, Miguel Ojeda wrote: > Hi Alexander, > > On Sun, Mar 21, 2021 at 8:14 PM Alexander Lochmann > wrote: >> >> diff --git a/Documentation/dev-tools/kcov.rst b/Documentation/dev-tools/kcov.rst >> index d2c4c27e1702..e105ffe6b6e3 100644 >> --- a/Documentation/dev-tools/kcov.rst >> +++ b/Documentation/dev-tools/kcov.rst >> @@ -127,6 +127,86 @@ That is, a parent process opens /sys/kernel/debug/kcov, enables trace mode, >> mmaps coverage buffer and then forks child processes in a loop. Child processes >> only need to enable coverage (disable happens automatically on thread end). >> >> +If someone is interested in a set of executed PCs, and does not care about >> +execution order, he or she can advise KCOV to do so: > > Please mention explicitly that KCOV_INIT_UNIQUE should be used for > that, i.e. readers of the example shouldn't need to read every line to > figure it out. > >> + #define KCOV_INIT_TRACE _IOR('c', 1, unsigned long) > > Trace is not used in the example. > >> + /* KCOV was initialized, but recording of unique PCs hasn't been chosen yet. */ >> + KCOV_MODE_INIT_UNQIUE = 2, > > Typo? It isn't used? It is a typo. It should be used... > > PS: not sure why I was Cc'd, but I hope that helps. Thx for your feedback. get_maintainer.pl told me to include you in Cc. Cheers, Alex > > Cheers, > Miguel > -- Alexander Lochmann PGP key: 0xBC3EF6FD Heiliger Weg 72 phone: +49.231.28053964 D-44141 Dortmund mobile: +49.151.15738323