From 5b77c8335eaacc2a9e85ab14de15b1cbdfbc43d5 Mon Sep 17 00:00:00 2001 From: Giovanni Lenzi Baraldi Date: Tue, 16 Apr 2024 23:34:47 -0300 Subject: [PATCH] Removed unused field (#774) * Removed unused field * Formatting [ROCm/rocprofiler-sdk commit: fed296daed1549bc49e92d55f0452993dc2ab88f] --- .../lib/rocprofiler-sdk/pc_sampling/parser/parser_types.h | 6 +++--- .../rocprofiler-sdk/pc_sampling/parser/tests/gfx9test.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/pc_sampling/parser/parser_types.h b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/pc_sampling/parser/parser_types.h index 9b087a334f..33002012cb 100644 --- a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/pc_sampling/parser/parser_types.h +++ b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/pc_sampling/parser/parser_types.h @@ -86,9 +86,9 @@ typedef union { uint8_t valid : 1; uint8_t type : 4; // 0=reserved, 1=hosttrap, 2=stochastic, 3=perfcounter, >=4 possible v2? - uint8_t has_stall_reason : 1; - uint8_t has_wave_cnt : 1; - uint8_t has_memory_counter : 1; + uint8_t has_stall_reason : 1; + uint8_t has_wave_cnt : 1; + uint8_t reserved : 1; }; uint8_t raw; } pcsample_header_v1_t; diff --git a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/pc_sampling/parser/tests/gfx9test.cpp b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/pc_sampling/parser/tests/gfx9test.cpp index 49ab68fee0..a316e6d291 100644 --- a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/pc_sampling/parser/tests/gfx9test.cpp +++ b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/pc_sampling/parser/tests/gfx9test.cpp @@ -343,7 +343,7 @@ class WaveOtherFieldsTest : public WaveSnapTest { assert(parsed[0][i].flags.has_stall_reason == true); assert(parsed[0][i].flags.has_wave_cnt == true); - assert(parsed[0][i].flags.has_memory_counter == false); + assert(parsed[0][i].flags.reserved == false); assert(compare[i].exec_mask == parsed[0][i].exec_mask); assert(compare[i].workgroup_id_x == parsed[0][i].workgroup_id_x);