nuttx/libs/libc/misc
yezhonghui b3f9a70f7c libc/instrument: add recursion guard for instrument callbacks
Add g_instrument_in_progress flag to prevent infinite recursion when
instrumented functions are called from within the instrument callbacks
(e.g., perf_gettime). This provides a safety net in case any function
in the callback chain is accidentally instrumented.

Signed-off-by: yezhonghui <yezhonghui@xiaomi.com>
2026-04-21 01:36:07 +08:00
..
CMakeLists.txt libc/sem/mutex: add LIBC_SEM_MUTEX_NOINLINE for size prefer 2026-04-21 01:35:19 +08:00
Kconfig libc/sem/mutex: add LIBC_SEM_MUTEX_NOINLINE for size prefer 2026-04-21 01:35:19 +08:00
Make.defs libc/sem/mutex: add LIBC_SEM_MUTEX_NOINLINE for size prefer 2026-04-21 01:35:19 +08:00
lib_backtrace.c fix compile error 2026-04-21 01:31:32 +08:00
lib_bitmap.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_circbuf.c libc/misc/circbuf: add circbuf_reinit handle malloc/free not direct use. 2026-04-21 01:35:56 +08:00
lib_crc8.c [coverity]: Solve code quality issues 2026-04-21 01:28:15 +08:00
lib_crc8ccitt.c [coverity]: Solve code quality issues 2026-04-21 01:28:15 +08:00
lib_crc8h1d.c [coverity]: Solve code quality issues 2026-04-21 01:28:14 +08:00
lib_crc8h2f.c [coverity]: Solve code quality issues 2026-04-21 01:28:14 +08:00
lib_crc8rohc.c [coverity]: Solve code quality issues 2026-04-21 01:28:14 +08:00
lib_crc8table.c [coverity]: Solve code quality issues 2026-04-21 01:28:13 +08:00
lib_crc16.c [coverity]: Solve code quality issues 2026-04-21 01:28:17 +08:00
lib_crc16ccitt.c [coverity]: Solve code quality issues 2026-04-21 01:28:17 +08:00
lib_crc16h1021.c [coverity]: Solve code quality issues 2026-04-21 01:28:17 +08:00
lib_crc16h8005.c [coverity]: Solve code quality issues 2026-04-21 01:28:17 +08:00
lib_crc32.c [coverity]: Solve code quality issues 2026-04-21 01:28:15 +08:00
lib_crc32h04c11db7.c [coverity]: Solve code quality issues 2026-04-21 01:28:14 +08:00
lib_crc32hf4acfb13.c [coverity]: Solve code quality issues 2026-04-21 01:28:14 +08:00
lib_crc64.c [coverity]: Solve code quality issues 2026-04-21 01:28:15 +08:00
lib_crc64emac.c coverity: fix misra_c_2012_rule_10_3_violation 2026-04-21 01:31:57 +08:00
lib_creat.c libc: add creat function implementation 2026-04-21 01:28:56 +08:00
lib_cxx_initialize.c lib_cxx_initialize:remove global variables and lock 2026-04-21 01:34:17 +08:00
lib_debug.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_dumpbuffer.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_dumpvbuffer.c lib_dumpvbuffer.c: no need dump when buf == NULL or buflen == 0 2026-04-21 01:25:10 +08:00
lib_envpath.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_err.c fix compile error 2026-04-21 01:35:03 +08:00
lib_fchmodat.c rename lib_pathbuffer to lib_tempbuffer 2026-04-21 01:18:29 +08:00
lib_fdcheck.c fdcheck: define fdcheck symbol anyway 2026-04-21 01:33:48 +08:00
lib_fdsan.c fix compile error 2026-04-21 01:31:32 +08:00
lib_fnmatch.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_fstatat.c rename lib_pathbuffer to lib_tempbuffer 2026-04-21 01:18:29 +08:00
lib_ftok.c libs/libc/ftok: fix sizeof(char *), after tempbuffer 2026-04-21 01:31:27 +08:00
lib_getfullpath.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_getnprocs.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_getrandom.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_glob.c rename lib_pathbuffer to lib_tempbuffer 2026-04-21 01:18:29 +08:00
lib_idr.c libc/idr: Remove nodes from RB trees during destroy 2026-04-21 01:25:12 +08:00
lib_impure.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_instrument.c libc/instrument: add recursion guard for instrument callbacks 2026-04-21 01:36:07 +08:00
lib_kbddecode.c stream_getc: use lib_stream_eof instead of EOF 2026-04-21 01:14:32 +08:00
lib_kbdencode.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_lrucache.c libc/cache: Fix coverity: Incorrect shift operation 2026-04-21 01:35:29 +08:00
lib_mallopt.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_memfd.c rename lib_pathbuffer to lib_tempbuffer 2026-04-21 01:18:29 +08:00
lib_mkdirat.c rename lib_pathbuffer to lib_tempbuffer 2026-04-21 01:18:29 +08:00
lib_mkfifo.c rename lib_pathbuffer to lib_tempbuffer 2026-04-21 01:18:29 +08:00
lib_mknod.c rename lib_pathbuffer to lib_tempbuffer 2026-04-21 01:18:29 +08:00
lib_ncompress.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_note.c note: change tag and level to 8bit 2026-04-21 01:34:15 +08:00
lib_openat.c rename lib_pathbuffer to lib_tempbuffer 2026-04-21 01:18:29 +08:00
lib_ratelimit.c ratelimit.h: Update the definition of the ratelimit_state_s 2026-04-21 01:30:55 +08:00
lib_sem_mutex_noinline.c libc/sem/mutex: add LIBC_SEM_MUTEX_NOINLINE for size prefer 2026-04-21 01:35:19 +08:00
lib_slcddecode.c stream_getc: use lib_stream_eof instead of EOF 2026-04-21 01:14:32 +08:00
lib_slcdencode.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_tea_decrypt.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_tea_encrypt.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_tempbuffer.c lib_tempbuffer: change type char* to void* 2026-04-21 01:32:40 +08:00
lib_uadd32x64.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_uadd64.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_umask.c tls: split tls.h to tls.h and tls_task.h 2026-04-21 01:35:03 +08:00
lib_umul32.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_umul32x64.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_umul64.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_usub64.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_usub64x32.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00
lib_utimensat.c rename lib_pathbuffer to lib_tempbuffer 2026-04-21 01:18:29 +08:00
lib_utsname.c libc:use task_info replace libc global variables 2026-04-21 01:32:13 +08:00
lib_xorshift128.c Merge branch 'master' into vela 2026-04-21 01:12:27 +08:00