[CRIU] [PATCH 3/5] compel: Add helpers for hgen bdesc filling

Pavel Emelyanov xemul at virtuozzo.com
Fri Nov 25 05:20:58 PST 2016


These names are generated by compel hgen, so there's no
need in making callers know them.

Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
 compel/include/uapi/handle-elf.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/compel/include/uapi/handle-elf.h b/compel/include/uapi/handle-elf.h
index ddeecb0..013e2e4 100644
--- a/compel/include/uapi/handle-elf.h
+++ b/compel/include/uapi/handle-elf.h
@@ -12,4 +12,12 @@ typedef struct {
 	long		value;
 } compel_reloc_t;
 
+/*
+ * Helpers for compel hgen command results. The pref should match
+ * the -p|--sym-prefix argument value.
+ */
+#define COMPEL_H_PARASITE_HEAD(pref)	pref##__export_parasite_head_start
+#define COMPEL_H_PARASITE_CMD(pref)	pref##__export_parasite_cmd
+#define COMPEL_H_PARASITE_ARGS(pref)	pref##__export_parasite_args
+
 #endif
-- 
2.5.0



More information about the CRIU mailing list