nuttx/fs/inode
zhanxiaoqi 786b315947 fs/inode: add optional manual FD backtrace control via task group flag
When CONFIG_FS_BACKTRACE is enabled, collecting a stack trace for every
new file descriptor adds overhead to fast path operations like open(),
dup(), and socket().

This patch adds a new configuration option CONFIG_FS_BACKTRACE_DEFAULT.
When enabled (default behavior), the GROUP_FLAG_FD_BACKTRACE flag is
automatically set during group allocation, causing backtrace to be
captured for all tasks globally, preserving the original diagnostic
capability.

When disabled, backtrace capture is zero-cost by default and must be
explicitly enabled per task group using GROUP_FLAG_FD_BACKTRACE.

Signed-off-by: zhanxiaoqi <zhanxiaoqi@bytedance.com>
2026-04-28 09:53:27 +02:00
..
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_files.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_foreachinode.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inode.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inodeaddref.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inodebasename.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inodefind.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inodefree.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inodegetpath.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inoderelease.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_inoderemove.c fs/inode: Fix inoderemove when removing an inode without parent 2025-05-25 20:44:23 +08:00
fs_inodereserve.c arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
fs_inodesearch.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
inode.h fs/inode: add optional manual FD backtrace control via task group flag 2026-04-28 09:53:27 +02:00
Make.defs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00