Hide symbols that shouldn't be part of the ABI
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 21 Apr 2021 23:19:16 +0000 (19:19 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 23 Apr 2021 19:41:45 +0000 (15:41 -0400)
Change-Id: I1d3304cb60dddbd8cdb7ec9fdef66326564a3b7c
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/common/ringbuffer/ring_buffer_frontend.c
src/common/smp.h
src/lib/lttng-ust/lttng-context-ipc-ns.c
src/lib/lttng-ust/lttng-ust-comm.c
src/lib/lttng-ust/lttng-ust-statedump.c

index d6f5365c8eb1e3629d4a4c829414d13bb00ea8da..fa0a984bfe26ea9f6aa8ff27c84882ad0040426c 100644 (file)
@@ -78,6 +78,8 @@
 /*
  * 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;
 
 /*
index 563fe623591d46821664dcd6cb3750d421f85188..5f81094fc802c7f6559d876c03ae6af6f4be13a4 100644 (file)
@@ -13,7 +13,8 @@
  *
  * 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)++)
index 96267ef9d27b3c16fcae43a32c4992880c08df73..f635a23077bfdf47ff4c2781994ca3454dee7fea 100644 (file)
@@ -121,7 +121,7 @@ void ipc_ns_get_value(void *priv __attribute__((unused)),
        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,
index 442ca892c3b13dd10c7cb5e8447cf53677b00445..dc1b6e37bf8bc2af3bb873283a2b7c251a49dc2b 100644 (file)
@@ -264,7 +264,7 @@ struct sock_info {
 };
 
 /* 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,
 
@@ -286,7 +286,7 @@ struct sock_info global_apps = {
 
 /* 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,
index a663487e3dd36762e9fe99ecbdaba639c4a23c75..fca97d3e420067604016a83884d7b3067910b42e 100644 (file)
@@ -63,7 +63,7 @@ struct lttng_ust_dl_node {
 
 #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);
 
This page took 0.027865 seconds and 4 git commands to generate.