]> xenbits.xensource.com Git - livepatch-build-tools.git/commit
create-diff-object: Add support for expectations
authorPawel Wieczorkiewicz <wipawel@amazon.de>
Tue, 26 Nov 2019 12:25:09 +0000 (12:25 +0000)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Thu, 6 Feb 2020 16:26:05 +0000 (16:26 +0000)
commit2142f99087e87170e2e2c4bb1e74795e1bc21b76
tree082b6df3a31fc334acd2321ca30c61464438debc
parent615a7786d1d2cc008d6097ee583f822395254965
create-diff-object: Add support for expectations

Extend livepatch_patch_func to support a new field: expect. This new
field describes the expected data, its length and whether expectation
is enabled. The expectation's data is of opaque padding size.

By default the expectation field is zero-out and the expectation is
disabled unless explicitly specified in the patch.

Signed-off-by: Pawel Wieczorkiewicz <wipawel@amazon.de>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
common.h
create-diff-object.c