1. 25 May, 2018 34 commits
  2. 22 May, 2018 5 commits
  3. 20 May, 2018 1 commit
    • 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