proc_mgmt: fixed several dependency issues
authorRoni Häcki <roni.haecki@inf.ethz.ch>
Tue, 3 Oct 2017 08:33:08 +0000 (10:33 +0200)
committerRoni Häcki <roni.haecki@inf.ethz.ch>
Tue, 3 Oct 2017 08:33:08 +0000 (10:33 +0200)
Signed-off-by: Roni Häcki <roni.haecki@inf.ethz.ch>

include/barrelfish/proc_mgmt_client.h
lib/barrelfish/Hakefile
usr/monitor/Hakefile
usr/monitor/monitor_server.c
usr/tests/proc_mgmt_test/main.c

index 6384d1d..ffafa30 100644 (file)
 #ifndef BARRELFISH_PROC_MGMT_CLIENT_H
 #define BARRELFISH_PROC_MGMT_CLIENT_H
 
-#include <if/proc_mgmt_defs.h>
 #include <sys/cdefs.h>
 
 __BEGIN_DECLS
 
 struct proc_mgmt_lmp_binding;
 
+
+/* XXX: duplicate of proc_mgmt_bind_continuation_fn in generated code */
+typedef void proc_mgmt_bind_continuation_fn(void *st, errval_t err,
+                                            struct proc_mgmt_binding *_binding);
+
 errval_t proc_mgmt_client_lmp_accept(struct proc_mgmt_lmp_binding *lmpb,
                                      struct waitset *ws,
                                      size_t lmp_buflen_words);
index a5ebbc4..aa66202 100644 (file)
@@ -112,6 +112,7 @@ in
                     cFiles = arch_srcs arch ++ archfam_srcs (archFamily arch)
                              ++ common_srcs ++ idc_srcs,
                     assemblyFiles = arch_assembly (archFamily arch),
+                    flounderDefs = [ "proc_mgmt" ],
                     flounderBindings = [ "mem", "octopus", "interdisp", "spawn",
                                          "proc_mgmt", "terminal", "arrakis",
                                          "terminal_config" ],
index 26298ce..47cf6fb 100644 (file)
     build application { target = "monitor",
                         architectures = [arch],
                         cFiles = common_srcs ++ arch_srcs arch ++ idc_srcs,
-                        flounderDefs = [ "mem", "monitor", "monitor_blocking" ],
+                        flounderDefs = [ "mem", "monitor", "monitor_blocking", "proc_mgmt" ],
                         flounderBindings = [ "monitor_mem", "intermon" ],
                         flounderExtraBindings = [ ("monitor", ["loopback"]),
                                                   ("monitor_mem", ["rpcclient"]),
                                                   ("mem", ["rpcclient"]),
+                                                  ("proc_mgmt", ["rpcclient"]),
                                                   ("octopus", ["rpcclient"]) ],
                         addLinkFlags = [ "-e _start_init" ],
                         addIncludes = "include" : [ "include" </> a | a <- arch_dirs arch ],
index 7757173..37094bf 100644 (file)
@@ -18,6 +18,7 @@
 #include <trace/trace.h>
 #include <trace_definitions/trace_defs.h>
 #include <if/mem_defs.h>
+#include <if/proc_mgmt_defs.h>
 #include <barrelfish/monitor_client.h>
 #include <barrelfish/proc_mgmt_client.h>
 #include <barrelfish/syscalls.h>
index 07e94d2..9d33977 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <barrelfish/barrelfish.h>
 #include <barrelfish/deferred.h>
+#include <barrelfish/sys_debug.h>
 #include <barrelfish/proc_mgmt_client.h>
 #include <barrelfish/spawn_client.h>
 #include <bench/bench.h>