diff options
author | Mike Leach <mike.leach@linaro.org> | 2019-10-18 16:43:54 +0100 |
---|---|---|
committer | Mike Leach <mike.leach@linaro.org> | 2019-10-29 12:09:43 +0000 |
commit | 466722fa5f97f6558cff559d111557c2394332a2 (patch) | |
tree | dff5635259721466ef26a2a9dca3da359b4a44ed | |
parent | 9d6839ad0f8f39dd2524b423de9b07aead6b8d27 (diff) |
opencsd: Update README, docs and version for v0.12.1v0.12.1
Update library version, docs and README to reflect changes in
this release.
Add C-API test to linux build test script.
Signed-off-by: Mike Leach <mike.leach@linaro.org>
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | decoder/docs/doxygen_config.dox | 2 | ||||
-rw-r--r-- | decoder/include/opencsd/ocsd_if_version.h | 4 | ||||
-rwxr-xr-x | decoder/tests/run_capi_test.bash | 54 | ||||
-rwxr-xr-x | decoder/tests/run_pkt_decode_tests.bash | 5 |
5 files changed, 68 insertions, 4 deletions
diff --git a/README.md b/README.md index c3f238ff1946..7a1c4933486d 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Releases will appear on the master branch in the git repository with an appropri CoreSight Trace Component Support. ---------------------------------- -_Current Version 0.12.0_ +_Current Version 0.12.1_ ### Current support: @@ -165,6 +165,11 @@ Version and Modification Information __Update__: Docs: Update to reflect new exception flag. Update test program example to reflect latest output. __Bugfix__: ETM v4: Valid trace info packet was not handled correctly (0x01, 0x00). __Bugfix__: ETM v4: Error messaging on commit stack overflow. +- _Version 0.12.1_: __Update__: build: remove -g option from release build. + __Update__: tests: Snapshots can now use generic arch+profile names rather than core names, e.g. ARMv8-A + __Bugfix__: Instruction decode - v8.3 B[L]A{A|B}[Z] instructions mis-identified. + __Bugfix__: Transition from A64 to A32 can be mis-decoded if the trace implementation represents the transition + as an individual address packet followed by a context packet. Licence Information diff --git a/decoder/docs/doxygen_config.dox b/decoder/docs/doxygen_config.dox index 0ca0cf7349b0..b4db933a63a3 100644 --- a/decoder/docs/doxygen_config.dox +++ b/decoder/docs/doxygen_config.dox @@ -38,7 +38,7 @@ PROJECT_NAME = "OpenCSD - CoreSight Trace Decode Library" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 0.10.0 +PROJECT_NUMBER = 0.12.1 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/decoder/include/opencsd/ocsd_if_version.h b/decoder/include/opencsd/ocsd_if_version.h index 70c8df41f52b..31e4ffc9cd64 100644 --- a/decoder/include/opencsd/ocsd_if_version.h +++ b/decoder/include/opencsd/ocsd_if_version.h @@ -44,7 +44,7 @@ @{*/ #define OCSD_VER_MAJOR 0x0 /**< Library Major Version */ #define OCSD_VER_MINOR 0xC /**< Library Minor Version */ -#define OCSD_VER_PATCH 0x0 /**< Library Patch Version */ +#define OCSD_VER_PATCH 0x1 /**< Library Patch Version */ /** Library version number - MMMMnnpp format. MMMM = major version, @@ -53,7 +53,7 @@ */ #define OCSD_VER_NUM ((OCSD_VER_MAJOR << 16) | (OCSD_VER_MINOR << 8) | OCSD_VER_PATCH) -#define OCSD_VER_STRING "0.12.0" /**< Library Version string */ +#define OCSD_VER_STRING "0.12.1" /**< Library Version string */ #define OCSD_LIB_NAME "OpenCSD Library" /**< Library name string */ #define OCSD_LIB_SHORT_NAME "OCSD" /**< Library Short name string */ /** @}*/ diff --git a/decoder/tests/run_capi_test.bash b/decoder/tests/run_capi_test.bash new file mode 100755 index 000000000000..bac5da4342d3 --- /dev/null +++ b/decoder/tests/run_capi_test.bash @@ -0,0 +1,54 @@ +#!/bin/bash +################################################################################# +# Copyright 2018 ARM. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# 3. Neither the name of the copyright holder nor the names of its contributors +# may be used to endorse or promote products derived from this software without +# specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +################################################################################# +# OpenCSD library: Test script. +# +# Test script to run packet lister on each of the snapshots retained with the repository. +# No attempt is made to compare output results to previous versions, (output formatting +# may change due to bugfix / enhancements) or assess the validity of the trace output. +# +################################################################################# + +OUT_DIR=./results +SNAPSHOT_DIR=./snapshots +BIN_DIR=./bin/linux64/rel + +echo "Running trc_pkt_lister on snapshot directories." + +mkdir -p ${OUT_DIR} + +# === test the decode set === +export LD_LIBRARY_PATH=${BIN_DIR}/. + + +# === test the C-API lib === +echo "Testing C-API" +${BIN_DIR}/c_api_pkt_print_test -ss_path ${SNAPSHOT_DIR} -decode +mv ./c_api_test.log ./${OUT_DIR}/c_api_test.ppl diff --git a/decoder/tests/run_pkt_decode_tests.bash b/decoder/tests/run_pkt_decode_tests.bash index 56b1cbfd38be..ba239239259e 100755 --- a/decoder/tests/run_pkt_decode_tests.bash +++ b/decoder/tests/run_pkt_decode_tests.bash @@ -76,3 +76,8 @@ done echo "Testing a55-test-tpiu..." ${BIN_DIR}/trc_pkt_lister -ss_dir "${SNAPSHOT_DIR}/a55-test-tpiu" -dstream_format -o_raw_packed -o_raw_unpacked -logfilename "${OUT_DIR}/a55-test-tpiu.ppl" echo "Done : Return $?" + +# === test the C-API lib === +echo "Testing C-API library" +${BIN_DIR}/c_api_pkt_print_test -ss_path ${SNAPSHOT_DIR} -decode +mv ./c_api_test.log ./${OUT_DIR}/c_api_test.ppl |