X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fjul.h;h=92da2012e13f02d9d809e9593ff846730327ce88;hb=db8f1377d850c1b18d33ddc2a6f2f3c91c3210bc;hp=1e32ea5558e9f756542c57d2a6a158c9ed03a815;hpb=3c6a091f88fa6b237729cab17d6f6d227da82f59;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/jul.h b/src/bin/lttng-sessiond/jul.h index 1e32ea555..92da2012e 100644 --- a/src/bin/lttng-sessiond/jul.h +++ b/src/bin/lttng-sessiond/jul.h @@ -15,8 +15,8 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef _JUL_H -#define _JUL_H +#ifndef LTTNG_SESSIOND_JUL_H +#define LTTNG_SESSIOND_JUL_H #define _GNU_SOURCE #include @@ -39,8 +39,9 @@ struct jul_register_msg { }; /* - * JUL application object created after a successful registration. This object - * is kept inside an UST app. + * JUL application object created after a successful registration. This + * object is linked to its associated UST app by their PID through hash + * table lookups. */ struct jul_app { /* @@ -53,14 +54,6 @@ struct jul_app { */ struct lttcomm_sock *sock; - /* - * Associated UST app. socket. To get a reference to the ust application - * object corresponding to that socket, a lookup MUST be done each time - * since there is important synchronization issue for the lockless hash - * table shared accross multiple threads. - */ - int ust_app_sock; - /* Initialized with the JUL sock value. */ struct lttng_ht_node_ulong node; }; @@ -123,8 +116,6 @@ struct jul_app *jul_create_app(pid_t pid, struct lttcomm_sock *sock); void jul_add_app(struct jul_app *app); void jul_delete_app(struct jul_app *app); struct jul_app *jul_find_app_by_sock(int sock); -void jul_attach_app(struct jul_app *japp); -void jul_detach_app(struct jul_app *app); void jul_destroy_app(struct jul_app *app); /* JUL action API */ @@ -133,4 +124,4 @@ int jul_disable_event(struct jul_event *event); void jul_update(struct jul_domain *domain, int sock); int jul_list_events(struct lttng_event **events); -#endif /* _JUL_H */ +#endif /* LTTNG_SESSIOND_JUL_H */