From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 14 00:28:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C523D1065673 for ; Sat, 14 Jun 2008 00:28:48 +0000 (UTC) (envelope-from Fraser@mail.frase.id.au) Received: from mail.frase.id.au (203-219-142-174.static.tpgi.com.au [203.219.142.174]) by mx1.freebsd.org (Postfix) with ESMTP id 15B208FC1D for ; Sat, 14 Jun 2008 00:28:47 +0000 (UTC) (envelope-from Fraser@mail.frase.id.au) Received: from mail.frase.id.au (localhost [127.0.0.1]) by mail.frase.id.au (8.14.2/8.14.2) with ESMTP id m5DNtXrn077617 for ; Sat, 14 Jun 2008 09:55:33 +1000 (EST) (envelope-from Fraser@mail.frase.id.au) Received: (from Fraser@localhost) by mail.frase.id.au (8.14.2/8.14.2/Submit) id m5DNtXQh077616 for freebsd-hackers@freebsd.org; Sat, 14 Jun 2008 09:55:33 +1000 (EST) (envelope-from Fraser) Date: Sat, 14 Jun 2008 09:55:32 +1000 From: Fraser Tweedale To: freebsd-hackers@freebsd.org Message-ID: <20080613235531.GA91339@bacardi> References: <4852CFE8.8040003@rawbw.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <4852CFE8.8040003@rawbw.com> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: How to probe what application does in kernel (with sound device)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 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 Jun 2008 00:28:48 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 13, 2008 at 12:52:08PM -0700, Yuri wrote: > I have linux skype that complains that it can't use sound device without= =20 > giving any details. > 'truss -f' flag doesn't show any system calls related to sound device=20 > (/dev/dsp*). Maybe it's because of child processes aren't really=20 > monitored by truss for linux processes. > But sound from another sound application gets some strange interruption= =20 > and buzz every time I try to activate sound from skype. That's how I=20 > know that skype really does something with sound device. >=20 > Is there a way to probe program's activity with devices in-kernel? >=20 > Yuri >=20 ktrace(1) =46rom man page: The ktrace utility enables kernel trace logging for the specified pro- cesses. Kernel trace data is logged to the file ktrace.out. The kern= el operations that are traced include system calls, namei translations, s= ig- nal processing, and I/O. frase --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhTCPMACgkQPw/2FZbemTWEGACgtaVqzc5c28QGoXdExT3BLUYP oCgAoLD8lOfO6OpOAPT82hT6RTj3AnNJ =IPom -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--