OpenCloudOS-Kernel/tools/iio
Martin Kelly 55dda0abcf tools: iio: iio_generic_buffer: allow continuous looping
Sometimes it's useful to stream samples forever, such as when
stress-testing a driver overnight to check for memory leaks or other
issues. When the program receives a signal, it will gracefully cleanup,
so it is still safe to terminate at any time.

Add support for specifying a negative -c option, meaning that we should
loop forever. To do so, we need to use a long long (instead of just
long) for num_loops so that current code specifying num_loops greater
than UNSIGNED_LONG_MAX doesn't break.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-05-20 14:55:58 +01:00
..
Build iio: tools: move to tools buildsystem 2017-08-09 14:29:36 +01:00
Makefile tools: fix cross-compile var clobbering 2018-02-21 15:35:42 -08:00
iio_event_monitor.c iio: Add channel for Gravity 2017-01-05 13:02:25 +00:00
iio_generic_buffer.c tools: iio: iio_generic_buffer: allow continuous looping 2018-05-20 14:55:58 +01:00
iio_utils.c iio: iio-utils: use channel modifier scaling if it exists 2016-08-29 16:26:41 +01:00
iio_utils.h iio: tools: generic_buffer: increase trigger length 2017-05-07 16:08:04 +01:00
lsiio.c tools: iio: lsiio: enumerate processed channels 2016-08-15 18:33:23 +01:00