libnvme: add command execution time detector

To improve OOB NVMe-MI debuggability, this patch will check command
execution time, if it exceeds WARNING_THRESHOLD (3 seconds), print
a warning message about the command information.

Tested:
With this patch, we can detect some suspiciously NVMe-MI commands
which may take long time :
https://paste.googleplex.com/4698907106869248

Google-Bug-Id: 300524907#comment20
Change-Id: Id3d7ff62cea1aef40131b8b05eb014d72152ceb8
Signed-off-by: Jinliang Wang <jinliangw@google.com>
(cherry picked from commit 9363819dc9dbcc4c70c381d76229b02b72dbd259)
3 files changed
tree: 2121ef66c4361a09331ee0a0ce06710df1399add
  1. conf/
  2. dynamic-layers/
  3. meta-nuvoton-npcm8xx/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. LICENSE
  14. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.