projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: register rotation thread as RCU thread
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
rotation-thread.c
diff --git
a/src/bin/lttng-sessiond/rotation-thread.c
b/src/bin/lttng-sessiond/rotation-thread.c
index 3747ebae7fe337713c1758ad08fe2b8c1c775f10..c0d1cf146d3b69bbe5fcef59c8cf6d076df8752d 100644
(file)
--- a/
src/bin/lttng-sessiond/rotation-thread.c
+++ b/
src/bin/lttng-sessiond/rotation-thread.c
@@
-876,6
+876,9
@@
void *thread_rotation(void *data)
goto end;
}
goto end;
}
+ rcu_register_thread();
+ rcu_thread_online();
+
health_register(health_sessiond, HEALTH_SESSIOND_TYPE_ROTATION);
health_code_update();
health_register(health_sessiond, HEALTH_SESSIOND_TYPE_ROTATION);
health_code_update();
@@
-945,6
+948,8
@@
error:
DBG("[rotation-thread] Exit");
fini_thread_state(&thread);
health_unregister(health_sessiond);
DBG("[rotation-thread] Exit");
fini_thread_state(&thread);
health_unregister(health_sessiond);
+ rcu_thread_offline();
+ rcu_unregister_thread();
end:
return NULL;
}
end:
return NULL;
}
This page took
0.02511 seconds
and
5
git commands to generate.