From nobody Thu Apr 07 14:38:48 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3DAA71A81325; Thu, 7 Apr 2022 14:38:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZ3sh6WLKz4rVg; Thu, 7 Apr 2022 14:38:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649342329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N/6Xf3hAWcImDi/xW5/3c01R8rm9s9wa/CTW+kHjHJg=; b=PWgcvcdSCLer61NbfF5TVzlZsgUqSRb1N7kFivGcx6iP+EmJwS11VOMVsLLUi0mz7Rn1mF ZP5q1Kl1RQxA04U3fRIqmHgutgRXNEX9m6gVfNZszkqUoQiBzk/wFrRghD/1AoXJSO7N3A bb6evnOg4N10uZSuJiT7tImnZ1oWwbkgStL3KNwnMEruNrtiOXZM6+y7QVTFZyU/ju5f6I N1NbLWltJrepf2VzIfWVIpj6Z3VTk/4+QTOaRZDWgonrg731Z5IgjYFtnMlP0xjEosB63G lAxdfhJzO1v3OGpNvihuu+JKAN6kUOa0PEGXdm0L9RVUKCku8rVi1kN44W0N8A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AEB5012034; Thu, 7 Apr 2022 14:38:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 237Ecm9N012710; Thu, 7 Apr 2022 14:38:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 237Ecm5q012709; Thu, 7 Apr 2022 14:38:48 GMT (envelope-from git) Date: Thu, 7 Apr 2022 14:38:48 GMT Message-Id: <202204071438.237Ecm5q012709@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 1b7d882f005f - main - Enable the kcov tests on supported architectures List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1b7d882f005ff472808201e7f3b0771d5c032ce9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649342329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N/6Xf3hAWcImDi/xW5/3c01R8rm9s9wa/CTW+kHjHJg=; b=qxV+O21wADyZpH0+xr5dPtPKiLvRkRQQ1+szPBrKd9p4Z+QFEmf/ci/O4ypFx/7HxPUhbm p1X8xPVmzvgBnv9iKUdCPOytJmINJ5zEVIqVUSQg0daoHPOQEcg/id3Vdq2kkja7dEK0Ki TEL+5lAVBzj9OUGXgvqZXS8G2tMjQskjRx6Dbmy08Flp2OET6oHXv3AAvvDsZVOE9akgNM x/bKNpc2bzuvQZHpqlcqApt9s9mCb9XZrNnKLBeeramUBNCMblHu0PxbZL4vVcvKwP7pIh XgpZHy48Oa29hNEwfo7ZhXPc6z2jhe/m3BsfYf2rfiLDI1vlDbk0cJiTTinDVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649342329; a=rsa-sha256; cv=none; b=Tq4BGq7Wi0XOc40HoBofbQbJ8vdozcFAvzNmosWOi5Us6LyP+J6BX6AXBVeV85lebqBEEx JyrhQ/rFlMgh5yMew7dqUnBtMKqeh7j5DhSQTo8I60ov2Pw1jtl2/Dl4TKJBkcAE2NTaiC 3DaZAj1Iwmq/h29lKRBg4fhgRlO++qrAiaWBETLCOuCUleFOriyC+QuOJDTkpiOxprzDqe I+07maz3hkHTX0PzqSP1Xj2euuuAPLjinH40rdG8/ye/d3/h3x16Xso3oPYwRbFdAxUpX4 fl7s6ZwJRq1HgIZ5pPt9g7Ree9SyjgRaEUzP+mYBYqdF9ityPYahXxaWvPChGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=1b7d882f005ff472808201e7f3b0771d5c032ce9 commit 1b7d882f005ff472808201e7f3b0771d5c032ce9 Author: Andrew Turner AuthorDate: 2022-04-07 13:31:32 +0000 Commit: Andrew Turner CommitDate: 2022-04-07 13:31:51 +0000 Enable the kcov tests on supported architectures i386 and 32-bit powerpc lack support for the needed atomic operations in userspace. Sponsored by: The FreeBSD Foundation --- tests/sys/kern/Makefile | 5 ++++- tests/sys/kern/kcov.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/sys/kern/Makefile b/tests/sys/kern/Makefile index e674329f77b1..0a422f42cdd3 100644 --- a/tests/sys/kern/Makefile +++ b/tests/sys/kern/Makefile @@ -10,7 +10,10 @@ TESTSRC= ${SRCTOP}/contrib/netbsd-tests/kernel TESTSDIR= ${TESTSBASE}/sys/kern ATF_TESTS_C+= basic_signal -#ATF_TESTS_C+= kcov +.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "powerpc" +# No support for atomic_load_64 on i386 or (32-bit) powerpc +ATF_TESTS_C+= kcov +.endif ATF_TESTS_C+= kern_copyin ATF_TESTS_C+= kern_descrip_test ATF_TESTS_C+= fdgrowtable_test diff --git a/tests/sys/kern/kcov.c b/tests/sys/kern/kcov.c index 0a59ddbeff73..a8a43faf2d15 100644 --- a/tests/sys/kern/kcov.c +++ b/tests/sys/kern/kcov.c @@ -340,7 +340,7 @@ ATF_TC_BODY(kcov_thread_cmp, tc) } struct multi_thread_data { - char *buf; + uint64_t *buf; int fd; u_int mode; int thread;