Home
last modified time | relevance | path

Searched refs:__llvm_profile_data (Results 1 – 21 of 21) sorted by relevance

/llvm-project/compiler-rt/test/profile/
H A Dinstrprof-value-prof-2.c15 typedef struct __llvm_profile_data __llvm_profile_data; typedef
16 const __llvm_profile_data *__llvm_profile_begin_data(void);
17 const __llvm_profile_data *__llvm_profile_end_data(void);
18 void __llvm_profile_set_num_value_sites(__llvm_profile_data *Data,
21 __llvm_profile_data *
22 __llvm_profile_iterate_data(const __llvm_profile_data *Data);
23 void *__llvm_get_function_addr(const __llvm_profile_data *Data);
46 const __llvm_profile_data *Data, *DataEnd; in main()
58 __llvm_profile_set_num_value_sites((__llvm_profile_data *)Data, in main()
H A Dinstrprof-value-prof.c31 typedef struct __llvm_profile_data __llvm_profile_data; typedef
32 const __llvm_profile_data *__llvm_profile_begin_data(void);
33 const __llvm_profile_data *__llvm_profile_end_data(void);
34 void __llvm_profile_set_num_value_sites(__llvm_profile_data *Data,
37 __llvm_profile_data *
38 __llvm_profile_iterate_data(const __llvm_profile_data *Data);
39 void *__llvm_get_function_addr(const __llvm_profile_data *Data);
82 const __llvm_profile_data *Data, *DataEnd; in main()
112 __llvm_profile_set_num_value_sites((__llvm_profile_data *)Data, in main()
/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingBuffer.c46 const __llvm_profile_data *DataBegin = __llvm_profile_begin_data(); in __llvm_profile_get_size_for_buffer()
47 const __llvm_profile_data *DataEnd = __llvm_profile_end_data(); in __llvm_profile_get_size_for_buffer()
67 uint64_t __llvm_profile_get_num_data(const __llvm_profile_data *Begin, in __llvm_profile_get_num_data()
68 const __llvm_profile_data *End) { in __llvm_profile_get_num_data()
70 return ((EndI + sizeof(__llvm_profile_data) - 1) - BeginI) / in __llvm_profile_get_num_data()
71 sizeof(__llvm_profile_data); in __llvm_profile_get_num_data()
75 uint64_t __llvm_profile_get_data_size(const __llvm_profile_data *Begin, in __llvm_profile_get_data_size()
76 const __llvm_profile_data *End) { in __llvm_profile_get_data_size()
77 return __llvm_profile_get_num_data(Begin, End) * sizeof(__llvm_profile_data); in __llvm_profile_get_data_size()
194 const __llvm_profile_data *DataBegin, const __llvm_profile_data *DataEnd, in __llvm_profile_get_size_for_buffer_internal()
[all …]
H A DInstrProfilingInternal.h23 const __llvm_profile_data *DataBegin, const __llvm_profile_data *DataEnd,
39 char *Buffer, const __llvm_profile_data *DataBegin,
40 const __llvm_profile_data *DataEnd, const char *CountersBegin,
127 uint32_t (*InitRTRecord)(const __llvm_profile_data *Data,
156 const __llvm_profile_data *DataBegin,
157 const __llvm_profile_data *DataEnd,
168 __llvm_profile_data *DstData);
199 extern void (*VPMergeHook)(struct ValueProfData *, __llvm_profile_data *);
H A DInstrProfilingPlatformOther.c20 static const __llvm_profile_data *DataFirst = NULL;
21 static const __llvm_profile_data *DataLast = NULL;
50 const __llvm_profile_data *Data = (__llvm_profile_data *)Data_; in __llvm_profile_register_function()
60 DataFirst = (const __llvm_profile_data *)getMinAddr(DataFirst, Data); in __llvm_profile_register_function()
64 DataLast = (const __llvm_profile_data *)getMaxAddr(DataLast, Data + 1); in __llvm_profile_register_function()
85 const __llvm_profile_data *__llvm_profile_begin_data(void) { return DataFirst; }
87 const __llvm_profile_data *__llvm_profile_end_data(void) { return DataLast; }
H A DInstrProfiling.h36 __llvm_profile_data {
39 } __llvm_profile_data; typedef
113 const __llvm_profile_data *__llvm_profile_begin_data(void);
114 const __llvm_profile_data *__llvm_profile_end_data(void);
250 uint64_t __llvm_profile_get_num_data(const __llvm_profile_data *Begin,
251 const __llvm_profile_data *End);
254 uint64_t __llvm_profile_get_data_size(const __llvm_profile_data *Begin,
255 const __llvm_profile_data *End);
H A DInstrProfilingMerge.c20 void (*VPMergeHook)(ValueProfData *, __llvm_profile_data *);
34 const __llvm_profile_data *FirstD = __llvm_profile_begin_data(); in lprofGetLoadModuleSignature()
54 __llvm_profile_data *SrcDataStart, *SrcDataEnd, *SrcData, *DstData; in __llvm_profile_check_compatibility()
56 (__llvm_profile_data *)(ProfileData + sizeof(__llvm_profile_header) + in __llvm_profile_check_compatibility()
83 Header->NumData * sizeof(__llvm_profile_data) + Header->NamesSize + in __llvm_profile_check_compatibility()
89 DstData = (__llvm_profile_data *)__llvm_profile_begin_data(); in __llvm_profile_check_compatibility()
144 __llvm_profile_data *SrcDataStart = in __llvm_profile_merge_from_buffer()
145 (__llvm_profile_data *)(ProfileData + sizeof(__llvm_profile_header) + in __llvm_profile_merge_from_buffer()
147 __llvm_profile_data *SrcDataEnd = SrcDataStart + Header->NumData; in __llvm_profile_merge_from_buffer()
178 __llvm_profile_data *SrcDat in __llvm_profile_merge_from_buffer()
[all...]
H A DInstrProfilingValue.c60 __llvm_profile_set_num_value_sites(__llvm_profile_data *Data, in __llvm_profile_set_num_value_sites()
78 COMPILER_RT_VISIBILITY const __llvm_profile_data *
79 __llvm_profile_iterate_data(const __llvm_profile_data *Data) { in __llvm_profile_iterate_data()
85 __llvm_get_function_addr(const __llvm_profile_data *Data) { in __llvm_get_function_addr()
95 static int allocateValueProfileCounters(__llvm_profile_data *Data) { in allocateValueProfileCounters()
152 __llvm_profile_data *PData = (__llvm_profile_data *)Data; in instrumentTargetValueImpl()
273 const __llvm_profile_data *Data;
310 initializeValueProfRuntimeRecord(const __llvm_profile_data *Data, in initializeValueProfRuntimeRecord()
H A DInstrProfilingPlatformWindows.c44 __llvm_profile_data COMPILER_RT_SECTION(".lprfd$A") DataStart = {0};
45 __llvm_profile_data COMPILER_RT_SECTION(".lprfd$Z") DataEnd = {0};
59 const __llvm_profile_data *__llvm_profile_begin_data(void) { in __llvm_profile_begin_data()
62 const __llvm_profile_data *__llvm_profile_end_data(void) { return &DataEnd; } in __llvm_profile_end_data()
H A DInstrProfilingPlatformDarwin.c18 extern __llvm_profile_data
21 extern __llvm_profile_data
61 const __llvm_profile_data *__llvm_profile_begin_data(void) { in __llvm_profile_begin_data()
65 const __llvm_profile_data *__llvm_profile_end_data(void) { return &DataEnd; } in __llvm_profile_end_data()
H A DInstrProfilingWriter.c128 const __llvm_profile_data *Data) { in writeOneValueProfData()
219 const __llvm_profile_data *DataBegin, in writeValueProfData()
220 const __llvm_profile_data *DataEnd) { in writeValueProfData()
222 const __llvm_profile_data *DI = 0; in writeValueProfData()
245 const __llvm_profile_data *DataBegin = __llvm_profile_begin_data(); in lprofWriteData()
246 const __llvm_profile_data *DataEnd = __llvm_profile_end_data(); in lprofWriteData()
264 lprofWriteDataImpl(ProfDataWriter *Writer, const __llvm_profile_data *DataBegin, in lprofWriteDataImpl()
265 const __llvm_profile_data *DataEnd, in lprofWriteDataImpl()
H A DInstrProfiling.c67 const __llvm_profile_data *DataBegin = __llvm_profile_begin_data(); in __llvm_profile_reset_counters()
68 const __llvm_profile_data *DataEnd = __llvm_profile_end_data(); in __llvm_profile_reset_counters()
69 const __llvm_profile_data *DI; in __llvm_profile_reset_counters()
H A DInstrProfilingPlatformLinux.c44 extern __llvm_profile_data PROF_DATA_START COMPILER_RT_VISIBILITY
46 extern __llvm_profile_data PROF_DATA_STOP COMPILER_RT_VISIBILITY
66 COMPILER_RT_VISIBILITY const __llvm_profile_data * in __llvm_profile_end_data()
70 COMPILER_RT_VISIBILITY const __llvm_profile_data * in __llvm_profile_begin_names()
H A DInstrProfilingPlatformFuchsia.c117 const __llvm_profile_data *DataBegin = __llvm_profile_begin_data(); in __llvm_profile_initialize()
118 const __llvm_profile_data *DataEnd = __llvm_profile_end_data(); in __llvm_profile_initialize()
H A DInstrProfilingMergeFile.c25 __llvm_profile_data *DstData) { in lprofMergeValueProfData()
H A DInstrProfilingFile.c109 const __llvm_profile_data *DataBegin = __llvm_profile_begin_data(); in mmapForContinuousMode()
110 const __llvm_profile_data *DataEnd = __llvm_profile_end_data(); in mmapForContinuousMode()
249 const __llvm_profile_data *DataBegin = __llvm_profile_begin_data(); in mmapForContinuousMode()
250 const __llvm_profile_data *DataEnd = __llvm_profile_end_data(); in mmapForContinuousMode()
/llvm-project/compiler-rt/test/profile/Inputs/
H A Dinstrprof-value-prof-visibility.c12 struct __llvm_profile_data;
14 void lprofMergeValueProfData(struct ValueProfData *, struct __llvm_profile_data *);
39 void (*SymHandle)(struct ValueProfData *, struct __llvm_profile_data *) = in main()
40 (void (*)(struct ValueProfData *, struct __llvm_profile_data *))dlsym( in main()
/llvm-project/compiler-rt/test/profile/Linux/
H A Dcorrupted-profile.c33 typedef struct __llvm_profile_data { struct
36 } __llvm_profile_data; typedef
61 __llvm_profile_data *SrcDataStart = in main()
62 (__llvm_profile_data *)(Buf + sizeof(__llvm_profile_header) + in main()
H A Dbinary-id-padding.c31 typedef struct __llvm_profile_data { struct
34 } __llvm_profile_data; typedef
H A Dinstrprof-merge-vp.c19 struct __llvm_profile_data;
21 void lprofMergeValueProfData(struct ValueProfData *, struct __llvm_profile_data *);
/llvm-project/llvm/docs/
H A DInstrProfileFormat.rst182 The in-memory representation of the metadata is `__llvm_profile_data`_.
186 .. _`__llvm_profile_data`: https://github.com/llvm/llvm-project/blob/7c3b67d2038cfb48a80299089f6a13… target