Commit Graph

111 Commits

Author SHA1 Message Date
Philippe Gerum 40590f2880 tests: proxy: fix description 2019-05-30 17:18:56 +02:00
Philippe Gerum 8d1e8124dc lib/utils: make explicit that logging requires a proxy 2019-05-30 16:16:11 +02:00
Philippe Gerum b8e37da8b3 commands: add ps helper
Signed-off-by: Philippe Gerum <rpm@xenomai.org>
2019-05-30 13:04:37 +02:00
Philippe Gerum 13f521985a utils/latmus: dump test information header with -g 2019-05-29 14:58:12 +02:00
Philippe Gerum 9cc7b9aa52 utils/latmus: detect orphaned arguments 2019-05-29 14:28:50 +02:00
Philippe Gerum 28b56a53fd utils/latmus: parse d/h/m/s modifiers to the timeout value (-T)
d/h/m/s suffixes can be added to the value passed to -T for modifying
its meaning (days/hours/mins/secs). Defaults to secs when unspecified.
2019-05-29 13:01:08 +02:00
Philippe Gerum 9429d6ebb5 utils/latmus: fix help strings 2019-05-29 12:34:22 +02:00
Philippe Gerum f830520395 tests: extend proxy test case and rename 2019-05-28 19:47:45 +02:00
Philippe Gerum afe4355952 tests/helpers: fix assertion in new_thread() 2019-05-28 19:43:42 +02:00
Philippe Gerum ee67eb06da commands/trace: detect lack of EVL core 2019-05-28 19:43:42 +02:00
Philippe Gerum 5231adf792 tests: check recovery from basic faults 2019-05-22 09:50:39 +02:00
Philippe Gerum 73e1290f77 lib/init: SIGDEBUG_UNDEFINED -> SIGDEBUG_NONE 2019-05-21 15:28:33 +02:00
Philippe Gerum 56397768f1 lib/thread: guarantee out-of-band mode out of evl_attach_self()
Make sure no *libc call might switch the caller of evl_attach_self()
to inband mode.

Typically, pthread_once() should happen before the EVL scheduling
parameters are set via oob_ioctl(), since the latter guarantees
out-of-band mode on return for non-weak policies but the former may
invoke a regular syscall at first invocation.
2019-05-18 16:45:55 +02:00
Philippe Gerum c788ed5c6d commands/trace: robustify in absence of snapshot support 2019-05-17 13:54:30 +02:00
Philippe Gerum e55d651203 evl: add x86 support 2019-05-13 14:53:56 +02:00
Philippe Gerum 9e28343c92 utils/latmus: fix signedness when calculating the average latency
We may receive negative delta sum when sampling latency on fast
machines, use proper signedness for the divisor to prevent weird
results.
2019-05-13 14:53:56 +02:00
Philippe Gerum f3bef7cb8c tests: check preloading of FPU registers 2019-05-13 14:53:56 +02:00
Philippe Gerum 6ef611b8aa utils/latmus: detect and stop on obviously inconsistent results 2019-05-13 14:53:56 +02:00
Philippe Gerum 56787a4f02 lib/thread: OOB switch request must go through oob_ioctl() 2019-05-09 21:38:22 +02:00
Philippe Gerum 9b218f1912 utils/latmus: prevent false positive on exit with -a 2019-04-22 18:42:48 +02:00
Philippe Gerum bb5b380f3f utils/latmus: remove extraneous LF in output 2019-04-22 18:35:45 +02:00
Philippe Gerum e89a5c5761 lib/init: do not override the SIGDEBUG handler
Instead, provide a basic handler which only prints out the cause for
receiving SIGDEBUG, which the application can use freely.
2019-04-22 18:34:09 +02:00
Philippe Gerum da612bee52 lib/init: rename sigshadow to sigevl 2019-04-22 18:16:49 +02:00
Philippe Gerum 3a6930abf1 lib/clock: force early mapping of MMIO clock source
On architectures which export the clock source counter(s) via MMIO
like ARM, make sure to trigger the initial mapping syscall early while
we are initializing the library services, so that the next readings do
not involve any in-band syscall.

Do that by forcing a dummy call to evl_read_clock() before returning
from attach_evl_clocks().
2019-04-22 17:45:51 +02:00
Philippe Gerum 0962f81372 utils/latmus: enable in-band switch notification for sampler
Signed-off-by: Philippe Gerum <rpm@xenomai.org>
2019-04-06 12:10:09 +02:00
Philippe Gerum fff94f6562 lib/init: bounce SIGDEBUG with cause to original handler 2019-04-06 12:10:09 +02:00
Philippe Gerum dab58e618a utils/latmus: prevent div_by_zero in absence of samples
We might get ^C even before the first sample is received, do not issue
any stats in such a case.
2019-04-04 18:13:39 +02:00
Philippe Gerum 7067e0ad42 commands: fix script option parsing
Signed-off-by: Philippe Gerum <rpm@xenomai.org>
2019-03-31 12:53:25 +02:00
Philippe Gerum 333cacc1f5 commands: install helpers in libexec
Script helpers to the evl command are installed in $prefix/libexec. By
convention, source scripts are suffixed by ".evl" to identify them
unambiguously. They are copied to $libexec/evl-<script>.

Signed-off-by: Philippe Gerum <rpm@xenomai.org>
2019-03-31 12:53:25 +02:00
Philippe Gerum 2014a9aff7 commands/evl: improve argument parsing
At this chance, set the command path to $prefix/libexec since we did
not have formally defined any yet.
2019-03-30 19:27:19 +01:00
Jorge Ramirez-Ortiz bad49d4470 lib, tests: access kernel elements and utilities via UAPI 2019-03-28 13:57:17 +01:00
Philippe Gerum 8c8a22c5d3 evl: add MIT license text 2019-03-14 18:30:59 +01:00
Philippe Gerum 5d122bb475 lib/sem: fix UMR in evl_open_sem() 2019-03-14 16:33:11 +01:00
Philippe Gerum 3d25879efd utils/hectic: skip idle CPUs in display 2019-03-13 10:42:04 +01:00
Philippe Gerum b6fa88473e utils/hectic: tell the driver about rtu{o/p/s} tasks starting in OOB wait 2019-03-13 10:27:29 +01:00
Philippe Gerum 2d8f6b6956 evl/doc: redirect from README to website for information 2019-03-10 19:46:50 +01:00
Philippe Gerum 62f17c5283 tests: clock-timer-periodic: increase tick interval
To cope with really slow VM.
2019-03-10 16:39:53 +01:00
Philippe Gerum eda7791f9b evl: rename evenless/ paths to evl/ 2019-03-10 16:25:02 +01:00
Philippe Gerum b90d18b421 lib/utils: add scheduler control service 2019-03-09 11:38:50 +01:00
Philippe Gerum c93f95cccc lib/sem: silent success on closing an uninit sem 2019-03-08 17:01:49 +01:00
Philippe Gerum d55f2768c3 lib/condvar: silent success on closing an uninit condvar 2019-03-08 17:01:43 +01:00
Philippe Gerum 75fb37bf92 lib/mutex: silent success on closing an uninit mutex 2019-03-08 17:01:33 +01:00
Philippe Gerum 10afb077ff lib/mutex, convar: drop useless struct evl_monitor 2019-03-08 16:58:34 +01:00
Philippe Gerum b41d4da284 build: quiesce header installation when required 2019-03-08 16:36:04 +01:00
Philippe Gerum 277381a275 lib/event: rename event to condvar
This is actually how it behaves, 'event' may be confusing due to
other implementations using different semantics.
2019-03-07 19:14:07 +01:00
Philippe Gerum d7cc0b6284 lib/thread: convert to self-targeted requests 2019-03-05 08:32:33 +01:00
Philippe Gerum 449b29ad25 evl: rename libevenless to libevl 2019-03-04 17:49:07 +01:00
Philippe Gerum ef0cabcc45 tests: periodic clock timer 2019-03-04 17:49:07 +01:00
Philippe Gerum a3fd5328d5 lib/timer: convert to clock-dependent interface 2019-03-04 17:49:07 +01:00
Philippe Gerum 2ca922bf9f utils/latmus: fix quiet mode 2019-03-04 17:49:07 +01:00