profil(3) Library Functions Manual profil(3) profil - C (libc, -lc) #include int profil(unsigned short *buf, size_t bufsiz, size_t offset, unsigned int scale); glibc (. feature_test_macros(7)): profil(): glibc 2.21: _DEFAULT_SOURCE glibc 2.19 2.20: _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) glibc 2.19, : _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) . buf bufsiz . 10 (PC): offset, scale 65536. bufsiz, buf . buf NULL, . . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |profil() | | MT-Unsafe | +----------------------------+----------------------------------------------------------+--------------------------+ . Similar to a call in SVr4. profil() , ITIMER_PROF ( setitimer(2)). True kernel profiling provides more accurate results. gprof(1), sprof(1), setitimer(2), sigaction(2), signal(2) () Alexey, Azamat Hackimov , kogamatranslator49 , Darima Kogan , Max Is , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.15 17 2025 . profil(3)