X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ust%2Flttng-context-procname.c;h=80ba9825e4ea97e7517a659010d409781620e19f;hb=d7df80f6c93bcc9682567f016707ab661be60b14;hp=09484d85e95a4e28402bb7bfa20d6b1be406bcb2;hpb=b5457df5fd74e033cbaa75307f9bbc12aff4ab8f;p=lttng-ust.git diff --git a/src/lib/lttng-ust/lttng-context-procname.c b/src/lib/lttng-ust/lttng-context-procname.c index 09484d85..80ba9825 100644 --- a/src/lib/lttng-ust/lttng-context-procname.c +++ b/src/lib/lttng-ust/lttng-context-procname.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include "common/compat/pthread.h" @@ -67,6 +67,7 @@ void lttng_ust_context_procname_reset(void) static size_t procname_get_size(void *priv __attribute__((unused)), + struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)), size_t offset __attribute__((unused))) { return LTTNG_UST_ABI_PROCNAME_LEN; @@ -74,8 +75,9 @@ size_t procname_get_size(void *priv __attribute__((unused)), static void procname_record(void *priv __attribute__((unused)), - struct lttng_ust_ring_buffer_ctx *ctx, - struct lttng_ust_channel_buffer *chan) + struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)), + struct lttng_ust_ring_buffer_ctx *ctx, + struct lttng_ust_channel_buffer *chan) { const char *procname; @@ -85,6 +87,7 @@ void procname_record(void *priv __attribute__((unused)), static void procname_get_value(void *priv __attribute__((unused)), + struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)), struct lttng_ust_ctx_value *value) { value->u.str = wrapper_getprocname(); @@ -117,9 +120,9 @@ error_find_context: } /* - * Force a read (imply TLS fixup for dlopen) of TLS variables. + * Force a read (imply TLS allocation for dlopen) of TLS variables. */ -void lttng_fixup_procname_tls(void) +void lttng_procname_alloc_tls(void) { asm volatile ("" : : "m" (URCU_TLS(cached_procname)[0])); }