blob: 120072bbc74d2e638f4969feada247420a4dda34 [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DIAGNOSTICS_CROS_HEALTHD_ROUTINES_MEMORY_MEMORY_CONSTANTS_H_
#define DIAGNOSTICS_CROS_HEALTHD_ROUTINES_MEMORY_MEMORY_CONSTANTS_H_
#include <base/time/time.h>
namespace diagnostics {
// Different bit flags which can be encoded in the return value for memtester.
// See https://linux.die.net/man/8/memtester for details. Note that this is not
// an enum class so that it can be implicitly converted to a bit flag.
enum MemtesterErrorCodes {
// An error allocating or locking memory, or invoking the memtester binary.
kAllocatingLockingInvokingError = 0x01,
// Stuck address test found an error.
kStuckAddressTestError = 0x02,
// Any test other than the stuck address test found an error.
kOtherTestError = 0x04,
};
// Status messages the memory routine can report.
extern const char kMemoryRoutineSucceededMessage[];
extern const char kMemoryRoutineRunningMessage[];
extern const char kMemoryRoutineAllocatingLockingInvokingFailureMessage[];
extern const char kMemoryRoutineStuckAddressTestFailureMessage[];
extern const char kMemoryRoutineOtherTestFailureMessage[];
} // namespace diagnostics
#endif // DIAGNOSTICS_CROS_HEALTHD_ROUTINES_MEMORY_MEMORY_CONSTANTS_H_