003 File Manager
Current Path:
/usr/src/contrib/llvm-project/compiler-rt/lib/profile
usr
/
src
/
contrib
/
llvm-project
/
compiler-rt
/
lib
/
profile
/
📁
..
📄
GCDAProfiling.c
(18.06 KB)
📄
InstrProfiling.c
(2.23 KB)
📄
InstrProfiling.h
(12.8 KB)
📄
InstrProfilingBiasVar.c
(669 B)
📄
InstrProfilingBuffer.c
(5.36 KB)
📄
InstrProfilingFile.c
(35.95 KB)
📄
InstrProfilingInternal.c
(928 B)
📄
InstrProfilingInternal.h
(7.75 KB)
📄
InstrProfilingMerge.c
(5.15 KB)
📄
InstrProfilingMergeFile.c
(1.62 KB)
📄
InstrProfilingNameVar.c
(707 B)
📄
InstrProfilingPlatformDarwin.c
(2.46 KB)
📄
InstrProfilingPlatformFuchsia.c
(6.64 KB)
📄
InstrProfilingPlatformLinux.c
(3.36 KB)
📄
InstrProfilingPlatformOther.c
(3.48 KB)
📄
InstrProfilingPlatformWindows.c
(2.5 KB)
📄
InstrProfilingPort.h
(4.96 KB)
📄
InstrProfilingRuntime.cpp
(650 B)
📄
InstrProfilingUtil.c
(7.92 KB)
📄
InstrProfilingUtil.h
(2.95 KB)
📄
InstrProfilingValue.c
(12.74 KB)
📄
InstrProfilingWriter.c
(10.7 KB)
📄
WindowsMMap.c
(4.21 KB)
📄
WindowsMMap.h
(1.66 KB)
Editing: InstrProfilingPlatformWindows.c
/*===- InstrProfilingPlatformWindows.c - Profile data on Windows ----------===*\ |* |* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |* See https://llvm.org/LICENSE.txt for license information. |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |* \*===----------------------------------------------------------------------===*/ #include "InstrProfiling.h" #if defined(_WIN32) #if defined(_MSC_VER) /* Merge read-write sections into .data. */ #pragma comment(linker, "/MERGE:.lprfc=.data") #pragma comment(linker, "/MERGE:.lprfd=.data") #pragma comment(linker, "/MERGE:.lprfv=.data") #pragma comment(linker, "/MERGE:.lprfnd=.data") /* Do *NOT* merge .lprfn and .lcovmap into .rdata. llvm-cov must be able to find * after the fact. */ /* Allocate read-only section bounds. */ #pragma section(".lprfn$A", read) #pragma section(".lprfn$Z", read) /* Allocate read-write section bounds. */ #pragma section(".lprfd$A", read, write) #pragma section(".lprfd$Z", read, write) #pragma section(".lprfc$A", read, write) #pragma section(".lprfc$Z", read, write) #pragma section(".lorderfile$A", read, write) #pragma section(".lprfnd$A", read, write) #pragma section(".lprfnd$Z", read, write) #endif __llvm_profile_data COMPILER_RT_SECTION(".lprfd$A") DataStart = {0}; __llvm_profile_data COMPILER_RT_SECTION(".lprfd$Z") DataEnd = {0}; const char COMPILER_RT_SECTION(".lprfn$A") NamesStart = '\0'; const char COMPILER_RT_SECTION(".lprfn$Z") NamesEnd = '\0'; uint64_t COMPILER_RT_SECTION(".lprfc$A") CountersStart; uint64_t COMPILER_RT_SECTION(".lprfc$Z") CountersEnd; uint32_t COMPILER_RT_SECTION(".lorderfile$A") OrderFileStart; ValueProfNode COMPILER_RT_SECTION(".lprfnd$A") VNodesStart; ValueProfNode COMPILER_RT_SECTION(".lprfnd$Z") VNodesEnd; const __llvm_profile_data *__llvm_profile_begin_data(void) { return &DataStart + 1; } const __llvm_profile_data *__llvm_profile_end_data(void) { return &DataEnd; } const char *__llvm_profile_begin_names(void) { return &NamesStart + 1; } const char *__llvm_profile_end_names(void) { return &NamesEnd; } uint64_t *__llvm_profile_begin_counters(void) { return &CountersStart + 1; } uint64_t *__llvm_profile_end_counters(void) { return &CountersEnd; } uint32_t *__llvm_profile_begin_orderfile(void) { return &OrderFileStart; } ValueProfNode *__llvm_profile_begin_vnodes(void) { return &VNodesStart + 1; } ValueProfNode *__llvm_profile_end_vnodes(void) { return &VNodesEnd; } ValueProfNode *CurrentVNode = &VNodesStart + 1; ValueProfNode *EndVNode = &VNodesEnd; #endif
Upload File
Create Folder