X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Fcontext-internal.h;h=c018e122d1a13886fa2bb815740679f078375561;hb=f69fe5fb0a2b0c581f0562bdd04ab2a003d239f9;hp=43c5513bcc63de527e4f9c591e2eca0f68d35812;hpb=fd17d7cecd427479c035cd99cb2b2fb622bb3a38;p=lttng-ust.git diff --git a/liblttng-ust/context-internal.h b/liblttng-ust/context-internal.h index 43c5513b..c018e122 100644 --- a/liblttng-ust/context-internal.h +++ b/liblttng-ust/context-internal.h @@ -8,112 +8,152 @@ #define _LTTNG_UST_CONTEXT_INTERNAL_H #include -#include "ust-helper.h" #include "ust-events-internal.h" +#include "ust-context-provider.h" -LTTNG_HIDDEN -int lttng_context_init_all(struct lttng_ctx **ctx); +__attribute__((visibility("hidden"))) +int lttng_context_init_all(struct lttng_ust_ctx **ctx); -LTTNG_HIDDEN +__attribute__((visibility("hidden"))) int lttng_attach_context(struct lttng_ust_abi_context *context_param, union lttng_ust_abi_args *uargs, - struct lttng_ctx **ctx, struct lttng_session *session); - -LTTNG_HIDDEN -int lttng_find_context(struct lttng_ctx *ctx, const char *name); -LTTNG_HIDDEN -int lttng_get_context_index(struct lttng_ctx *ctx, const char *name); -LTTNG_HIDDEN -struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx_p); -LTTNG_HIDDEN -void lttng_context_update(struct lttng_ctx *ctx); -LTTNG_HIDDEN -void lttng_remove_context_field(struct lttng_ctx **ctx_p, - struct lttng_ctx_field *field); -LTTNG_HIDDEN -void lttng_destroy_context(struct lttng_ctx *ctx); - -LTTNG_HIDDEN -int lttng_context_add_rcu(struct lttng_ctx **ctx_p, - const struct lttng_ctx_field *f); - -LTTNG_HIDDEN + struct lttng_ust_ctx **ctx, struct lttng_ust_session *session); + +__attribute__((visibility("hidden"))) +int lttng_find_context(struct lttng_ust_ctx *ctx, const char *name); + +__attribute__((visibility("hidden"))) +int lttng_get_context_index(struct lttng_ust_ctx *ctx, const char *name); + +__attribute__((visibility("hidden"))) +struct lttng_ust_ctx_field *lttng_append_context(struct lttng_ust_ctx **ctx_p); + +__attribute__((visibility("hidden"))) +void lttng_context_update(struct lttng_ust_ctx *ctx); + +__attribute__((visibility("hidden"))) +void lttng_remove_context_field(struct lttng_ust_ctx **ctx_p, + struct lttng_ust_ctx_field *field); + +__attribute__((visibility("hidden"))) +void lttng_destroy_context(struct lttng_ust_ctx *ctx); + +__attribute__((visibility("hidden"))) +int lttng_context_add_rcu(struct lttng_ust_ctx **ctx_p, + struct lttng_ust_ctx_field *f); + +__attribute__((visibility("hidden"))) int lttng_context_is_app(const char *name); -LTTNG_HIDDEN +__attribute__((visibility("hidden"))) void lttng_context_vtid_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_vpid_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_cgroup_ns_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_ipc_ns_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_mnt_ns_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_net_ns_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_pid_ns_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_user_ns_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_uts_ns_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_time_ns_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_vuid_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_veuid_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_vsuid_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_vgid_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_vegid_reset(void); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) void lttng_context_vsgid_reset(void); -LTTNG_HIDDEN -int lttng_add_vtid_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_vpid_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_pthread_id_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_procname_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_ip_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_cpu_id_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_dyntest_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_time_ns_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_vuid_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_veuid_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_vsuid_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_vgid_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_vegid_to_ctx(struct lttng_ctx **ctx); -LTTNG_HIDDEN -int lttng_add_vsgid_to_ctx(struct lttng_ctx **ctx); +__attribute__((visibility("hidden"))) +int lttng_add_vtid_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_vpid_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_pthread_id_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_procname_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_ip_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_cpu_id_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_dyntest_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_cgroup_ns_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_ipc_ns_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_mnt_ns_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_net_ns_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_pid_ns_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_user_ns_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_uts_ns_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_time_ns_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_vuid_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_veuid_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_vsuid_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_vgid_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_vegid_to_ctx(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_add_vsgid_to_ctx(struct lttng_ust_ctx **ctx); #endif /* _LTTNG_UST_CONTEXT_INTERNAL_H */