You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Apple were to making an next Vision Pro, they would have no choice but to use uftrace for Verifying the deterministic software behavior and performance measurement.
I found the Apple clang version 15.0.0 block the -pg options(no error message but when we do, there was no mcount or someting like that on objdump -dS assembly codes), so i tried to -finstrument-functions
$ uname -a
Darwin MacBookAir 23.2.0 Darwin Kernel Version 23.2.0:
Wed Nov 15 21:59:33 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8112 arm64
$ clang -v
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
I could found the reference that Apple used -finstrument-functions more than 10 years ago old age [2].
Saturn profiler -> macOS 10.15 Catalina
Apple' new profiler Instruments will replace the Saturn profiler
Instruments -> macOS 10.10 Yosemite
When I investigated the compile time what Apple clang version 15.0.0 looks library, I need some trace tool like strace so I can using ktrace on my Apple M2 [3].
If Apple were to making an next Vision Pro, they would have no choice but to use
uftrace
for Verifying the deterministic software behavior and performance measurement.I found the
Apple clang version 15.0.0
block the-pg
options(no error message but when we do, there was nomcount
or someting like that onobjdump -dS
assembly codes), so i tried to-finstrument-functions
My PoC Codes are right here.
Apple hide the
__cyg_profile_func_enter
,__cyg_profile_func_exit
in therelibc
.So when we compiled
-finstrument-functions
option only, that makesld
linking error.MyLib
implements the__cyg_profile_func_enter
,__cyg_profile_func_exit
[1].We need to our source codes building with shared library
MyLib.lib
.Test code
main.c
.Then
I could found the reference that Apple used
-finstrument-functions
more than 10 years ago old age [2].When I investigated the compile time what
Apple clang version 15.0.0
looks library, I need some trace tool likestrace
so I can usingktrace
on my Apple M2 [3].[1] https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/CreatingDynamicLibraries.html
[2] https://adrianboeing.blogspot.com/2010/02/profiling-on-mac-osx-with-saturn.html
[3] https://stackoverflow.com/questions/31045575/how-to-trace-system-calls-of-a-program-in-mac-os-x
The text was updated successfully, but these errors were encountered: