nuttx/libs/libc
chenzhaoxiang 3fb1a40a4b libs/libc: add configurable skip count for mutex backtrace addresses
This commit introduces a new Kconfig option LIBC_MUTEX_BACKTRACE_SKIP tocontrol the
number of initial addresses skipped when generating mutex backtraces.

Key changes:
1. Add LIBC_MUTEX_BACKTRACE_SKIP Kconfig entry (depends on
LIBC_MUTEX_BACKTRACE > 0), defaulting to 2. This option lets users configure
how many leading addresses are omitted from the mutex backtrace output.

2. Modify the nxmutex_add_backtrace() function to pass the new config value
as the skip parameter to sched_backtrace(), replacing the hardcoded 0.

This enhancement improves the usability of mutex backtraces by allowing removalof uninformative
initial stack frames (e.g., backtrace helper functions ormutex acquisition wrappers), making the
relevant call stack entries more visiblefor debugging lock-related issues.

The default value (2) maintains sensibleout-of-the-box behavior while enabling customization for specific use cases.

Signed-off-by: chao an <anchao.archer@bytedance.com>
2026-02-27 19:54:37 +08:00
..
aio
assert lib_stackchk.c: a duplicate implementation error reported during compilation 2026-02-02 13:22:07 +08:00
audio
builtin
ctype
dirent
dlfcn
elf cmake(feat):define elf option and enable apps module build 2026-01-19 14:45:37 +08:00
errno
eventfd
fdt
fixedmath
gdbstub
gnssutils
grp
hex2bin
inttypes
libgen
locale
lzf
machine libs/libc/machine/arm: add Cortex-M0/M23 support to arch_mcount 2026-02-04 03:03:45 +08:00
misc libs/libc: add configurable skip count for mutex backtrace addresses 2026-02-27 19:54:37 +08:00
net
netdb
obstack
pthread libs/pthread: disable pthread_kill when no signals 2026-02-26 20:03:05 +08:00
pwd
queue
regex libs/libc/regex: remove logically dead code in regcomp.c 2026-01-24 19:28:56 +08:00
sched sched/cancelpt: Fix MISRA C 2012 Rule 10.4 violations 2026-02-02 21:09:40 +08:00
search
semaphore pthread: move pthread_cond to userspace 2026-01-26 16:26:39 +08:00
signal sched/signal: Add support for disabling all signal functions 2026-01-18 08:24:13 -03:00
spawn cmake:add lib_psa_set/getstackaddr file to CMakeLists.txt 2026-02-03 14:40:00 +01:00
stdio
stdlib
stream
string libc_bsd:add missing SPDX-License 2026-02-04 03:02:04 +08:00
symtab
syslog
termios
time
tls libc/tls: update preprocessor condition comment to match implementation 2026-01-31 02:49:10 +08:00
uio
unistd
userfs
uuid
wchar
wctype
wqueue
zoneinfo Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
.gitignore
CMakeLists.txt
Kconfig
libc.csv sched/signal: Add support for disabling all signal functions 2026-01-18 08:24:13 -03:00
libc.h
Makefile Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00