• Martin Kelly's avatar
    tools: iio: iio_generic_buffer: allow continuous looping · 55dda0ab
    Martin Kelly authored
    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: default avatarMartin Kelly <mkelly@xevo.com>
    Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
    55dda0ab
Name
Last commit
Last update
Documentation Loading commit data...
LICENSES Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.clang-format Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...