[PATCH 0/2] samples: timers: hpet_example: Improve user experience

Akhilesh Patil posted 2 patches 1 month, 2 weeks ago
samples/Kconfig               |  3 +++
samples/timers/hpet_example.c | 11 +++++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
[PATCH 0/2] samples: timers: hpet_example: Improve user experience
Posted by Akhilesh Patil 1 month, 2 weeks ago
Hi all, 
  This patch series improves user experience for
samples/timers/hpet_example

PATCH 1/2 --> Add support to print help text if user does not provide
required arguments.

PATCH 2/2  --> add help text in timers Kconfig

Testing: 
I have tested the changes on x86 with hpet device as follows. 

1. Build the sample program 
$ gcc hpet_example.c -o hpet_example

2. Run hpet program with no args

$ ./hpet_example
-hpet: requires command
Format: hpet_example <command> </dev/device_name>
Supported commands:
        open-close
        info
        poll
        fasync

Example: $ ./hpet_example info /dev/hpet

3. Run and verify hpet commands on /dev/hpet

$ sudo ./hpet_example info /dev/hpet
-hpet: executing info
hpet_info: hi_irqfreq 0x0 hi_flags 0x10 hi_hpet 0 hi_timer 0


Akhilesh Patil (2):
  samples: timers: hpet_example: Improve argument parsing
  samples: Kconfig: Add help for CONFIG_SAMPLE_TIMER

 samples/Kconfig               |  3 +++
 samples/timers/hpet_example.c | 11 +++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

-- 
2.34.1
Re: [PATCH 0/2] samples: timers: hpet_example: Improve user experience
Posted by Akhilesh Patil 3 weeks, 1 day ago
On Sun, Aug 17, 2025 at 06:54:00PM +0530, Akhilesh Patil wrote:
> Hi all, 
>   This patch series improves user experience for
> samples/timers/hpet_example
> 
> PATCH 1/2 --> Add support to print help text if user does not provide
> required arguments.
> 
> PATCH 2/2  --> add help text in timers Kconfig
> 
> Testing: 
> I have tested the changes on x86 with hpet device as follows. 
> 
> 1. Build the sample program 
> $ gcc hpet_example.c -o hpet_example
> 
> 2. Run hpet program with no args
> 
> $ ./hpet_example
> -hpet: requires command
> Format: hpet_example <command> </dev/device_name>
> Supported commands:
>         open-close
>         info
>         poll
>         fasync

Hi all, I Would like to follow-up on this patch series for any feedback or
improvements needed. 

Regards,
Akhilesh