search for: handle_

Displaying 7 results from an estimated 7 matches for "handle_".

Did you mean: handle
2010 Jan 22
1
[LLVMdev] debugging a pass for LTO
...s my target file, but when I run the program in gdb, it >> reports >> >> [Thread debugging using libthread_db enabled] >> Cannot find new threads: generic error >> >> at >> >> Plugin::load() >> { >> #ifdef ENABLE_PLUGINS >>  this->handle_ = dlopen(this->filename_.c_str(), RTLD_NOW); >> >> in binutil/src/gold/plugin.cc >> >> The gdb version is 7.0.1. I tried it with other multi-threaded >> programs without any problem. Have I missed something? Or I shouldn't >> debug my pass this way at all?...
2020 Feb 12
0
[PATCH nbdkit 2/3] server: Rename ‘struct b_conn_handle’ to plain ‘struct handle’.
...s is the filter or plugin handle, but other state is also stored + * here. + * + * Use get_handle (conn, 0) to return the struct handle for the + * plugin, and get_handle (conn, b->i) to return the struct handle for + * the i'th backend (if b->i >= 1 then for a filter). + */ enum { HANDLE_OPEN = 1, /* Set if .open passed, so .close is needed */ HANDLE_CONNECTED = 2, /* Set if .prepare passed, so .finalize is needed */ HANDLE_FAILED = 4, /* Set if .finalize failed */ }; -struct b_conn_handle { - void *handle; +struct handle { + void *handle; /* Plugin or fil...
2010 Jan 22
0
[LLVMdev] debugging a pass for LTO
Hi, I'm trying to write a pass for LTO, and now I want to debug it using gdb. I use ld as my target file, but when I run the program in gdb, it reports [Thread debugging using libthread_db enabled] Cannot find new threads: generic error at Plugin::load() { #ifdef ENABLE_PLUGINS this->handle_ = dlopen(this->filename_.c_str(), RTLD_NOW); in binutil/src/gold/plugin.cc The gdb version is 7.0.1. I tried it with other multi-threaded programs without any problem. Have I missed something? Or I shouldn't debug my pass this way at all? btw, "llvm-gcc -use-gold-plugin" works f...
2019 Oct 07
0
[nbdkit PATCH 5/5] server: Ensure .finalize and .close are called as needed
....h b/server/internal.h index eb0e30c1..167da59a 100644 --- a/server/internal.h +++ b/server/internal.h @@ -153,9 +153,17 @@ typedef int (*connection_send_function) (struct connection *, typedef void (*connection_close_function) (struct connection *) __attribute__((__nonnull__ (1))); +enum { + HANDLE_OPEN = 1, /* Set if .open passed, so .close is needed */ + HANDLE_CONNECTED = 2, /* Set if .prepare passed, so .finalize is needed */ + HANDLE_FAILED = 4, /* Set if .finalize failed */ +}; + struct b_conn_handle { void *handle; + unsigned char state; /* Bitmask of HANDLE_* values */...
2020 Feb 12
5
[PATCH nbdkit 1/3] server: Rename global backend pointer to "top".
...struct backend *top; +#define for_each_backend(b) for (b = top; b != NULL; b = b->next) /* quit.c */ extern volatile int quit; diff --git a/server/connections.c b/server/connections.c index a2049325..7e9584b3 100644 --- a/server/connections.c +++ b/server/connections.c @@ -146,23 +146,23 @@ handle_single_connection (int sockin, int sockout) lock_connection (); - if (backend->thread_model (backend) < NBDKIT_THREAD_MODEL_PARALLEL || + if (top->thread_model (top) < NBDKIT_THREAD_MODEL_PARALLEL || nworkers == 1) nworkers = 0; conn = new_connection (sockin, sock...
2019 Oct 07
6
[nbdkit PATCH 0/5] More retry fixes
I think this is my last round of patches for issues I identified with the retry filter. With this in place, it should be safe to interject another filter in between retry and the plugin. Eric Blake (5): retry: Don't call into closed plugin tests: Refactor test-retry-reopen-fail.sh tests: Enhance retry test to cover failed reopen server: Move prepare/finalize/close recursion to
2020 Aug 06
6
[nbdkit PATCH v2 0/5] .list_exports
Since v1: - patch 1: check size limits - patch 2: better handling of default export name canonicalization - patch 3: support filters as well as plugins - patch 4: new - patch 5: rewrite sh parser, fix testsuite to actually work and cover more cases (now that libnbd.git is fixed) Eric Blake (4): server: Add exports list functions server: Prepare to use export list from plugin log: Add