mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 0/3] commands: watch: add new command
Date: Mon,  1 Jul 2024 09:54:31 +0200	[thread overview]
Message-ID: <20240701075434.220378-1-a.fatoum@pengutronix.de> (raw)

For testing proper operation of IIO devices, it can be useful to monitor
changes in the reading reported by the hwmon command. This is now
possible by using e.g. `watch -n 0.5 -t hwmon`.

Ahmad Fatoum (3):
  commands: edit: factor out getwinsize and export it for reuse
  lib: strtox: implement new simple_strtofract
  commands: watch: add new command

 commands/Kconfig       |  6 +++
 commands/Makefile      |  1 +
 commands/edit.c        | 85 ++++++------------------------------
 commands/watch.c       | 97 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/kernel.h |  1 +
 include/term.h         |  8 ++++
 lib/Makefile           |  1 +
 lib/strtox.c           | 57 +++++++++++++++++++++++++
 lib/term.c             | 69 ++++++++++++++++++++++++++++++
 9 files changed, 252 insertions(+), 73 deletions(-)
 create mode 100644 commands/watch.c
 create mode 100644 include/term.h
 create mode 100644 lib/term.c

-- 
2.39.2




             reply	other threads:[~2024-07-01  7:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-01  7:54 Ahmad Fatoum [this message]
2024-07-01  7:54 ` [PATCH 1/3] commands: edit: factor out getwinsize and export it for reuse Ahmad Fatoum
2024-07-01  7:54 ` [PATCH 2/3] lib: strtox: implement new simple_strtofract Ahmad Fatoum
2024-07-01  7:54 ` [PATCH 3/3] commands: watch: add new command Ahmad Fatoum
2024-07-01  9:26   ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240701075434.220378-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox