From 7fab4f9a8b3e7314f81d80a8e5acdfa9b9daa8ae Mon Sep 17 00:00:00 2001 From: "T. Kowalski" Date: Thu, 23 Oct 2025 14:16:49 +0000 Subject: [PATCH 1/2] profiling: use echion with memcpy --- ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt b/ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt index 3a2efc7cd9d..2d86bf95f61 100644 --- a/ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt +++ b/ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt @@ -41,11 +41,11 @@ endif() # Add echion set(ECHION_COMMIT - "39d74a33a3f3abe810e6a29132721871e3127472" # https://github.com/P403n1x87/echion/commit/39d74a33a3f3abe810e6a29132721871e3127472 + "f7d3870a65082f123245f456ddef63d41de0e842" # https://github.com/kowalskithomas/echion/commit/f7d3870a65082f123245f456ddef63d41de0e842 CACHE STRING "Commit hash of echion to use") FetchContent_Declare( echion - GIT_REPOSITORY "https://github.com/P403n1x87/echion.git" + GIT_REPOSITORY "https://github.com/kowalskithomas/echion.git" GIT_TAG ${ECHION_COMMIT}) FetchContent_GetProperties(echion) @@ -54,7 +54,7 @@ if(NOT echion_POPULATED) endif() # Specify the target C-extension that we want to build -add_library(${EXTENSION_NAME} SHARED ${echion_SOURCE_DIR}/echion/frame.cc ${echion_SOURCE_DIR}/echion/render.cc +add_library(${EXTENSION_NAME} SHARED ${echion_SOURCE_DIR}/echion/frame.cc ${echion_SOURCE_DIR}/echion/render.cc ${echion_SOURCE_DIR}/echion/danger.cc src/sampler.cpp src/stack_renderer.cpp src/stack_v2.cpp src/thread_span_links.cpp) # Add common config From 34695b574b74a2002aea36be2cacb04044d1cd37 Mon Sep 17 00:00:00 2001 From: Thomas Kowalski Date: Fri, 24 Oct 2025 09:42:47 +0200 Subject: [PATCH 2/2] profiling: use alternative memcpy implementation --- ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt b/ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt index 2d86bf95f61..3d7ee62bdb0 100644 --- a/ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt +++ b/ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt @@ -41,7 +41,7 @@ endif() # Add echion set(ECHION_COMMIT - "f7d3870a65082f123245f456ddef63d41de0e842" # https://github.com/kowalskithomas/echion/commit/f7d3870a65082f123245f456ddef63d41de0e842 + "a9c9e691b98162db64f9234640f923d608494580" # https://github.com/kowalskithomas/echion/commit/a9c9e691b98162db64f9234640f923d608494580 CACHE STRING "Commit hash of echion to use") FetchContent_Declare( echion