aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/compare-ktest-sample.pl
diff options
context:
space:
mode:
authorVishal Verma <vishal.l.verma@intel.com>2018-07-30 16:11:34 -0600
committerDave Jiang <dave.jiang@intel.com>2018-07-31 17:05:19 -0700
commitb4d4702f30e09ed1311e560334eb25fc2015c8ce (patch)
tree23830f52a02346c833f093e25c4568e1d4524413 /tools/testing/ktest/compare-ktest-sample.pl
parentfilesystem-dax: Do not request kaddr and pfn when not required (diff)
downloadlinux-dev-b4d4702f30e09ed1311e560334eb25fc2015c8ce.tar.xz
linux-dev-b4d4702f30e09ed1311e560334eb25fc2015c8ce.zip
tools/testing/nvdimm: improve emulation of smart injection
The emulation for smart injection commands for nfit neglected to check the smart field validity flags before injecting to that field. This is required as a way to distinguish un-injection vs. leave-alone. The emulation was also missing support for un-injection entirely. To add this support, first, fix the above flags check. Second, use the 'enable' field in the injection command to determine injection vs un-injection. Third, move the smart initialization struct to be a global static structure for the nfit_test module. Reference this to get the smart 'defaults' when un-injecting a smart field. Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/testing/ktest/compare-ktest-sample.pl')
0 files changed, 0 insertions, 0 deletions