add sched note for littlefs/romfs/rpmsgfs
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
This commit is contained in:
parent
583f025422
commit
175fcb799e
7 changed files with 44 additions and 0 deletions
18
Kconfig
18
Kconfig
|
|
@ -2423,6 +2423,24 @@ config TRACE_FS
|
||||||
bool "Enable tracepoints in fs"
|
bool "Enable tracepoints in fs"
|
||||||
default n
|
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
|
config TRACE_GRAPHICS
|
||||||
bool "Enable tracepoints in graphics"
|
bool "Enable tracepoints in graphics"
|
||||||
default n
|
default n
|
||||||
|
|
|
||||||
|
|
@ -52,4 +52,9 @@ if(CONFIG_FS_LITTLEFS)
|
||||||
${CMAKE_CURRENT_LIST_DIR}/littlefs/lfs_util.c)
|
${CMAKE_CURRENT_LIST_DIR}/littlefs/lfs_util.c)
|
||||||
|
|
||||||
target_include_directories(fs PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ ifeq ($(CONFIG_FS_LITTLEFS),y)
|
||||||
|
|
||||||
CSRCS += lfs_vfs.c
|
CSRCS += lfs_vfs.c
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_TRACE_LITTLEFS_FS),y)
|
||||||
|
littlefs/lfs_vfs.c_CFLAGS += -finstrument-functions
|
||||||
|
endif
|
||||||
|
|
||||||
DEPPATH += --dep-path littlefs
|
DEPPATH += --dep-path littlefs
|
||||||
VPATH += :littlefs
|
VPATH += :littlefs
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,9 @@ if(CONFIG_FS_ROMFS)
|
||||||
|
|
||||||
target_sources(fs PRIVATE fs_romfs.c fs_romfsutil.c)
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ ifeq ($(CONFIG_FS_ROMFS),y)
|
||||||
|
|
||||||
CSRCS += fs_romfs.c fs_romfsutil.c
|
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
|
# Include ROMFS build support
|
||||||
|
|
||||||
DEPPATH += --dep-path romfs
|
DEPPATH += --dep-path romfs
|
||||||
|
|
|
||||||
|
|
@ -25,3 +25,8 @@ endif()
|
||||||
if(CONFIG_FS_RPMSGFS_SERVER)
|
if(CONFIG_FS_RPMSGFS_SERVER)
|
||||||
target_sources(fs PRIVATE rpmsgfs_server.c)
|
target_sources(fs PRIVATE rpmsgfs_server.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_TRACE_RPMSGFS_FS)
|
||||||
|
set_source_files_properties(rpmsgfs.c PROPERTIES COMPILE_FLAGS
|
||||||
|
-finstrument-functions)
|
||||||
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,9 @@ VPATH += :rpmsgfs
|
||||||
|
|
||||||
ifeq ($(CONFIG_FS_RPMSGFS),y)
|
ifeq ($(CONFIG_FS_RPMSGFS),y)
|
||||||
CSRCS += rpmsgfs.c rpmsgfs_client.c
|
CSRCS += rpmsgfs.c rpmsgfs_client.c
|
||||||
|
ifeq ($(CONFIG_TRACE_RPMSGFS_FS),y)
|
||||||
|
rpmsgfs/rpmsgfs.c_CFLAGS += -finstrument-functions
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_FS_RPMSGFS_SERVER),y)
|
ifeq ($(CONFIG_FS_RPMSGFS_SERVER),y)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue