xref: /xnu-12377.81.4/bsd/pgo/profile_runtime_data.c (revision 043036a2b3718f7f0be807e2870f8f47d3fa0796)
1*043036a2SApple OSS Distributions #include <mach/vm_param.h>
2*043036a2SApple OSS Distributions 
3*043036a2SApple OSS Distributions #ifndef __BUILDING_XNU_LIBRARY__
4*043036a2SApple OSS Distributions /*
5*043036a2SApple OSS Distributions  * This tells compiler_rt not to include userspace-specific stuff writing
6*043036a2SApple OSS Distributions  * profile data to a file.
7*043036a2SApple OSS Distributions  * When building userspace unit-test we don't do that because we do want
8*043036a2SApple OSS Distributions  * the normal file-saving coverage mechanism to work as usual in a
9*043036a2SApple OSS Distributions  */
10*043036a2SApple OSS Distributions int __llvm_profile_runtime = 0;
11*043036a2SApple OSS Distributions 
12*043036a2SApple OSS Distributions #endif /* __BUILDING_XNU_LIBRARY__ */
13*043036a2SApple OSS Distributions 
14*043036a2SApple OSS Distributions /* compiler-rt requires this.  It uses it to page-align
15*043036a2SApple OSS Distributions  * certain things inside its buffers.
16*043036a2SApple OSS Distributions  */
17*043036a2SApple OSS Distributions 
18*043036a2SApple OSS Distributions extern int getpagesize(void);
19*043036a2SApple OSS Distributions 
20*043036a2SApple OSS Distributions int
getpagesize()21*043036a2SApple OSS Distributions getpagesize()
22*043036a2SApple OSS Distributions {
23*043036a2SApple OSS Distributions 	return PAGE_SIZE;
24*043036a2SApple OSS Distributions }
25