@@ -1596,6 +1596,7 @@ class PCM_API PCM
1596
1596
typedef std::pair<std::shared_ptr<MMIORange>, uint32> MMIORegisterEncoding; // MMIORange shared ptr, offset
1597
1597
struct MMIORegisterEncodingHash : public PCICFGRegisterEncodingHash
1598
1598
{
1599
+ // cppcheck-suppress duplInheritedMember
1599
1600
std::size_t operator ()(const RawEventEncoding& e) const
1600
1601
{
1601
1602
std::size_t h4 = std::hash<uint64>{}(e[MMIOEventPosition::membar_bits1]);
@@ -1605,6 +1606,7 @@ class PCM_API PCM
1605
1606
};
1606
1607
struct MMIORegisterEncodingCmp : public PCICFGRegisterEncodingCmp
1607
1608
{
1609
+ // cppcheck-suppress duplInheritedMember
1608
1610
bool operator ()(const RawEventEncoding& a, const RawEventEncoding& b) const
1609
1611
{
1610
1612
return PCICFGRegisterEncodingCmp::operator ()(a,b)
@@ -3927,20 +3929,23 @@ class SocketCounterState : public BasicCounterState, public UncoreCounterState
3927
3929
friend class PCM ;
3928
3930
3929
3931
protected:
3932
+ // cppcheck-suppress duplInheritedMember
3930
3933
void readAndAggregate (std::shared_ptr<SafeMsrHandle> handle)
3931
3934
{
3932
3935
BasicCounterState::readAndAggregate (handle);
3933
3936
UncoreCounterState::readAndAggregate (handle);
3934
3937
}
3935
3938
3936
3939
public:
3940
+ // cppcheck-suppress duplInheritedMember
3937
3941
SocketCounterState& operator += ( const BasicCounterState& ccs )
3938
3942
{
3939
3943
BasicCounterState::operator += ( ccs );
3940
3944
3941
3945
return *this ;
3942
3946
}
3943
3947
3948
+ // cppcheck-suppress duplInheritedMember
3944
3949
SocketCounterState& operator += ( const UncoreCounterState& ucs )
3945
3950
{
3946
3951
UncoreCounterState::operator += ( ucs );
@@ -3953,6 +3958,7 @@ class SocketCounterState : public BasicCounterState, public UncoreCounterState
3953
3958
SocketCounterState ( SocketCounterState&& ) = default ;
3954
3959
SocketCounterState & operator = ( SocketCounterState&& ) = default ;
3955
3960
3961
+ // cppcheck-suppress duplInheritedMember
3956
3962
SocketCounterState & operator = ( UncoreCounterState&& ucs ) {
3957
3963
UncoreCounterState::operator = ( std::move (ucs) );
3958
3964
return *this ;
@@ -3983,6 +3989,7 @@ class SystemCounterState : public SocketCounterState
3983
3989
std::unordered_map<PCM::RawEventEncoding, std::vector<uint64>, PCM::PMTRegisterEncodingHash2> PMTValues{};
3984
3990
3985
3991
protected:
3992
+ // cppcheck-suppress duplInheritedMember
3986
3993
void readAndAggregate (std::shared_ptr<SafeMsrHandle> handle)
3987
3994
{
3988
3995
BasicCounterState::readAndAggregate (handle);
@@ -4022,6 +4029,7 @@ class SystemCounterState : public SocketCounterState
4022
4029
SystemCounterState ( SystemCounterState&& ) = default ;
4023
4030
SystemCounterState & operator = ( SystemCounterState&& ) = default ;
4024
4031
4032
+ // cppcheck-suppress duplInheritedMember
4025
4033
SystemCounterState & operator += ( const SocketCounterState& scs )
4026
4034
{
4027
4035
BasicCounterState::operator += ( scs );
@@ -4030,6 +4038,7 @@ class SystemCounterState : public SocketCounterState
4030
4038
return *this ;
4031
4039
}
4032
4040
4041
+ // cppcheck-suppress duplInheritedMember
4033
4042
SystemCounterState & operator += ( const UncoreCounterState& ucs )
4034
4043
{
4035
4044
UncoreCounterState::operator += ( ucs );
0 commit comments