@@ -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)
@@ -3944,20 +3946,23 @@ class SocketCounterState : public BasicCounterState, public UncoreCounterState
3944
3946
friend class PCM ;
3945
3947
3946
3948
protected:
3949
+ // cppcheck-suppress duplInheritedMember
3947
3950
void readAndAggregate (std::shared_ptr<SafeMsrHandle> handle)
3948
3951
{
3949
3952
BasicCounterState::readAndAggregate (handle);
3950
3953
UncoreCounterState::readAndAggregate (handle);
3951
3954
}
3952
3955
3953
3956
public:
3957
+ // cppcheck-suppress duplInheritedMember
3954
3958
SocketCounterState& operator += ( const BasicCounterState& ccs )
3955
3959
{
3956
3960
BasicCounterState::operator += ( ccs );
3957
3961
3958
3962
return *this ;
3959
3963
}
3960
3964
3965
+ // cppcheck-suppress duplInheritedMember
3961
3966
SocketCounterState& operator += ( const UncoreCounterState& ucs )
3962
3967
{
3963
3968
UncoreCounterState::operator += ( ucs );
@@ -3970,6 +3975,7 @@ class SocketCounterState : public BasicCounterState, public UncoreCounterState
3970
3975
SocketCounterState ( SocketCounterState&& ) = default ;
3971
3976
SocketCounterState & operator = ( SocketCounterState&& ) = default ;
3972
3977
3978
+ // cppcheck-suppress duplInheritedMember
3973
3979
SocketCounterState & operator = ( UncoreCounterState&& ucs ) {
3974
3980
UncoreCounterState::operator = ( std::move (ucs) );
3975
3981
return *this ;
@@ -4000,6 +4006,7 @@ class SystemCounterState : public SocketCounterState
4000
4006
std::unordered_map<PCM::RawEventEncoding, std::vector<uint64>, PCM::PMTRegisterEncodingHash2> PMTValues{};
4001
4007
4002
4008
protected:
4009
+ // cppcheck-suppress duplInheritedMember
4003
4010
void readAndAggregate (std::shared_ptr<SafeMsrHandle> handle)
4004
4011
{
4005
4012
BasicCounterState::readAndAggregate (handle);
@@ -4039,6 +4046,7 @@ class SystemCounterState : public SocketCounterState
4039
4046
SystemCounterState ( SystemCounterState&& ) = default ;
4040
4047
SystemCounterState & operator = ( SystemCounterState&& ) = default ;
4041
4048
4049
+ // cppcheck-suppress duplInheritedMember
4042
4050
SystemCounterState & operator += ( const SocketCounterState& scs )
4043
4051
{
4044
4052
BasicCounterState::operator += ( scs );
@@ -4047,6 +4055,7 @@ class SystemCounterState : public SocketCounterState
4047
4055
return *this ;
4048
4056
}
4049
4057
4058
+ // cppcheck-suppress duplInheritedMember
4050
4059
SystemCounterState & operator += ( const UncoreCounterState& ucs )
4051
4060
{
4052
4061
UncoreCounterState::operator += ( ucs );
0 commit comments