From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753287AbcFOLpG (ORCPT ); Wed, 15 Jun 2016 07:45:06 -0400 Received: from foss.arm.com ([217.140.101.70]:36802 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752685AbcFOLpC (ORCPT ); Wed, 15 Jun 2016 07:45:02 -0400 Date: Wed, 15 Jun 2016 12:44:39 +0100 From: Mark Rutland To: Alexander Potapenko Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , marc.zyngier@arm.com, Catalin Marinas , Will Deacon , LKML , Quentin Casasnovas , Kostya Serebryany , syzkaller , Christoffer Dall , Andrew Morton , Dmitriy Vyukov Subject: Re: [PATCH v2] arm64: allow building with kcov coverage on ARM64 Message-ID: <20160615114438.GC3984@leverpostej> References: <1465923441-107596-1-git-send-email-glider@google.com> <20160614175543.GA2468@leverpostej> <20160615092509.GA3984@leverpostej> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160615092509.GA3984@leverpostej> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 15, 2016 at 10:25:10AM +0100, Mark Rutland wrote: > On Tue, Jun 14, 2016 at 08:16:08PM +0200, Alexander Potapenko wrote: > > On Tue, Jun 14, 2016 at 7:55 PM, Mark Rutland wrote: > > > I built and booted (via EFI) a kernel with this feature enabled (also > > > with the boot/Makefile change removed). I haven't tested the feature > > > itself as such, as I'm not sure how to do that. > > You can test it by running the test program from Documentation/kcov.txt. > > Ah, I hadn't spotted that. If I get the chance I'll try to give that a > go. I just had a go (with this applied atop of v4.7-rc3), and I get: root@ribbensteg:/home/nanook# ./kcov mmap: No such device The device exists (it was able to open the fd, evidently): root@ribbensteg:/home/nanook# ls -al /sys/kernel/debug/kcov -rw------- 1 root root 0 Jan 1 1970 /sys/kernel/debug/kcov Strace show me: openat(AT_FDCWD, "/sys/kernel/debug/kcov", O_RDWR) = 3 ioctl(3, CHIOMOVE or CM_IOCGATR, 0x10000) = 0 mmap(NULL, 524288, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = -1 ENODEV (No such device) It doesn't look like the error paths in kcov_mmap are hitting. Any ideas? Thanks, Mark.