On Tue, Nov 22, 2016 at 09:27:59AM +0000, Mike Leach wrote:
OpenCSD: Patch set for v0.5.0 release.
External Decoder C-API plus examples and documentation. This allows custom decoders to be attached into the library infrastructure.
STM full decoder - outputs generic software trace packets.
Mike Leach (13): opencsd: Custom external decoder C-API (initial development). opencsd: Initial objects and types for STM packet decode. opencsd: Library Version defines moved to separate header file. opencsd: STM full decoder implementation opencsd: Custom External Decoder C-API (adds factory and wrappers) opencsd: A "test" decoder to prove the external decoder API opencsd: Custom Ext Decoder C-API (adds pkt monitor and sink CB) opencsd: Custom Ext Decoder C-API (adds test decoder) opencsd: adds VS2015 build files. opencsd: Modify C-API test program to use echo_test decoder. opencsd: Move custom packet string C-API to main header opencsd: Documentation and Doxygen comment updates. opencsd: Linux and windows build updates
.gitignore | 2 + README.md | 8 +- decoder/build/linux/makefile | 1 + decoder/build/linux/rctdl_c_api_lib/makefile | 3 +- decoder/build/linux/ref_trace_decode_lib/makefile | 3 +- decoder/build/win-vs2015/opencsd.props | 20 + .../rctdl_c_api_lib/rctdl_c_api_lib.vcxproj | 329 +++++++++++++++ .../rctdl_c_api_lib.vcxproj.filters | 54 +++ .../ref_trace_decode_lib/ref_trace_decode_lib.sln | 147 +++++++ .../ref_trace_decode_lib.vcxproj | 440 ++++++++++++++++++++ .../ref_trace_decode_lib.vcxproj.filters | 449 ++++++++++++++++++++ .../win/rctdl_c_api_lib/rctdl_c_api_lib.vcxproj | 3 + .../rctdl_c_api_lib.vcxproj.filters | 9 + .../ref_trace_decode_lib.vcxproj | 4 + .../ref_trace_decode_lib.vcxproj.filters | 12 + decoder/docs/doxygen_config.dox | 5 +- decoder/docs/external_custom.md | 148 +++++++ ...RM Trace and Debug Snapshot file format 0v2.pdf | Bin 0 -> 435644 bytes decoder/docs/test_progs.md | 21 +- decoder/include/c_api/ocsd_c_api_cust_fact.h | 54 +++ decoder/include/c_api/ocsd_c_api_cust_impl.h | 158 ++++++++ decoder/include/c_api/ocsd_c_api_custom.h | 253 ++++++++++++ decoder/include/c_api/opencsd_c_api.h | 45 ++ decoder/include/common/ocsd_lib_dcd_register.h | 9 + decoder/include/common/trc_component.h | 1 + decoder/include/common/trc_gen_elem.h | 29 +- decoder/include/ocsd_if_types.h | 75 +++- decoder/include/ocsd_if_version.h | 65 +++ decoder/include/stm/trc_dcd_mngr_stm.h | 8 +- decoder/include/stm/trc_pkt_decode_stm.h | 103 +++++ decoder/include/stm/trc_pkt_elem_stm.h | 4 +- decoder/include/stm/trc_pkt_types_stm.h | 2 +- decoder/include/trc_gen_elem_types.h | 32 +- decoder/source/c_api/ocsd_c_api.cpp | 38 +- decoder/source/c_api/ocsd_c_api_custom_obj.cpp | 431 ++++++++++++++++++++ decoder/source/c_api/ocsd_c_api_custom_obj.h | 189 +++++++++ decoder/source/c_api/ocsd_c_api_obj.h | 51 +++ decoder/source/ocsd_error.cpp | 1 + decoder/source/ocsd_lib_dcd_register.cpp | 61 ++- decoder/source/ocsd_version.cpp | 2 +- decoder/source/stm/trc_pkt_decode_stm.cpp | 299 ++++++++++++++ decoder/source/stm/trc_pkt_proc_stm.cpp | 5 +- decoder/source/trc_component.cpp | 13 +- decoder/source/trc_gen_elem.cpp | 70 +++- decoder/source/trc_printable_elem.cpp | 4 +- .../build/linux/c_api_pkt_print_test/makefile | 4 +- .../tests/build/linux/echo_test_dcd_lib/makefile | 83 ++++ .../c_api_pkt_print_test.vcxproj | 333 +++++++++++++++ .../c_api_pkt_print_test.vcxproj.filters | 22 + .../ext_dcd_echo_test/ext_dcd_echo_test.vcxproj | 152 +++++++ .../ext_dcd_echo_test.vcxproj.filters | 33 ++ .../simple_pkt_print_c_api.vcxproj | 333 +++++++++++++++ .../simple_pkt_print_c_api.vcxproj.filters | 22 + .../snapshot_parser_lib.vcxproj | 318 +++++++++++++++ .../snapshot_parser_lib.vcxproj.filters | 72 ++++ .../trc_pkt_lister/trc_pkt_lister.vcxproj | 306 ++++++++++++++ .../trc_pkt_lister/trc_pkt_lister.vcxproj.filters | 39 ++ .../c_api_echo_test/ext_dcd_echo_test.c | 451 +++++++++++++++++++++ .../c_api_echo_test/ext_dcd_echo_test.h | 93 +++++ .../c_api_echo_test/ext_dcd_echo_test_fact.c | 104 +++++ .../c_api_echo_test/ext_dcd_echo_test_fact.h | 48 +++ decoder/tests/source/c_api_pkt_print_test.c | 89 +++- 62 files changed, 6063 insertions(+), 99 deletions(-) create mode 100644 decoder/build/win-vs2015/opencsd.props create mode 100644 decoder/build/win-vs2015/rctdl_c_api_lib/rctdl_c_api_lib.vcxproj create mode 100644 decoder/build/win-vs2015/rctdl_c_api_lib/rctdl_c_api_lib.vcxproj.filters create mode 100644 decoder/build/win-vs2015/ref_trace_decode_lib/ref_trace_decode_lib.sln create mode 100644 decoder/build/win-vs2015/ref_trace_decode_lib/ref_trace_decode_lib.vcxproj create mode 100644 decoder/build/win-vs2015/ref_trace_decode_lib/ref_trace_decode_lib.vcxproj.filters create mode 100644 decoder/docs/external_custom.md create mode 100644 decoder/docs/specs/ARM Trace and Debug Snapshot file format 0v2.pdf create mode 100644 decoder/include/c_api/ocsd_c_api_cust_fact.h create mode 100644 decoder/include/c_api/ocsd_c_api_cust_impl.h create mode 100644 decoder/include/c_api/ocsd_c_api_custom.h create mode 100644 decoder/include/ocsd_if_version.h create mode 100644 decoder/include/stm/trc_pkt_decode_stm.h create mode 100644 decoder/source/c_api/ocsd_c_api_custom_obj.cpp create mode 100644 decoder/source/c_api/ocsd_c_api_custom_obj.h create mode 100644 decoder/source/stm/trc_pkt_decode_stm.cpp create mode 100644 decoder/tests/build/linux/echo_test_dcd_lib/makefile create mode 100644 decoder/tests/build/win-vs2015/c_api_pkt_print_test/c_api_pkt_print_test.vcxproj create mode 100644 decoder/tests/build/win-vs2015/c_api_pkt_print_test/c_api_pkt_print_test.vcxproj.filters create mode 100644 decoder/tests/build/win-vs2015/ext_dcd_echo_test/ext_dcd_echo_test.vcxproj create mode 100644 decoder/tests/build/win-vs2015/ext_dcd_echo_test/ext_dcd_echo_test.vcxproj.filters create mode 100644 decoder/tests/build/win-vs2015/simple_pkt_print_c_api/simple_pkt_print_c_api.vcxproj create mode 100644 decoder/tests/build/win-vs2015/simple_pkt_print_c_api/simple_pkt_print_c_api.vcxproj.filters create mode 100644 decoder/tests/build/win-vs2015/snapshot_parser_lib/snapshot_parser_lib.vcxproj create mode 100644 decoder/tests/build/win-vs2015/snapshot_parser_lib/snapshot_parser_lib.vcxproj.filters create mode 100644 decoder/tests/build/win-vs2015/trc_pkt_lister/trc_pkt_lister.vcxproj create mode 100644 decoder/tests/build/win-vs2015/trc_pkt_lister/trc_pkt_lister.vcxproj.filters create mode 100644 decoder/tests/ext_dcd_test_eg/c_api_echo_test/ext_dcd_echo_test.c create mode 100644 decoder/tests/ext_dcd_test_eg/c_api_echo_test/ext_dcd_echo_test.h create mode 100644 decoder/tests/ext_dcd_test_eg/c_api_echo_test/ext_dcd_echo_test_fact.c create mode 100644 decoder/tests/ext_dcd_test_eg/c_api_echo_test/ext_dcd_echo_test_fact.h
This is a huge patchset and I certainly won't claim to understand what it does. On the flip side I have looked at every patch without finding any glaring error/problems. On the syntactical front many things could be modified but this isn't the kernel so those rules don't apply.
I'd say go ahead and push it in.
Thanks, Mathieu
-- 2.7.4
CoreSight mailing list CoreSight@lists.linaro.org https://lists.linaro.org/mailman/listinfo/coresight