From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 27 14:41:29 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6B57A2D9; Sun, 27 Jan 2013 14:41:29 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1A8FB2C7; Sun, 27 Jan 2013 14:41:28 +0000 (UTC) Received: by mail-qa0-f54.google.com with SMTP id l8so515728qaq.6 for ; Sun, 27 Jan 2013 06:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=BbTUwVNH5vt9ZKxxRTsFEb8eU7TuOkfC55Qh+NpGqQk=; b=qOOoG46gHv6B6Bawjs5nzo8GsCCXr4Z2NBz1zjR45qLxRdt2Aikzrzw1EBAPbKFAUi walbJ1ipYt92Vw2vYaMCM/r1buLIvrv/Js2tW6MXjoQj/q07OD5w4RY0jgRJRQJbbBZ9 x6yxoX0Q+N75b147klVGOC/dxqJw3cbkmIqFICePOAWmWk2LdotWNUD/G9POJZf0vJ8g ScVNrRSV4TC6QpN3GLXGVT7Bzrq2QS7QPFzyJr6SRYQ5MXlG5HjpDEitWb3fIh+Q+CBm 5NNrrVZ/i7tx5xykIEXD8YxlLEM3xY7zsCoZ88nd2g22rLweOZ4tG62Wyar2LBRg05ol URAw== MIME-Version: 1.0 X-Received: by 10.224.186.82 with SMTP id cr18mr12683692qab.64.1359297688397; Sun, 27 Jan 2013 06:41:28 -0800 (PST) Received: by 10.49.72.138 with HTTP; Sun, 27 Jan 2013 06:41:28 -0800 (PST) In-Reply-To: <51051C61.4060608@FreeBSD.org> References: <51051C61.4060608@FreeBSD.org> Date: Sun, 27 Jan 2013 09:41:28 -0500 Message-ID: Subject: Re: dtrace vs module unloading From: Ryan Stone To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 14:41:29 -0000 On Sun, Jan 27, 2013 at 7:24 AM, Andriy Gapon wrote: > > It seems that FreeBSD DTrace currently does not track module loading / > unloading > at all. dtrace_module_loaded/dtrace_module_unloaded are both under ifdef > sun. > > I think that this is a root cause of e.g. fbt probes for some functions > remaining after a module that provides the functions is unloaded. > > It looks like currently we do not post any event when a module gets loaded > / > unloaded. Perhaps this is one of the factors in current situation. > OTOH, in Solaris they just have some dtrace hooks in the form of function > pointers directly in the module handling code (equivalent of our > kern_linker). > I have a PR in about this. I haven't had a chance to look into fixing it myself.