libnvdimm, testing: Add emulation for smart injection commands
authorVishal Verma <vishal.l.verma@intel.com>
Thu, 8 Feb 2018 21:24:04 +0000 (14:24 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 6 Apr 2018 03:11:19 +0000 (20:11 -0700)
commit4cf260fc409c73f6e40b3e8061a0cb925703d7ee
tree742ca7c76d5fc9ef586d0024cfd0e50d87be3704
parent14c73f997a5e060c6887a80c143021a58975c92a
libnvdimm, testing: Add emulation for smart injection commands

Add support for the smart injection command in the nvdimm unit test
framework. This allows for directly injecting to smart fields and flags
that are supported in the injection command. If the injected values are
past the threshold, then an acpi notification is also triggered.

Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/nfit.c
tools/testing/nvdimm/test/nfit_test.h