-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add statistics and make scsictl accept generic key/value parameters (#…
- Loading branch information
Showing
26 changed files
with
557 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,14 @@ | |
// XM6i | ||
// Copyright (C) 2010-2015 [email protected] | ||
// | ||
// Imported sava's Anex86/T98Next image and MO format support patch. | ||
// Comments translated to english by akuker. | ||
// | ||
//--------------------------------------------------------------------------- | ||
|
||
#pragma once | ||
|
||
#include "shared/scsi.h" | ||
#include "shared/piscsi_util.h" | ||
#include "device_factory.h" | ||
#include "disk_track.h" | ||
#include "disk_cache.h" | ||
|
@@ -42,6 +42,12 @@ class Disk : public StorageDevice, private ScsiBlockCommands | |
// Sector size shift count (9=512, 10=1024, 11=2048, 12=4096) | ||
uint32_t size_shift_count = 0; | ||
|
||
uint64_t sector_read_count = 0; | ||
uint64_t sector_write_count = 0; | ||
|
||
inline static const string SECTOR_READ_COUNT = "sector_read_count"; | ||
inline static const string SECTOR_WRITE_COUNT = "sector_write_count"; | ||
|
||
public: | ||
|
||
using StorageDevice::StorageDevice; | ||
|
@@ -62,6 +68,8 @@ class Disk : public StorageDevice, private ScsiBlockCommands | |
bool SetConfiguredSectorSize(const DeviceFactory&, uint32_t); | ||
void FlushCache() override; | ||
|
||
vector<PbStatistics> GetStatistics() const override; | ||
|
||
private: | ||
|
||
// Commands covered by the SCSI specifications (see https://www.t10.org/drafts.htm) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.