[Accel-config] [PATCH v1 05/11] accel-config/test: Add element output to struct task
Li Zhang <li4.zhang at intel.com> Tue, 17 May 2022 18:48:27 +0800
| Newsgroups | dev.linux.lists.accel-config |
|---|---|
| Message-ID | <[email protected]> |
Add a new pointer output to struct task for Zcompress16,
and free the memory area pointed by output.
Signed-off-by: Li Zhang <li4.zhang(a)intel.com>
---
test/accel_test.c | 1 +
test/accel_test.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/test/accel_test.c b/test/accel_test.c
index 84ab13e..5b8fa11 100644
--- a/test/accel_test.c
+++ b/test/accel_test.c
@@ -464,6 +464,7 @@ void __clean_task(struct task *tsk)
free(tsk->src2);
free(tsk->dst1);
free(tsk->dst2);
+ free(tsk->output);
}
void free_batch_task(struct batch_task *btsk)
diff --git a/test/accel_test.h b/test/accel_test.h
index c461fe7..5613cd5 100644
--- a/test/accel_test.h
+++ b/test/accel_test.h
@@ -53,6 +53,7 @@ struct task {
void *dst1;
void *dst2;
void *delta1;
+ void *output;
uint64_t pattern;
uint64_t pattern2;
uint64_t xfer_size;
--
2.25.1