author: Sebastian Andrzej Siewior <bigeasy@linutronix.de> 2021-08-30 19:26:24 +0200
committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:39 +0800
commit: 662f0e0aa2c01c8bf014dc324cff1af7fb41fa88
parent: f5b6f89209a1ef108293f9af76a6f3f9620e45b0
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/Documentation/dev-tools/kcov.rst b/Documentation/dev-tools/kcov.rst
index 347f3b6de8d4..d83c9ab49427 100644
--- a/Documentation/dev-tools/kcov.rst
+++ b/Documentation/dev-tools/kcov.rst
@@ -178,6 +178,8 @@ Comparison operands collection is similar to coverage collection:
/* Read number of comparisons collected. */
n = __atomic_load_n(&cover[0], __ATOMIC_RELAXED);
for (i = 0; i < n; i++) {
+ uint64_t ip;
+
type = cover[i * KCOV_WORDS_PER_CMP + 1];
/* arg1 and arg2 - operands of the comparison. */
arg1 = cover[i * KCOV_WORDS_PER_CMP + 2];