From owner-freebsd-questions@FreeBSD.ORG Mon May 25 12:34:13 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB75E106564A for ; Mon, 25 May 2009 12:34:13 +0000 (UTC) (envelope-from laladelausanne@gmail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id 6616C8FC0A for ; Mon, 25 May 2009 12:34:13 +0000 (UTC) (envelope-from laladelausanne@gmail.com) Received: by ewy3 with SMTP id 3so3145164ewy.43 for ; Mon, 25 May 2009 05:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=EhXzES9RbxfvvvYc393erFYpwTCQnuf0PdNMVKv/tOQ=; b=pfLS7IuEK/tywEyGNUl6ySMMHRqulpItN8qqQPFHx8/zlmfvm9wIlsDj+LihOx6x8b vR1DQQctTJAKwGYlEgAbgMPlOjNgAtC/OYNKbWJDpO5MsIcexMjbA9oZV5k3RCKi0VvS HzIfknY4bayXRritNAL6ubzpctzAnQZjrtVso= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=CHnL9Pa4tcP3bA/Rp+cbrW+sqBevgUWPaAv8v8BHX82iMxV+84opo2X8Dd7WH2/GkI WycgPb8sCMZJPnWdiVGdV7ghq+MTi30jXh4pLdPtGRhnyiAtswfqDnZOp2HlZTjI3oVY X3MWiqloOPAhKMiG5Y6CUlhSB6yVdG6B4Erpw= Received: by 10.216.15.85 with SMTP id e63mr1676694wee.199.1243254852401; Mon, 25 May 2009 05:34:12 -0700 (PDT) Received: from nslpc5.epfl.ch (nslpc5.epfl.ch [128.178.149.20]) by mx.google.com with ESMTPS id 7sm4500233eyb.55.2009.05.25.05.34.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 May 2009 05:34:11 -0700 (PDT) Message-Id: <0829C953-67AA-42DB-BCDF-B294F2E39618@gmail.com> From: =?UTF-8?Q?Nikola_Kne=C5=BEevi=C4=87?= To: FreeBSD Questions In-Reply-To: <10A866FD-3D61-418E-8871-5C60159CEB6C@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v935.3) Date: Mon, 25 May 2009 14:34:10 +0200 References: <10A866FD-3D61-418E-8871-5C60159CEB6C@gmail.com> X-Mailer: Apple Mail (2.935.3) Subject: Re: Problem with LOCK_PROFILING stats in 7.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2009 12:34:14 -0000 On 05.22.2009, at 14:21 , Nikola Kne=C5=BEevi=C4=87 wrote: > I'm using LOCK_PROFILING to, well, profile some locks in the module =20= > I'm working on. I also have INVARIANTS turned on. Numbers I'm =20 > getting look correct, however, name of the lock is strange (for some =20= > of the locks I'm using): > > 25725 51777294 10979957 7331938 7 1 =20 > 408303 896814 /home/knl/work/mx/click/bsdmodule/..//include/=20 > click/sync.hh:395 (sleep mutex:?? ?????Yf;??????? ?????=12?:?????=18=03)= > > Why am I getting this instead of lock's real name: MasterLock[10060]? To reply to myself :) mtx_init & co. expects the name to be persistent during the whole run. =20= So, never pass values from the stack to it, as I did. Cheers, Nikola=