projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ust: cleanups and functionality
[ust.git]
/
libtracing
/
relay.c
diff --git
a/libtracing/relay.c
b/libtracing/relay.c
index 0f503a89d56e0d683b2dea853680ca009c9b8c99..c063d1faddcda841987b9c4b4950408956199438 100644
(file)
--- a/
libtracing/relay.c
+++ b/
libtracing/relay.c
@@
-181,7
+181,7
@@
static void relay_destroy_buf(struct rchan_buf *buf)
static void relay_remove_buf(struct kref *kref)
{
struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref);
static void relay_remove_buf(struct kref *kref)
{
struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref);
- buf->chan->cb->remove_buf_file(buf);
+
//ust//
buf->chan->cb->remove_buf_file(buf);
relay_destroy_buf(buf);
}
relay_destroy_buf(buf);
}
@@
-2344,9
+2344,14
@@
static struct ltt_transport ust_relay_transport = {
//ust// return 0;
//ust// }
//ust// return 0;
//ust// }
-void init_ustrelay_transport(void)
+static char initialized = 0;
+
+void __attribute__((constructor)) init_ustrelay_transport(void)
{
{
- ltt_transport_register(&ust_relay_transport);
+ if(!initialized) {
+ ltt_transport_register(&ust_relay_transport);
+ initialized = 1;
+ }
}
static void __exit ltt_relay_exit(void)
}
static void __exit ltt_relay_exit(void)
This page took
0.023528 seconds
and
4
git commands to generate.