Received: by mail.netbsd.org (Postfix, from userid 605) id 70BF984FC4; Mon, 25 Feb 2019 05:44:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E136E84FF7 for ; Mon, 25 Feb 2019 05:44:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 3mzB8U1e8hnK for ; Mon, 25 Feb 2019 05:44:49 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 6615F84FC4 for ; Sun, 24 Feb 2019 21:14:43 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 61220FB16; Sun, 24 Feb 2019 21:14:43 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 24 Feb 2019 21:14:43 +0000 From: "Kamil Rytarowski" Subject: CVS commit: src To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20190224211443.61220FB16@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Kamil Rytarowski" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: kamil Date: Sun Feb 24 21:14:43 UTC 2019 Modified Files: src/sys/sys: kcov.h src/tests/modules: t_kcov.c Log Message: Add KCOV_LOAD() and KCOV_STORE() - new helper macros New macros prefer 64-bit atomic operations whenever accessible. As a fallback they use volatile move operations that are not known to have negative effect in KCOV even if interrupted in the middle of operation. Enable kcov_basic and kcov_thread tests on targets without __HAVE_ATOMIC64_OPS. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/sys/kcov.h cvs rdiff -u -r1.2 -r1.3 src/tests/modules/t_kcov.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.