Skip to content

Commit 0cbcdbe

Browse files
ColinIanKingopcm
authored andcommitted
Clean up spelling mistakes in source, found using codespell
Signed-off-by: Colin Ian King <[email protected]>
1 parent 9b3f315 commit 0cbcdbe

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

doc/WINDOWS_HOWTO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Known limitations:
5858
Running PCM.exe under Cygwin shell is possible, but due to incompatibilities of signals/events handling between Windows and Cygwin, the PCM may not cleanup PMU configuration after Ctrl+C or Ctrl+Break pressed. The subsequent run of PCM will require to do PMU configuration reset, so adding -r command line option to PCM will be required.
5959

6060
PCM-Service FAQ:
61-
Q: Help my service wont start, what can I do to diagnose the problem?
61+
Q: Help my service won't start, what can I do to diagnose the problem?
6262
A: Please check in the Windows Application "Event Viewer" under "Windows Logs" and then under "Application". PCM-Service writes its messages here, just look for errors. If you can't figure it out how to fix it, create a bug report and make sure to paste the text from the Event Viewer in the bug report so we can diagnose the issue.
6363

6464
Q: I see a message in the Events Viewer that PCM-Service does not start because the "custom counter file view is out of memory", how do I fix this?

src/cpucounters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ bool PCM::discoverSystemTopology()
11691169
return false;
11701170
}
11711171

1172-
(void) coreMaskWidth; // to supress warnings on MacOS (unused vars)
1172+
(void) coreMaskWidth; // to suppress warnings on MacOS (unused vars)
11731173

11741174
uint32 l2CacheMaskShift = 0;
11751175
#ifdef PCM_DEBUG_TOPOLOGY

src/cpucounters.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@ class PCM_API PCM
19351935
//! \brief Get the state of IDX accel counter
19361936
//! \param accel ip index
19371937
//! \param dev device index
1938-
//! \param counter_id perf couter index
1938+
//! \param counter_id perf counter index
19391939
//! \return State of IDX counter
19401940
IDXCounterState getIDXAccelCounterState(uint32 accel, uint32 dev, uint32 counter_id);
19411941

src/daemon/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ namespace PCMDaemon {
175175
typedef struct PCMMemory PCMMemory;
176176

177177
struct PCMQPILinkCounter {
178-
uint64 bytes; // bytes of certain traffic class transfered over QPI or UPI link
178+
uint64 bytes; // bytes of certain traffic class transferred over QPI or UPI link
179179
double utilization; // utilization of the link caused by the certain traffic class
180180

181181
public:
@@ -189,7 +189,7 @@ namespace PCMDaemon {
189189
struct PCMQPISocketCounter {
190190
uint64 socketId = 0; // socket ID
191191
PCMQPILinkCounter links[QPI_MAX_LINKS];
192-
uint64 total; // total number of transfered bytes of a certain traffic class
192+
uint64 total; // total number of transferred bytes of a certain traffic class
193193

194194
public:
195195
PCMQPISocketCounter() :

src/pcm-iio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ bool EagleStreamPlatformMapping::eagleStreamPciStackProbe(int unit, const struct
984984
stack.stack_name = spr_iio_stack_names[unit];
985985
for (int slot = 1; slot < 9; ++slot)
986986
{
987-
// Check if port is enbaled
987+
// Check if port is enabled
988988
struct pci root_pci_dev;
989989
root_pci_dev.bdf = bdf(address.domainno, address.busno, slot, 0x0);
990990
if (probe_pci(&root_pci_dev))

src/pcm-pcie.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ int mainThrows(int argc, char * argv[])
230230

231231
cerr << "Update every " << delay << " seconds\n";
232232

233-
// Delay in miliseconds
233+
// Delay in milliseconds
234234
unique_ptr<IPlatform> platform(IPlatform::getPlatform(m, csv, print_bandwidth,
235235
print_additional_info, (uint)(delay * 1000)));
236236

src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ int load_events(const std::string &fn, std::map<std::string, uint32_t> &ofm,
958958
while (std::getline(in, line))
959959
{
960960
//TODO: substring until #, if len == 0, skip, else parse normally
961-
//Set default value if the item is NOT availalbe in cfg file.
961+
//Set default value if the item is NOT available in cfg file.
962962
ctr.h_event_name = "INVALID";
963963
ctr.v_event_name = "INVALID";
964964
ctr.ccr = 0;

0 commit comments

Comments
 (0)