X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fjul.h;h=0a0c8ef0eb3e90aa6c057b77a05eb11956487b17;hp=1bcd5ef795edb190af64aa635ce7c0b12177cdc9;hb=22fb211b5ad4d39789f782180a5e610b72a20291;hpb=b2064f542c84041bf0b991d7d83f9e85db8adc19 diff --git a/src/bin/lttng-sessiond/jul.h b/src/bin/lttng-sessiond/jul.h index 1bcd5ef79..0a0c8ef0e 100644 --- a/src/bin/lttng-sessiond/jul.h +++ b/src/bin/lttng-sessiond/jul.h @@ -30,6 +30,11 @@ */ struct lttng_ht *jul_apps_ht_by_sock; +struct jul_ht_key { + const char *name; + enum lttng_loglevel_jul loglevel; +}; + /* * Registration message payload from a JUL application. The PID is used to find * back the corresponding UST app object so both socket can be linked. @@ -79,6 +84,9 @@ struct jul_event { * Hash table nodes of the JUL domain. Indexed by name string. */ struct lttng_ht_node_str node; + + /* Bytecode filter associated with the event . NULL if none. */ + struct lttng_filter_bytecode *filter; }; /* @@ -107,9 +115,13 @@ int jul_init_domain(struct jul_domain *dom); void jul_destroy_domain(struct jul_domain *dom); /* JUL event API. */ -struct jul_event *jul_create_event(const char *name); +struct jul_event *jul_create_event(const char *name, + struct lttng_filter_bytecode *filter); void jul_add_event(struct jul_event *event, struct jul_domain *dom); -struct jul_event *jul_find_by_name(const char *name, struct jul_domain *dom); +struct jul_event *jul_find_event(const char *name, + enum lttng_loglevel_jul loglevel, struct jul_domain *dom); +struct jul_event *jul_find_event_by_name(const char *name, + struct jul_domain *dom); void jul_delete_event(struct jul_event *event, struct jul_domain *dom); void jul_destroy_event(struct jul_event *event); @@ -119,6 +131,7 @@ 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_destroy_app(struct jul_app *app); +int jul_send_registration_done(struct jul_app *app); /* JUL action API */ int jul_enable_event(struct jul_event *event);