| // Copyright 2021 The ChromiumOS Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef LIBHWSEC_FOUNDATION_TPM_ERROR_TPM_ERROR_METRICS_CONSTANTS_H_ |
| #define LIBHWSEC_FOUNDATION_TPM_ERROR_TPM_ERROR_METRICS_CONSTANTS_H_ |
| |
| namespace hwsec_foundation { |
| |
| // Used to report the command that causes auth failure. |
| constexpr char kTpm1AuthFailName[] = "Platform.TPM.AuthFailCommand.AuthFail"; |
| // Used to report the command that causes 2nd auth failure. |
| constexpr char kTpm1Auth2FailName[] = "Platform.TPM.AuthFailCommand.Auth2Fail"; |
| // Used to report the command and response to metrics for corresponding daemon. |
| constexpr char kTpm1CommandAndResponsePrefix[] = |
| "Platform.TPM1.CommandAndResponse"; |
| constexpr char kTpm2CommandAndResponsePrefix[] = |
| "Platform.TPM2.CommandAndResponse"; |
| |
| } // namespace hwsec_foundation |
| |
| #endif // LIBHWSEC_FOUNDATION_TPM_ERROR_TPM_ERROR_METRICS_CONSTANTS_H_ |