Commit bc1e3fc8 authored by Filippos Giannakos's avatar Filippos Giannakos

add python bindings support to vlmc tool

parent 8f922af3
......@@ -66,6 +66,7 @@ int dispatch(struct peerd *peer, struct peer_req *pr, struct xseg_request *req,
else {
// printf("completing req id: %u (remote %u)\n", (unsigned int) (pr - peer->peer_reqs), (unsigned int) pr->req->priv);
// nanosleep(&delay,NULL);
print_req(peer->xseg, pr->req);
complete(peer, pr);
}
return 0;
......
This diff is collapsed.
......@@ -1804,6 +1804,17 @@ int xseg_finalize(void)
}
char* xseg_get_data_nonstatic(struct xseg* xseg, struct xseg_request *req)
{
return xseg_get_data(xseg, req);
}
char* xseg_get_target_nonstatic(struct xseg* xseg, struct xseg_request *req)
{
return xseg_get_target(xseg, req);
}
#ifdef __KERNEL__
#include <linux/module.h>
#include <xseg/xseg_exports.h>
......
......@@ -429,11 +429,14 @@ struct xseg_request * xseg_accept ( struct xseg * xseg,
struct xseg_port* xseg_get_port(struct xseg *xseg, uint32_t portno);
extern char* xseg_get_data_nonstatic(struct xseg* xseg, struct xseg_request *req);
extern char* xseg_get_target_nonstatic(struct xseg* xseg, struct xseg_request *req);
static inline uint32_t xseg_portno(struct xseg *xseg, struct xseg_port *port)
{
return port->portno;
}
static inline char* xseg_get_target(struct xseg* xseg, struct xseg_request *req)
{
return (char *) XPTR_TAKE(req->target, xseg->segment);
......
......@@ -76,6 +76,8 @@ EXPORT_SYMBOL(xseg_set_max_requests);
EXPORT_SYMBOL(xseg_get_max_requests);
EXPORT_SYMBOL(xseg_get_allocated_requests);
EXPORT_SYMBOL(xseg_set_freequeue_size);
EXPORT_SYMBOL(xseg_get_data_nonstatic);
EXPORT_SYMBOL(xseg_get_target_nonstatic);
EXPORT_SYMBOL(xseg_snprintf);
EXPORT_SYMBOL(__xseg_errbuf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment