From: Dmitry Vyukov <dvyukov@google.com>
To: akpm@linux-foundation.org, keescook@google.com, corbet@lwn.net
Cc: Dmitry Vyukov <dvyukov@google.com>,
Vegard Nossum <vegard.nossum@oracle.com>,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
syzkaller@googlegroups.com
Subject: [PATCH] Documentation: note that KCOV is supported since gcc 4.5
Date: Tue, 13 Dec 2016 16:20:59 +0100 [thread overview]
Message-ID: <1481642459-51193-1-git-send-email-dvyukov@google.com> (raw)
Now that we have gcc plugins and in particular sancov plugin,
KCOV can be used with gcc 4.5+. Note this in the docs.
I've tested CONFIG_KCOV with gcc 4.8.4 (stock for ubuntu 14.04)
and it works. It even emits very comparable number of coverage
callbacks: 420153 vs 422211 for gcc 7.0.
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Kees Cook <keescook@google.com>
Cc: Vegard Nossum <vegard.nossum@oracle.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Cc: syzkaller@googlegroups.com
Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
---
Documentation/dev-tools/kcov.rst | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/dev-tools/kcov.rst b/Documentation/dev-tools/kcov.rst
index 2c41b71..50d515a 100644
--- a/Documentation/dev-tools/kcov.rst
+++ b/Documentation/dev-tools/kcov.rst
@@ -19,7 +19,9 @@ Configure the kernel with::
CONFIG_KCOV=y
-CONFIG_KCOV requires gcc built on revision 231296 or later.
+CONFIG_KCOV is natively supported by gcc 6.0+ (revision 231296) via
+-fsanitize-coverage=trace-pc flag. gcc 4.5+ supports CONFIG_KCOV with plugins
+(see Documentation/gcc-plugins.txt and CONFIG_GCC_PLUGIN_SANCOV).
Profiling data will only become accessible once debugfs has been mounted::
mount -t debugfs none /sys/kernel/debug
--
2.8.0.rc3.226.g39d4020
next reply other threads:[~2016-12-13 15:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-13 15:20 Dmitry Vyukov [this message]
2016-12-13 23:43 ` [PATCH] Documentation: note that KCOV is supported since gcc 4.5 Jonathan Corbet
2017-06-28 7:49 ` Dmitry Vyukov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1481642459-51193-1-git-send-email-dvyukov@google.com \
--to=dvyukov@google.com \
--cc=akpm@linux-foundation.org \
--cc=corbet@lwn.net \
--cc=keescook@google.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=syzkaller@googlegroups.com \
--cc=vegard.nossum@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).