X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Fcontext-internal.h;h=c018e122d1a13886fa2bb815740679f078375561;hb=f574bfb4d81b26d3cfc0243868d138e33470a950;hp=8c3861ec6a0019bf11b4399832d0ae8b34ce6956;hpb=fc80554e0cd4c7739c64fe8bc8b87a77d3c19d07;p=lttng-ust.git diff --git a/liblttng-ust/context-internal.h b/liblttng-ust/context-internal.h index 8c3861ec..c018e122 100644 --- a/liblttng-ust/context-internal.h +++ b/liblttng-ust/context-internal.h @@ -8,104 +8,152 @@ #define _LTTNG_UST_CONTEXT_INTERNAL_H #include -#include "ust-helper.h" - -LTTNG_HIDDEN -int lttng_context_init_all(struct lttng_ctx **ctx); - -LTTNG_HIDDEN -int lttng_attach_context(struct lttng_ust_context *context_param, - union ust_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 +#include "ust-events-internal.h" +#include "ust-context-provider.h" + +__attribute__((visibility("hidden"))) +int lttng_context_init_all(struct lttng_ust_ctx **ctx); + +__attribute__((visibility("hidden"))) +int lttng_attach_context(struct lttng_ust_abi_context *context_param, + union lttng_ust_abi_args *uargs, + 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); + +__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 */