This adds a sanity check for the value received from kvm_read. Test will fail if value is different from the expected one.
This derived from work in D23776
Paths
| Differential D23783 Authored by alfredo on Feb 21 2020, 4:38 PM.
Details
Summary This adds a sanity check for the value received from kvm_read. Test will fail if value is different from the expected one. This derived from work in D23776 Test Plan run TestSuite on powerpc64 and amd64
Diff Detail
Event TimelineHerald added subscribers: luporl, bdragon. · View Herald TranscriptFeb 21 2020, 4:38 PM2020-02-21 16:38:16 (UTC+0) Harbormaster completed remote builds in B29521: Diff 68640.Feb 21 2020, 4:38 PM2020-02-21 16:38:19 (UTC+0) Comment Actions One thing that isn't clear is why this sanity check is needed. Is this being specifically for platform integration issue with PowerPC64, or is there another better reason for why this needs to be done given the API? If for the latter reason and the item is well-documented, please add it. If not, this doesn't seem to serve much value and might be better implemented as a platform-specific regression test. Please test this on amd64 as well as a sanity check, second.
This revision now requires changes to proceed.Feb 24 2020, 4:49 PM2020-02-24 16:49:34 (UTC+0) Comment Actions
I sent an update to my previous comment that I wanted to note via email as well for clarity. I included it above. jhb added inline comments.
Comment Actions
I added the test because while creating D23776 I initially prevented panic but while trying to understand the data returned I figured out the initial solution was completelly wrong. So I think a sanity check of the value would help us to quickly detect regression on both kvm_read and /dev/kmem read consequently. As suggested, I will rework this as a new test case. It looks like the variable is not platform specific. I will double check the results on amd64.
Harbormaster completed remote builds in B29650: Diff 68902.Feb 27 2020, 7:15 PM2020-02-27 19:15:35 (UTC+0) Comment Actions Hi @ngie are you ok with the new "kvm_read_test" test?
Harbormaster completed remote builds in B32170: Diff 74138.Jul 6 2020, 8:40 PM2020-07-06 20:40:49 (UTC+0) Harbormaster completed remote builds in B32171: Diff 74139.Jul 6 2020, 8:51 PM2020-07-06 20:51:27 (UTC+0) This revision was not accepted when it landed; it landed in state Needs Review.Jul 8 2020, 6:59 PM2020-07-08 18:59:04 (UTC+0) This revision was automatically updated to reflect the committed changes. Herald added a subscriber: imp. · View Herald TranscriptJul 8 2020, 6:59 PM2020-07-08 18:59:04 (UTC+0)
Revision Contents
Diff 74210 head/lib/libkvm/tests/Makefile
head/lib/libkvm/tests/kvm_read_test.c
|