From 654165bff0eb2f492aced9cb085c23c853541e2f Mon Sep 17 00:00:00 2001 From: Volodymyr Turanskyy <66017160+voltur01@users.noreply.github.com> Date: Wed, 27 Sep 2023 13:55:00 +0100 Subject: [PATCH] Revert "Fix the profiling sample runtime (#308)" This reverts commit de381f7b994c24af79522056e6e98e12b4d202cb. --- samples/src/cpp-baremetal-semihosting-prof/proflib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/src/cpp-baremetal-semihosting-prof/proflib.c b/samples/src/cpp-baremetal-semihosting-prof/proflib.c index 4477fff3..273fd757 100644 --- a/samples/src/cpp-baremetal-semihosting-prof/proflib.c +++ b/samples/src/cpp-baremetal-semihosting-prof/proflib.c @@ -65,10 +65,11 @@ static const char *NamesLast = NULL; static char *CountersFirst = NULL; static char *CountersLast = NULL; +#define INSTR_PROF_RAW_VERSION 8 #define INSTR_PROF_RAW_VERSION_VAR __llvm_profile_raw_version #define INSTR_PROF_PROFILE_RUNTIME_VAR __llvm_profile_runtime -extern uint64_t INSTR_PROF_RAW_VERSION_VAR; +uint64_t INSTR_PROF_RAW_VERSION_VAR = INSTR_PROF_RAW_VERSION; int INSTR_PROF_PROFILE_RUNTIME_VAR; void __llvm_profile_dump(void);