Hide print_op private symbol
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 9 Mar 2021 19:49:03 +0000 (14:49 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Mar 2021 14:41:07 +0000 (09:41 -0500)
The major SONAME bump to '1' gives us the opportunity to hide private
symbols that should never have been visible.

Also namespace print_op to lttng_bytecode_print_op.

Change-Id: I937b37605d88503102227e82e58600e66f89b5c6
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-bytecode-interpreter.c
liblttng-ust/lttng-bytecode-validator.c
liblttng-ust/lttng-bytecode.c
liblttng-ust/lttng-bytecode.h

index ee44a8aff68f76bd804776a8c8e281a708fc9a29..9def26cd4f0e572b3157cc804bd4475f54c34071 100644 (file)
@@ -171,7 +171,7 @@ uint64_t lttng_bytecode_capture_interpret_false(void *capture_data,
        for (pc = next_pc = start_pc; pc - start_pc < bytecode->len;    \
                        pc = next_pc) {                                 \
                dbg_printf("Executing op %s (%u)\n",                    \
-                       print_op((unsigned int) *(bytecode_opcode_t *) pc), \
+                       lttng_bytecode_print_op((unsigned int) *(bytecode_opcode_t *) pc), \
                        (unsigned int) *(bytecode_opcode_t *) pc);      \
                switch (*(bytecode_opcode_t *) pc)      {
 
index c5dc62729bcc1843467463eaffde240ab20b511c..cbae3215690e70fd4651dca82f520258021f971f 100644 (file)
@@ -1975,7 +1975,7 @@ int lttng_bytecode_validate(struct bytecode_runtime *bytecode)
                        goto end;
                }
                dbg_printf("Validating op %s (%u)\n",
-                       print_op((unsigned int) *(bytecode_opcode_t *) pc),
+                       lttng_bytecode_print_op((unsigned int) *(bytecode_opcode_t *) pc),
                        (unsigned int) *(bytecode_opcode_t *) pc);
 
                /*
index 9bb7f11f77138439c511d5532ad2d9db238e8ca5..793495700758d1edfc22bd7b736f3c88e2d86783 100644 (file)
@@ -162,7 +162,7 @@ static const char *opnames[] = {
        [ BYTECODE_OP_RETURN_S64 ] = "RETURN_S64",
 };
 
-const char *print_op(enum bytecode_op op)
+const char *lttng_bytecode_print_op(enum bytecode_op op)
 {
        if (op >= NR_BYTECODE_OPS)
                return "UNKNOWN";
index c0e90c45bc5744ad99a3f7b5f4d4a76b81e956f4..4e9f97c99468d3b4286c92f2b862b744fb14208d 100644 (file)
@@ -314,8 +314,8 @@ struct lttng_interpreter_output {
        } u;
 };
 
-/* Should be hidden but would break the ABI */
-const char *print_op(enum bytecode_op op);
+LTTNG_HIDDEN
+const char *lttng_bytecode_print_op(enum bytecode_op op);
 
 LTTNG_HIDDEN
 void lttng_bytecode_filter_sync_state(struct lttng_bytecode_runtime *runtime);
This page took 0.027594 seconds and 4 git commands to generate.