summaryrefslogtreecommitdiff
path: root/src/vm/crossgen
diff options
context:
space:
mode:
authorBrian Robbins <brianrob@microsoft.com>2015-11-09 17:50:56 -0800
committerBrian Robbins <brianrob@microsoft.com>2015-11-12 13:04:47 -0800
commit3801b5493e9d4b8837ceec03f49707656877fff1 (patch)
tree23828a8ede5c24422479fc062aa2800b2ffa4418 /src/vm/crossgen
parent128546aed70f8f24efebd50b0f6c358f41ff9756 (diff)
downloadcoreclr-3801b5493e9d4b8837ceec03f49707656877fff1.tar.gz
coreclr-3801b5493e9d4b8837ceec03f49707656877fff1.tar.bz2
coreclr-3801b5493e9d4b8837ceec03f49707656877fff1.zip
Enable offline generation of text-based symbol tables for native images. This is needed in order to profile applications on Linux using perf_event.
This change also modifies the runtime to emit a perfmap entry when a native image is loaded so that offline trace processing tools can identify when a perfmap file for a native image is needed and generate it.
Diffstat (limited to 'src/vm/crossgen')
-rw-r--r--src/vm/crossgen/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vm/crossgen/CMakeLists.txt b/src/vm/crossgen/CMakeLists.txt
index e1fb8c7ef6..f5d2399a08 100644
--- a/src/vm/crossgen/CMakeLists.txt
+++ b/src/vm/crossgen/CMakeLists.txt
@@ -147,4 +147,10 @@ if (WIN32)
set_source_files_properties(../mscorlib.cpp PROPERTIES COMPILE_FLAGS "/Y-")
endif (WIN32)
+if (CLR_CMAKE_PLATFORM_LINUX)
+ list(APPEND VM_CROSSGEN_SOURCES
+ ../perfmap.cpp
+ )
+endif (CLR_CMAKE_PLATFORM_LINUX)
+
add_library(cee_crossgen ${VM_CROSSGEN_SOURCES})