Re: [Xenomai-core] [PATCH] debug_maxlat as module_param

2005-12-18 Thread Gilles Chanteperdrix
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.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] debug_maxlat as module_param

2005-12-18 Thread Gilles Chanteperdrix
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.



Re: [Xenomai-core] [PATCH] debug_maxlat as module_param

2005-12-17 Thread Philippe Gerum

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?



Please don't depend on sysfs for generic features since they would not 
be available on 2.4.



Jan




___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core



--

Philippe.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] debug_maxlat as module_param

2005-12-17 Thread Gilles Chanteperdrix
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.

-- 


Gilles Chanteperdrix.



Re: [Xenomai-core] [PATCH] debug_maxlat as module_param

2005-12-17 Thread Jan Kiszka
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?

Jan


signature.asc
Description: OpenPGP digital signature


Re: [Xenomai-core] [PATCH] debug_maxlat as module_param

2005-12-17 Thread Philippe Gerum

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?



Please don't depend on sysfs for generic features since they would not 
be available on 2.4.



Jan




___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core



--

Philippe.