aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2018-05-17 17:14:46 -0700
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-05-20 14:55:58 +0100
commit55dda0abcf9d36bf5c3e21c8423b7c00a1125e27 (patch)
tree622ec5263913368c19f71172ff984cb8f41f3b01 /scripts
parenttools: iio: iio_generic_buffer: fix types to match (diff)
downloadlinux-dev-55dda0abcf9d36bf5c3e21c8423b7c00a1125e27.tar.xz
linux-dev-55dda0abcf9d36bf5c3e21c8423b7c00a1125e27.zip
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions