From owner-freebsd-hackers@freebsd.org Sat Jan 14 12:43:30 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2C733CAE365 for ; Sat, 14 Jan 2017 12:43:30 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 7825012E0 for ; Sat, 14 Jan 2017 12:43:29 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA24428; Sat, 14 Jan 2017 14:43:20 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1cSNg0-000L4n-J9; Sat, 14 Jan 2017 14:43:20 +0200 Subject: Re: tracing mmap'ed IO with dtrace To: Alexey Egorov , freebsd-hackers@FreeBSD.org References: <1484310020.407170115@f381.i.mail.ru> From: Andriy Gapon Message-ID: <3ba41915-49dd-6432-d1ea-8c5834ca12cc@FreeBSD.org> Date: Sat, 14 Jan 2017 14:42:23 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1484310020.407170115@f381.i.mail.ru> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2017 12:43:30 -0000 On 13/01/2017 14:20, Alexey Egorov via freebsd-hackers wrote: > Hello, > > I'm trying to use dtrace to trace filesystem IO, and it works great with ordinary read-write syscalls. > However, it doesn't catch mmap'ed IO. I understand that it is not possible to catch all memory accesses to mmap'ed region, but is it possible to catch page faults that is caused by such accesses? > dtrace manual says that there is vminfo::fspgin/fspgout probes; but it's not available on FreeBSD. Is it possible to use some of fbt probes here? Try tracing calls to vm_fault. -- Andriy Gapon