Skip to content

Commit

Permalink
Clean up spelling mistakes in source, found using codespell
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
  • Loading branch information
ColinIanKing authored and opcm committed May 10, 2023
1 parent 9b3f315 commit 0cbcdbe
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/WINDOWS_HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Known limitations:
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.

PCM-Service FAQ:
Q: Help my service wont start, what can I do to diagnose the problem?
Q: Help my service won't start, what can I do to diagnose the problem?
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.

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?
Expand Down
2 changes: 1 addition & 1 deletion src/cpucounters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ bool PCM::discoverSystemTopology()
return false;
}

(void) coreMaskWidth; // to supress warnings on MacOS (unused vars)
(void) coreMaskWidth; // to suppress warnings on MacOS (unused vars)

uint32 l2CacheMaskShift = 0;
#ifdef PCM_DEBUG_TOPOLOGY
Expand Down
2 changes: 1 addition & 1 deletion src/cpucounters.h
Original file line number Diff line number Diff line change
Expand Up @@ -1935,7 +1935,7 @@ class PCM_API PCM
//! \brief Get the state of IDX accel counter
//! \param accel ip index
//! \param dev device index
//! \param counter_id perf couter index
//! \param counter_id perf counter index
//! \return State of IDX counter
IDXCounterState getIDXAccelCounterState(uint32 accel, uint32 dev, uint32 counter_id);

Expand Down
4 changes: 2 additions & 2 deletions src/daemon/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ namespace PCMDaemon {
typedef struct PCMMemory PCMMemory;

struct PCMQPILinkCounter {
uint64 bytes; // bytes of certain traffic class transfered over QPI or UPI link
uint64 bytes; // bytes of certain traffic class transferred over QPI or UPI link
double utilization; // utilization of the link caused by the certain traffic class

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

public:
PCMQPISocketCounter() :
Expand Down
2 changes: 1 addition & 1 deletion src/pcm-iio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ bool EagleStreamPlatformMapping::eagleStreamPciStackProbe(int unit, const struct
stack.stack_name = spr_iio_stack_names[unit];
for (int slot = 1; slot < 9; ++slot)
{
// Check if port is enbaled
// Check if port is enabled
struct pci root_pci_dev;
root_pci_dev.bdf = bdf(address.domainno, address.busno, slot, 0x0);
if (probe_pci(&root_pci_dev))
Expand Down
2 changes: 1 addition & 1 deletion src/pcm-pcie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ int mainThrows(int argc, char * argv[])

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ int load_events(const std::string &fn, std::map<std::string, uint32_t> &ofm,
while (std::getline(in, line))
{
//TODO: substring until #, if len == 0, skip, else parse normally
//Set default value if the item is NOT availalbe in cfg file.
//Set default value if the item is NOT available in cfg file.
ctr.h_event_name = "INVALID";
ctr.v_event_name = "INVALID";
ctr.ccr = 0;
Expand Down

0 comments on commit 0cbcdbe

Please sign in to comment.