Files
compute-runtime/shared/test/common/mocks/mock_kmd_notify_helper.h
Dominik Dabek 2b964254d6 performance: debug key for adjust ULLS on battery
ULLS controller timeout settings will be adjusted based on ac line
status and lowest queue throttle from submissions.

Lowest queue throttle is reset when controller stops ULLS.

Related-To: NEO-10800

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-03-22 14:24:00 +01:00

36 lines
1018 B
C++

/*
* Copyright (C) 2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/kmd_notify_properties.h"
namespace NEO {
class MockKmdNotifyHelper : public KmdNotifyHelper {
public:
using KmdNotifyHelper::acLineConnected;
using KmdNotifyHelper::getMicrosecondsSinceEpoch;
using KmdNotifyHelper::lastWaitForCompletionTimestampUs;
using KmdNotifyHelper::properties;
MockKmdNotifyHelper() = delete;
MockKmdNotifyHelper(const KmdNotifyProperties *newProperties) : KmdNotifyHelper(newProperties){};
void updateLastWaitForCompletionTimestamp() override {
KmdNotifyHelper::updateLastWaitForCompletionTimestamp();
updateLastWaitForCompletionTimestampCalled++;
}
void updateAcLineStatus() override {
KmdNotifyHelper::updateAcLineStatus();
updateAcLineStatusCalled++;
}
uint32_t updateLastWaitForCompletionTimestampCalled = 0u;
uint32_t updateAcLineStatusCalled = 0u;
};
} // namespace NEO