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: InstrProfilingPlatformDarwin.c
/*===- InstrProfilingPlatformDarwin.c - Profile data on Darwin ------------===*\ |* |* 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(__APPLE__) /* Use linker magic to find the bounds of the Data section. */ COMPILER_RT_VISIBILITY extern __llvm_profile_data DataStart __asm("section$start$__DATA$" INSTR_PROF_DATA_SECT_NAME); COMPILER_RT_VISIBILITY extern __llvm_profile_data DataEnd __asm("section$end$__DATA$" INSTR_PROF_DATA_SECT_NAME); COMPILER_RT_VISIBILITY extern char NamesStart __asm("section$start$__DATA$" INSTR_PROF_NAME_SECT_NAME); COMPILER_RT_VISIBILITY extern char NamesEnd __asm("section$end$__DATA$" INSTR_PROF_NAME_SECT_NAME); COMPILER_RT_VISIBILITY extern uint64_t CountersStart __asm("section$start$__DATA$" INSTR_PROF_CNTS_SECT_NAME); COMPILER_RT_VISIBILITY extern uint64_t CountersEnd __asm("section$end$__DATA$" INSTR_PROF_CNTS_SECT_NAME); COMPILER_RT_VISIBILITY extern uint32_t OrderFileStart __asm("section$start$__DATA$" INSTR_PROF_ORDERFILE_SECT_NAME); COMPILER_RT_VISIBILITY extern ValueProfNode VNodesStart __asm("section$start$__DATA$" INSTR_PROF_VNODES_SECT_NAME); COMPILER_RT_VISIBILITY extern ValueProfNode VNodesEnd __asm("section$end$__DATA$" INSTR_PROF_VNODES_SECT_NAME); COMPILER_RT_VISIBILITY const __llvm_profile_data *__llvm_profile_begin_data(void) { return &DataStart; } COMPILER_RT_VISIBILITY const __llvm_profile_data *__llvm_profile_end_data(void) { return &DataEnd; } COMPILER_RT_VISIBILITY const char *__llvm_profile_begin_names(void) { return &NamesStart; } COMPILER_RT_VISIBILITY const char *__llvm_profile_end_names(void) { return &NamesEnd; } COMPILER_RT_VISIBILITY uint64_t *__llvm_profile_begin_counters(void) { return &CountersStart; } COMPILER_RT_VISIBILITY uint64_t *__llvm_profile_end_counters(void) { return &CountersEnd; } COMPILER_RT_VISIBILITY uint32_t *__llvm_profile_begin_orderfile(void) { return &OrderFileStart; } COMPILER_RT_VISIBILITY ValueProfNode *__llvm_profile_begin_vnodes(void) { return &VNodesStart; } COMPILER_RT_VISIBILITY ValueProfNode *__llvm_profile_end_vnodes(void) { return &VNodesEnd; } COMPILER_RT_VISIBILITY ValueProfNode *CurrentVNode = &VNodesStart; COMPILER_RT_VISIBILITY ValueProfNode *EndVNode = &VNodesEnd; #endif
Upload File
Create Folder