add sched note for littlefs/romfs/rpmsgfs

Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
This commit is contained in:
Shoukui Zhang 2024-02-02 15:37:22 +08:00 committed by Alan C. Assis
parent 583f025422
commit 175fcb799e
7 changed files with 44 additions and 0 deletions

18
Kconfig
View file

@ -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

View file

@ -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()

View file

@ -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

View file

@ -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()

View file

@ -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

View file

@ -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()

View file

@ -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)