diff --git a/.azure-pipelines/build-template.yml b/.azure-pipelines/build-template.yml index 9ba2d9531..006be95a1 100644 --- a/.azure-pipelines/build-template.yml +++ b/.azure-pipelines/build-template.yml @@ -193,7 +193,7 @@ jobs: gcov_dirs=$(find . -path "*.libs*gcda" | xargs dirname | sort -u | cut -c"3-") for dir in ${gcov_dirs}; do source_dir=$(dirname $dir) - output_file="coverage-$source_dir.json" + output_file=$(echo "coverage-$source_dir.json"| tr '/' '-') gcovr --exclude-unreachable-branches --json-pretty -o $output_file --object-directory $source_dir $dir done gcovr -r ./ -e ".*/SAI/.*" -e ".+/json.hpp" -e "swss/.+" -e ".*/.libs/.*" -e ".*/debian/.*" --exclude-unreachable-branches --json-pretty -o coverage-all.json diff --git a/syncd/VendorSai.cpp b/syncd/VendorSai.cpp index ed4580df2..a256ff404 100644 --- a/syncd/VendorSai.cpp +++ b/syncd/VendorSai.cpp @@ -313,7 +313,6 @@ sai_status_t VendorSai::getStats( _In_ const sai_stat_id_t *counter_ids, _Out_ uint64_t *counters) { - MUTEX(); SWSS_LOG_ENTER(); VENDOR_CHECK_API_INITIALIZED(); @@ -351,7 +350,6 @@ sai_status_t VendorSai::getStatsExt( _In_ sai_stats_mode_t mode, _Out_ uint64_t *counters) { - MUTEX(); SWSS_LOG_ENTER(); VENDOR_CHECK_API_INITIALIZED(); @@ -366,7 +364,6 @@ sai_status_t VendorSai::clearStats( _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids) { - MUTEX(); SWSS_LOG_ENTER(); VENDOR_CHECK_API_INITIALIZED(); @@ -386,7 +383,6 @@ sai_status_t VendorSai::bulkGetStats( _Inout_ sai_status_t *object_statuses, _Out_ uint64_t *counters) { - MUTEX(); SWSS_LOG_ENTER(); VENDOR_CHECK_API_INITIALIZED(); @@ -414,7 +410,6 @@ sai_status_t VendorSai::bulkClearStats( _In_ sai_stats_mode_t mode, _Inout_ sai_status_t *object_statuses) { - MUTEX(); SWSS_LOG_ENTER(); VENDOR_CHECK_API_INITIALIZED();