kernel-shark-qt: Add I/O for configuration data.
PATCH v4 2/3 kernel-shark-qt: Add I/O for configuration data.
Add to the C API of KernelShark instruments for importing/exporting configuration settings to/from Json files. A wrapper is added in order to abstract out completely the use of Json. This can be useful in the future if we want to support multiple formats (YAML for example).
This version of the patch contains a number of improvements suggested by Steven Rostedt. Thanks Steven!
--- kernel-shark-qt/src/CMakeLists.txt | 1 + kernel-shark-qt/src/libkshark-configio.c | 1486 ++++++++++++++++++++++ kernel-shark-qt/src/libkshark.h | 160 +++ 3 files changed, 1647 insertions(+) create mode 100644 kernel-shark-qt/src/libkshark-configio.c
kernel-shark-qt/src/CMakeLists.txt +1 -0
@@ -3,6 +3,7 @@ message("\n src ...") message(STATUS "libkshark") add_library(kshark SHARED libkshark.c libkshark-model.c + libkshark-configio.c libkshark-collection.c) target_link_libraries(kshark ${CMAKE_DL_LIBS}
kernel-shark-qt/src/libkshark-configio.c new file +1486 -0
1,486 lines not on this page · raw message
kernel-shark-qt/src/libkshark.h +160 -0
172 lines not on this page · raw message
Signature · 1 line
2.17.1
Quoted 10 lines · On Fri, 17 Aug 2018 17:58:45 +0300 "Yordan Karadzhov (VMware)"…
Add to the C API of KernelShark instruments for importing/exporting configuration settings to/from Json files. A wrapper is added in order to abstract out completely the use of Json. This can be useful in the future if we want to support multiple formats (YAML for example).
This version of the patch contains a number of improvements suggested by Steven Rostedt. Thanks Steven!
Signed-off-by Yordan Karadzhov (VMware) <[email protected]>
I pushed the 3 patches upstream.
Thanks Yordan!
-- Steve