Skip to contentSkip to conversation

kernel-shark-qt: Add I/O for configuration data.

PATCH In review Yordan Karadzhov (VMware) 2 participants 2 messages Aug 17, 2018 – Aug 21, 2018

lore
Share & tools
lore
#0 lore raw

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
index ea5dbda..a762da1 100644
@@ -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
#1 lore raw
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!

I pushed the 3 patches upstream.

Thanks Yordan!

-- Steve