MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17317.23221.452966.19779@domain.hid> Date: Sun, 18 Dec 2005 13:48:53 +0100 Subject: Re: [Xenomai-core] [PATCH] debug_maxlat as module_param In-Reply-To: <43A4481B.7060401@domain.hid> References: <43A436A1.5070509@domain.hid> <17316.16329.895671.929282@domain.hid> <43A4481B.7060401@domain.hid> From: Gilles Chanteperdrix List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai-core Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > > Jan Kiszka wrote: > > > Hi, > > > > > > this tiny patch exports the NMI watchdog's threshold as module parameter > > > "debug_maxlat" of xeno_hal. This means that one can either override the > > > value via a kernel parameter or in sysfs/modules/xeno_hal/parameters > > > (before activating the hal). > > > > rthal_maxlat_tsc should be updated when rthal_maxlat_us_arg changes. > > > > I didn't digged that deep, is this possible during runtime? My current > workflow looks like this: unload xeno_nucleus (and higher modules), > change maxlat, reload the modules. > > Mmh, I guess one has to register some update handler with sysfs in that > case. Any hint where to look for a pattern? In nucleus/module.c, the latency parameter may be read and written at run-time through procfs, have a look at the functions latency_read_proc and latency_write_proc. -- Gilles Chanteperdrix.