/*
* Non-static to ensure the compiler does not optimize away the xor.
*/
+uint8_t lttng_crash_magic_xor[]
+ __attribute__((visibility("hidden")));
uint8_t lttng_crash_magic_xor[] = RB_CRASH_DUMP_ABI_MAGIC_XOR;
/*
*
* If the sysconf call fails, don't populate the cache and return 0.
*/
-int num_possible_cpus(void);
+int num_possible_cpus(void)
+ __attribute__((visibility("hidden")));
#define for_each_possible_cpu(cpu) \
for ((cpu) = 0; (cpu) < num_possible_cpus(); (cpu)++)
value->u.u64 = get_ipc_ns();
}
-const struct lttng_ust_ctx_field *ctx_field = lttng_ust_static_ctx_field(
+static const struct lttng_ust_ctx_field *ctx_field = lttng_ust_static_ctx_field(
lttng_ust_static_event_field("ipc_ns",
lttng_ust_static_type_integer(sizeof(ino_t) * CHAR_BIT,
lttng_ust_rb_alignof(ino_t) * CHAR_BIT,
};
/* Socket from app (connect) to session daemon (listen) for communication */
-struct sock_info global_apps = {
+static struct sock_info global_apps = {
.name = "global",
.global = 1,
/* TODO: allow global_apps_sock_path override */
-struct sock_info local_apps = {
+static struct sock_info local_apps = {
.name = "local",
.global = 0,
.root_handle = -1,
#define UST_DL_STATE_HASH_BITS 8
#define UST_DL_STATE_TABLE_SIZE (1 << UST_DL_STATE_HASH_BITS)
-struct cds_hlist_head dl_state_table[UST_DL_STATE_TABLE_SIZE];
+static struct cds_hlist_head dl_state_table[UST_DL_STATE_TABLE_SIZE];
typedef void (*tracepoint_cb)(struct lttng_ust_session *session, void *priv);