From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 12 09:34:55 2011 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 8AC93106566C for ; Mon, 12 Sep 2011 09:34:55 +0000 (UTC) (envelope-from filippo.sironi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 14DE98FC16 for ; Mon, 12 Sep 2011 09:34:54 +0000 (UTC) Received: by wwe3 with SMTP id 3so1829552wwe.31 for ; Mon, 12 Sep 2011 02:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=RZ1SgopnE5+CBMiWY/I68QYYiFTFwuNG4hAndQSOpys=; b=JDpfA3RMrT+C36VTJofDStdyKZ+1tDC4hdJNAaA56w46CF6e+fq6F8DXOQ9UqMihhy mpS31JJBbVRS01Ja12RWGiaV8WIF6x8vQVZAV9wh/U9CleASG0+OVEz8/00Q1nAdnPi4 RZwVkQ11VMekz7TaPbAOmRGn3eIsD8eFaKkSI= Received: by 10.216.132.210 with SMTP id o60mr2204531wei.82.1315820093668; Mon, 12 Sep 2011 02:34:53 -0700 (PDT) Received: from filippo.sironi.dynamic.micro.elet.polimi.it (micro.elet.polimi.it [131.175.127.118]) by mx.google.com with ESMTPS id fa7sm15605078wbb.26.2011.09.12.02.34.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Sep 2011 02:34:52 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=iso-8859-1 From: Filippo Sironi In-Reply-To: Date: Mon, 12 Sep 2011 11:34:50 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <4C14E323-F283-4EB1-82D9-E782A3340995@gmail.com> References: <023BD0FF-053C-4DCB-81EA-5D69B2411819@gmail.com> To: Adrian Chadd X-Mailer: Apple Mail (2.1244.3) Cc: freebsd-hackers@freebsd.org, Riccardo Cattaneo Subject: Re: Kernel timers infrastructure 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: Mon, 12 Sep 2011 09:34:55 -0000 I already did that to ensure timer_event_handler would be called = correctly. The result follows: freebsd# kldload ./timer.ko=20 timer_event_handler() with MOD_LOAD freebsd# kldunload ./timer.ko=20 timer_event_handler() with MOD_UNLOAD and I maintained the module load for about 1 minute so the timer = printing "Hello, World!" should have been run. Filippo On 12/set/2011, at 11:24, Adrian Chadd wrote: > How about adding some printfs() to the functions to ensure they're = being called? >=20 > Adrian