| // Copyright 2019 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 RUNTIME_PROBE_FUNCTIONS_ATA_STORAGE_H_ |
| #define RUNTIME_PROBE_FUNCTIONS_ATA_STORAGE_H_ |
| |
| #include <string> |
| #include <vector> |
| |
| #include "runtime_probe/function_templates/storage.h" |
| |
| namespace runtime_probe { |
| |
| class AtaStorageFunction final : public StorageFunction { |
| using StorageFunction::StorageFunction; |
| |
| public: |
| NAME_PROBE_FUNCTION("ata_storage"); |
| |
| protected: |
| base::Optional<base::Value> ProbeFromSysfs( |
| const base::FilePath& node_path) const override; |
| base::Optional<base::Value> ProbeFromStorageTool( |
| const base::FilePath& node_path) const override; |
| }; |
| |
| } // namespace runtime_probe |
| |
| #endif // RUNTIME_PROBE_FUNCTIONS_ATA_STORAGE_H_ |