You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: reorganize include structure and improve project layout
- Renamed project from `CommoneLowLevelTracingKit` to `CommonLowLevelTracingKit` (correcting typo).
- Reorganized header paths under `CommonLowLevelTracingKit/tracing/`, `CommonLowLevelTracingKit/decoder/`, and `CommonLowLevelTracingKit/snapshot/` for better namespace clarity.
- Updated all `#include` directives to use the new consistent path structure (e.g., `tracing.h` → `tracing/tracing.h`).
- Updated CMake targets to use `OUTPUT_NAME` consistently and improved library linking with proper visibility and standard settings.
- Restructured `decoder_tool` and `snapshot_library` to use consistent directory layout and public headers.
- Fixed include paths in all examples, tests, and kernel module code to reflect new structure.
- Removed redundant CMake logic and improved target properties.
Signed-off-by: Jo5ta <[email protected]>
# We're in the root, define additional targets for developers.
18
18
message(STATUS"clltk is standalone")
19
-
option(STANDALONE_PROJECT """ON")
19
+
option(STANDALONE_PROJECT "Build as standalone project"ON)
20
20
else()
21
21
message(STATUS"clltk is imported")
22
-
option(STANDALONE_PROJECT """OFF")
22
+
option(STANDALONE_PROJECT "Build as standalone project"OFF)
23
23
endif()
24
24
25
25
set(CLLTK_TRACING_LIB_TYPE "STATIC"CACHESTRING"make target clltk_tracing alias for clltk_tracing_shared with \"SHARED\" or clltk_tracing_static with \"STATIC\"")
@@ -47,7 +47,7 @@ if(CLLTK_COMMAND_LINE_TOOL)
47
47
endif()
48
48
49
49
option(CLLTK_PYTHON_DECODER "select python decoder for packaging"ON)
50
-
option(CLLTK_CPP_DECODER "select python decoder for packaging"ON)
50
+
option(CLLTK_CPP_DECODER "select cpp decoder for packaging"ON)
51
51
add_subdirectory(./decoder_tool)
52
52
53
53
option(CLLTK_KERNEL_TRACING "select kernel tracing module for build"${STANDALONE_PROJECT})
Copy file name to clipboardExpand all lines: VERSION.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,16 @@
1
-
1.2.47
1
+
1.2.48
2
2
3
3
# Change log
4
-
## 1.2.47+
4
+
## 1.2.48
5
+
refactor: reorganize include structure and improve project layout
6
+
- Renamed project from CommoneLowLevelTracingKit to CommonLowLevelTracingKit (correcting typo).
7
+
- Reorganized header paths under CommonLowLevelTracingKit/tracing/, CommonLowLevelTracingKit/decoder/, and CommonLowLevelTracingKit/snapshot/ for better namespace clarity.
8
+
- Updated all #include directives to use the new consistent path structure (e.g., tracing.h → tracing/tracing.h).
9
+
- Updated CMake targets to use OUTPUT_NAME consistently and improved library linking with proper visibility and standard settings.
10
+
- Restructured decoder_tool and snapshot_library to use consistent directory layout and public headers.
11
+
- Fixed include paths in all examples, tests, and kernel module code to reflect new structure.
12
+
- Removed redundant CMake logic and improved target properties.
set(CPACK_PACKAGE_DESCRIPTION "A fast, lightweight, binary, always-on, printf-style, file-based and flight-recorder-like tracing library for C/C++ applications. Provides low-overhead tracing with binary format support, kernel-space tracing capabilities, and comprehensive debugging tools.")
message(FATAL_ERROR "To ensure that commands in the main function are detected at runtime, ${command_target} must be OBJECT or SHARED library, not ${target_type}.")
30
-
endif()
31
-
endforeach()
32
-
33
25
# create the clltk executable
34
26
add_executable(clltk-cmd
35
27
main/main.cpp
36
28
main/validators.cpp
37
29
)
38
30
39
31
target_link_libraries(clltk-cmd
40
-
clltk-cmd-interface
41
-
clltk-version
42
-
${CLLTK_COMMAND_LINE_COMMANDS}
32
+
PRIVATE
33
+
clltk-cmd-interface
34
+
clltk-version
43
35
)
44
36
37
+
# Check that all commands are OBJECT or SHARED libraries
message(FATAL_ERROR "To ensure that commands in the main function are detected at runtime, ${command_target} must be OBJECT library, not ${target_type}.")
0 commit comments