Skip to content

Commit

Permalink
Stack_Analyzer:Adapted to MagicEyes (linuxkerneltravel#720)
Browse files Browse the repository at this point in the history
* new arrangement

Signed-off-by: LiuLingze <[email protected]>

* update introduction

Signed-off-by: LiuLingze <[email protected]>

* update action

Signed-off-by: LiuLingze <[email protected]>

* modify submodule

Signed-off-by: LiuLingze <[email protected]>

* remove assets

Signed-off-by: LiuLingze <[email protected]>

* modify doc

Signed-off-by: LiuLingze <[email protected]>

* modify submodule

Signed-off-by: LiuLingze <[email protected]>

* modify ignore

Signed-off-by: LiuLingze <[email protected]>

* modify ignore

Signed-off-by: LiuLingze <[email protected]>

* adapt to MagicEyes

Signed-off-by: LiuLingze <[email protected]>

* update file header

Signed-off-by: LiuLingze <[email protected]>

* Achieve code consistency

Signed-off-by: LiuLingze <[email protected]>

* fix action err

Signed-off-by: LiuLingze <[email protected]>

* fix off cpu probe mismatching

Signed-off-by: LiuLingze <[email protected]>

* fix bpf code

Signed-off-by: LiuLingze <[email protected]>

---------

Signed-off-by: LiuLingze <[email protected]>
  • Loading branch information
GorilaMond authored Mar 19, 2024
1 parent 26b87cd commit 3e85a36
Show file tree
Hide file tree
Showing 63 changed files with 694 additions and 10,726 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/proc_image

# Stack_Analyser
eBPF_Supermarket/Stack_Analyser/stack_analyzer
eBPF_Supermarket/Stack_Analyser/exporter/exporter
eBPF_Supermarket/Stack_Analyser/exporter/exporter
eBPF_Supermarket/Stack_Analyser/bpf_skel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
set(TOOL_NAME stack_analyzer)
set(TOOL_BELONG_TO_MODULE system_diagnosis)

file(GLOB STACK_ANALYZER_SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)
file(GLOB STACK_ANALYZER_SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
file(GLOB STACK_ANALYZER_WAPPER_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/bpf/*.cpp)
file(GLOB apps ${CMAKE_CURRENT_SOURCE_DIR}/bpf/*.bpf.c)

# 若不用Rust,则排除 profile.bpf.c
Expand All @@ -28,6 +29,7 @@ if (NOT EXISTS ${SRC_GEN_TARGET_DIR})
message(STATUS "directory create success")
endif ()

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/ ${SRC_GEN_TARGET_DIR})
# 遍历文件夹内所有的bpf.c
foreach(app ${apps})
get_filename_component(app_stem ${app} NAME_WE)
Expand All @@ -36,7 +38,7 @@ foreach(app ${apps})
add_dependencies(${app_stem}_skel libbpf-build bpftool-build)
endforeach()

add_executable(${TOOL_NAME} ${STACK_ANALYZER_SOURCE_FILES})
add_executable(${TOOL_NAME} ${STACK_ANALYZER_WAPPER_FILES} ${STACK_ANALYZER_SOURCE_FILES})
foreach (app ${apps})
get_filename_component(app_stem ${app} NAME_WE)
target_link_libraries(${TOOL_NAME} ${app_stem}_skel -lstdc++)
Expand Down
1 change: 1 addition & 0 deletions MagicEyes/src/backend/system_diagnosis/stack_analyzer/bpf

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3e85a36

Please sign in to comment.