peci_cmds: add loop option

This adds an option to loop a command multiple times and report
the results.

This option allows for stress testing and performance measurements
on PECI commands.

Tested:
Confirmed that each command still works as expected and can be
looped.

Change-Id: If307bb0aec154028bf91453bfe9d091868cda587
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
1 file changed
tree: be77c11993d65d091ed4c82e442f9f1a712d6ca4
  1. linux/
  2. .clang-format
  3. .clang-ignore
  4. CMakeLists.txt
  5. LICENSE
  6. MAINTAINERS
  7. peci.c
  8. peci.h
  9. peci_cmds.c
  10. README.md
README.md

libpeci

libpeci is a library that provides various APIs to interface with the IOCTLs provided by the PECI driver in the OpenBMC kernel. Currently available here:

https://github.com/openbmc/linux/blob/dev-5.4/include/uapi/linux/peci-ioctl.h

peci_cmds

This repo also includes a peci_cmds command-line utility with functions that map to the libpeci APIs. It can be used to test PECI functionality across the library, driver, and hardware.