50 lines
1.4 KiB
Diff
50 lines
1.4 KiB
Diff
From c2f831812596d0d4c8f3c87818b5a5d15d1831ad Mon Sep 17 00:00:00 2001
|
|
Date: Sun, 20 Oct 2019 23:49:27 +0300
|
|
Subject: [PATCH 4/5] Add fail to bistro for e2k build
|
|
|
|
Bistro is the infrastructure to dynamically hook mmap calls in ucx.
|
|
Not supported for e2k, disable with failing.
|
|
---
|
|
src/ucm/bistro/bistro.c | 7 +++++++
|
|
src/ucm/bistro/bistro.h | 7 ++++++-
|
|
2 files changed, 13 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/ucm/bistro/bistro.c b/src/ucm/bistro/bistro.c
|
|
index 79bdbec..037c1ba 100644
|
|
--- a/src/ucm/bistro/bistro.c
|
|
+++ b/src/ucm/bistro/bistro.c
|
|
@@ -102,5 +102,12 @@ void *ucm_bistro_restore_addr(ucm_bistro_restore_point_t *rp)
|
|
ucs_assert(rp != NULL);
|
|
return rp->addr;
|
|
}
|
|
+#else
|
|
+//fail e2k
|
|
+ucs_status_t ucm_bistro_patch(const char *symbol, void *hook,
|
|
+ ucm_bistro_restore_point_t **rp)
|
|
+{
|
|
+ return -1;
|
|
+}
|
|
|
|
#endif
|
|
diff --git a/src/ucm/bistro/bistro.h b/src/ucm/bistro/bistro.h
|
|
index 16e9887..9790ff5 100644
|
|
--- a/src/ucm/bistro/bistro.h
|
|
+++ b/src/ucm/bistro/bistro.h
|
|
@@ -21,7 +21,12 @@ typedef struct ucm_bistro_restore_point ucm_bistro_restore_point_t;
|
|
#elif defined(__x86_64__)
|
|
# include "bistro_x86_64.h"
|
|
#else
|
|
-# error "Unsupported architecture"
|
|
+ucs_status_t ucm_bistro_patch(const char *symbol, void *hook,
|
|
+ ucm_bistro_restore_point_t **rp);
|
|
+#define UCM_BISTRO_PROLOGUE
|
|
+#define UCM_BISTRO_EPILOGUE
|
|
+
|
|
+//# error "Unsupported architecture"
|
|
#endif
|
|
|
|
|
|
--
|
|
2.1.4
|
|
|