This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 175fcb799e add sched note for littlefs/romfs/rpmsgfs
175fcb799e is described below
commit 175fcb799e322d6d3642522b050fdd45d7f181df
Author: Shoukui Zhang <[email protected]>
AuthorDate: Fri Feb 2 15:37:22 2024 +0800
add sched note for littlefs/romfs/rpmsgfs
Signed-off-by: Shoukui Zhang <[email protected]>
---
Kconfig | 18 ++++++++++++++++++
fs/littlefs/CMakeLists.txt | 5 +++++
fs/littlefs/Make.defs | 4 ++++
fs/romfs/CMakeLists.txt | 5 +++++
fs/romfs/Make.defs | 4 ++++
fs/rpmsgfs/CMakeLists.txt | 5 +++++
fs/rpmsgfs/Make.defs | 3 +++
7 files changed, 44 insertions(+)
diff --git a/Kconfig b/Kconfig
index f700eeeb4c..2df36e5ba1 100644
--- a/Kconfig
+++ b/Kconfig
@@ -2423,6 +2423,24 @@ config TRACE_FS
bool "Enable tracepoints in fs"
default n
+if TRACE_FS
+menu "Trace Fs Support"
+
+config TRACE_LITTLEFS_FS
+ bool "Enable tracepoints in littlefs"
+ default n
+
+config TRACE_ROMFS_FS
+ bool "Enable tracepoints in romfs"
+ default n
+
+config TRACE_RPMSGFS_FS
+ bool "Enable tracepoints in rpmsgfs"
+ default n
+
+endmenu # Trace Fs Support
+endif
+
config TRACE_GRAPHICS
bool "Enable tracepoints in graphics"
default n
diff --git a/fs/littlefs/CMakeLists.txt b/fs/littlefs/CMakeLists.txt
index c4920b0ae5..0d8b8696f3 100644
--- a/fs/littlefs/CMakeLists.txt
+++ b/fs/littlefs/CMakeLists.txt
@@ -52,4 +52,9 @@ if(CONFIG_FS_LITTLEFS)
${CMAKE_CURRENT_LIST_DIR}/littlefs/lfs_util.c)
target_include_directories(fs PRIVATE ${CMAKE_CURRENT_LIST_DIR})
+
+ if(CONFIG_TRACE_LITTLEFS_FS)
+ set_source_files_properties(lfs_vfs.c PROPERTIES COMPILE_FLAGS
+ -finstrument-functions)
+ endif()
endif()
diff --git a/fs/littlefs/Make.defs b/fs/littlefs/Make.defs
index 7cd5736fa2..4a174ca99c 100644
--- a/fs/littlefs/Make.defs
+++ b/fs/littlefs/Make.defs
@@ -23,6 +23,10 @@ ifeq ($(CONFIG_FS_LITTLEFS),y)
CSRCS += lfs_vfs.c
+ifeq ($(CONFIG_TRACE_LITTLEFS_FS),y)
+littlefs/lfs_vfs.c_CFLAGS += -finstrument-functions
+endif
+
DEPPATH += --dep-path littlefs
VPATH += :littlefs
diff --git a/fs/romfs/CMakeLists.txt b/fs/romfs/CMakeLists.txt
index f661fee610..97d472d7de 100644
--- a/fs/romfs/CMakeLists.txt
+++ b/fs/romfs/CMakeLists.txt
@@ -22,4 +22,9 @@ if(CONFIG_FS_ROMFS)
target_sources(fs PRIVATE fs_romfs.c fs_romfsutil.c)
+ if(CONFIG_TRACE_ROMFS_FS)
+ set_source_files_properties(fs_romfs.c PROPERTIES COMPILE_FLAGS
+ -finstrument-functions)
+ endif()
+
endif()
diff --git a/fs/romfs/Make.defs b/fs/romfs/Make.defs
index 80d128d64b..3392b9756f 100644
--- a/fs/romfs/Make.defs
+++ b/fs/romfs/Make.defs
@@ -23,6 +23,10 @@ ifeq ($(CONFIG_FS_ROMFS),y)
CSRCS += fs_romfs.c fs_romfsutil.c
+ifeq ($(CONFIG_TRACE_ROMFS_FS),y)
+romfs/fs_romfs.c_CFLAGS += -finstrument-functions
+endif
+
# Include ROMFS build support
DEPPATH += --dep-path romfs
diff --git a/fs/rpmsgfs/CMakeLists.txt b/fs/rpmsgfs/CMakeLists.txt
index 927e612349..968f58c0a4 100644
--- a/fs/rpmsgfs/CMakeLists.txt
+++ b/fs/rpmsgfs/CMakeLists.txt
@@ -25,3 +25,8 @@ endif()
if(CONFIG_FS_RPMSGFS_SERVER)
target_sources(fs PRIVATE rpmsgfs_server.c)
endif()
+
+if(CONFIG_TRACE_RPMSGFS_FS)
+ set_source_files_properties(rpmsgfs.c PROPERTIES COMPILE_FLAGS
+ -finstrument-functions)
+endif()
diff --git a/fs/rpmsgfs/Make.defs b/fs/rpmsgfs/Make.defs
index 30425bde4b..fb0a7c6e1a 100644
--- a/fs/rpmsgfs/Make.defs
+++ b/fs/rpmsgfs/Make.defs
@@ -25,6 +25,9 @@ VPATH += :rpmsgfs
ifeq ($(CONFIG_FS_RPMSGFS),y)
CSRCS += rpmsgfs.c rpmsgfs_client.c
+ifeq ($(CONFIG_TRACE_RPMSGFS_FS),y)
+rpmsgfs/rpmsgfs.c_CFLAGS += -finstrument-functions
+endif
endif
ifeq ($(CONFIG_FS_RPMSGFS_SERVER),y)