summaryrefslogtreecommitdiffstats
path: root/src/usr/trace
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2015-01-06 15:13:56 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-01-15 14:57:29 -0600
commit60e36d9749821dc522e1cfd0e164ffd4459a2895 (patch)
treed13f2f57f9129f8e4d70b2ecdfbe97cc21931421 /src/usr/trace
parent5150e1feae1154d06b2f5ba59271e481bad13e8e (diff)
downloadblackbird-hostboot-60e36d9749821dc522e1cfd0e164ffd4459a2895.tar.gz
blackbird-hostboot-60e36d9749821dc522e1cfd0e164ffd4459a2895.zip
Fix spelling mistakes using codespell.
- See https://github.com/lucasdemarchi/codespell Change-Id: I03e102d1ebb9473b6226fa9b6edb684fa0218a2f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15031 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/trace')
-rw-r--r--src/usr/trace/buffer.C12
-rw-r--r--src/usr/trace/buffer.H22
-rw-r--r--src/usr/trace/daemon/daemon.C14
-rw-r--r--src/usr/trace/daemon/daemon.H8
4 files changed, 31 insertions, 25 deletions
diff --git a/src/usr/trace/buffer.C b/src/usr/trace/buffer.C
index 4793b65af..c7bc52a93 100644
--- a/src/usr/trace/buffer.C
+++ b/src/usr/trace/buffer.C
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2015 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -404,9 +406,9 @@ namespace TRACE
// We just added the newest entry, so update component list.
//
- // It is possible that the committer of the preceeding entry was
+ // It is possible that the committer of the preceding entry was
// "slow", so we need to keep trying to update until the current
- // compoment "first" points at the preceeding entry and then make
+ // compoment "first" points at the preceding entry and then make
// it point at this entry.
//
while (!__sync_bool_compare_and_swap(&l_comp->iv_first,
@@ -562,7 +564,7 @@ namespace TRACE
// Get consumer lock.
_consumerEnter();
- // Primative #1.
+ // Primitive #1.
if (NULL != i_condAddr)
{
if (i_condVal == *i_condAddr)
@@ -578,7 +580,7 @@ namespace TRACE
}
}
- // Primative #2.
+ // Primitive #2.
if (NULL != i_addr)
{
*i_addr = i_val;
diff --git a/src/usr/trace/buffer.H b/src/usr/trace/buffer.H
index a2abc21fa..b73d7b00b 100644
--- a/src/usr/trace/buffer.H
+++ b/src/usr/trace/buffer.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2015 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -156,10 +158,10 @@ namespace TRACE
* because the daemon code is swappable and we cannot block
* producers.
*
- * This function gives a set of primatives to the daemon to
+ * This function gives a set of primitives to the daemon to
* manipulate Entry pointers while secured under the consumer lock.
*
- * The primatives that can be done are:
+ * The primitives that can be done are:
* 1) if (condAddr == condVal) { condActAddr = condActVal }
* 2) addr = val
*
@@ -167,15 +169,15 @@ namespace TRACE
* not be performed. So, just calling consumerOp() has the
* side-effect of simply toggling the consumer lock on and off.
*
- * The return value indicates if primative #1 failed.
+ * The return value indicates if primitive #1 failed.
*
- * @param[in] i_condAddr - The address to read for primative 1.
- * @param[in] i_condVal - The value to expect for primative 1.
- * @param[in] i_condActAddr - The address to store for primative 1.
- * @param[in] i_condActVal - The value to store for primative 1.
+ * @param[in] i_condAddr - The address to read for primitive 1.
+ * @param[in] i_condVal - The value to expect for primitive 1.
+ * @param[in] i_condActAddr - The address to store for primitive 1.
+ * @param[in] i_condActVal - The value to store for primitive 1.
*
- * @param[in] i_addr - The address to store for primative 2.
- * @param[in] i_val - The value to store for primative 2.
+ * @param[in] i_addr - The address to store for primitive 2.
+ * @param[in] i_val - The value to store for primitive 2.
*
* @return bool - false if condAddr != condVal, true otherwise.
*/
diff --git a/src/usr/trace/daemon/daemon.C b/src/usr/trace/daemon/daemon.C
index de438b2f4..d16a34653 100644
--- a/src/usr/trace/daemon/daemon.C
+++ b/src/usr/trace/daemon/daemon.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2015 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -355,7 +355,7 @@ namespace TRACEDAEMON
if (NULL != contBuffer)
{
sendContBuffer(contBuffer, contBufferSize);
- // contBuffer pointer is transfered to mailbox now.
+ // contBuffer pointer is transferred to mailbox now.
}
contBuffer = reinterpret_cast<char*>(malloc(PAGESIZE));
@@ -364,7 +364,7 @@ namespace TRACEDAEMON
contBufferSize = 1;
}
- // Add entry to continous trace.
+ // Add entry to continuous trace.
memcpy(&contBuffer[contBufferSize],
whichEntry->comp->iv_compName,
whichEntry->comp->iv_compNameLen);
@@ -393,13 +393,13 @@ namespace TRACEDAEMON
} while(1);
- // Send remainder of continous trace buffer.
+ // Send remainder of continuous trace buffer.
if (NULL != contBuffer)
{
if (contBufferSize > 1)
{
sendContBuffer(contBuffer, contBufferSize);
- // contBuffer pointer is transfered to mailbox now.
+ // contBuffer pointer is transferred to mailbox now.
}
else
{
@@ -736,7 +736,7 @@ namespace TRACEDAEMON
if (NULL != curBuffer)
{
sendExtractBuffer(curBuffer, curBufferSize);
- // curBuffer pointer is transfered to mailbox now.
+ // curBuffer pointer is transferred to mailbox now.
}
curBuffer = reinterpret_cast<char*>
@@ -767,7 +767,7 @@ namespace TRACEDAEMON
if (NULL != curBuffer)
{
sendExtractBuffer(curBuffer, curBufferSize);
- // curBuffer pointer is transfered to mailbox now.
+ // curBuffer pointer is transferred to mailbox now.
}
// Send one last message to the SP to indicate we're done.
diff --git a/src/usr/trace/daemon/daemon.H b/src/usr/trace/daemon/daemon.H
index b0ecf85e5..c84ad50bb 100644
--- a/src/usr/trace/daemon/daemon.H
+++ b/src/usr/trace/daemon/daemon.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2015 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -76,12 +78,12 @@ namespace TRACEDAEMON
void collectTracePages();
/** Send continuous trace buffer to SP.
*
- * Ownership of i_buffer is transfered to mailbox.
+ * Ownership of i_buffer is transferred to mailbox.
*/
void sendContBuffer(void* i_buffer, size_t i_size);
/** Send extract trace buffer to SP.
*
- * Ownership of i_buffer is transfered to mailbox.
+ * Ownership of i_buffer is transferred to mailbox.
*/
void sendExtractBuffer(void* i_buffer, size_t i_size);
/** Reduce component trace buffers if exceeded max size. */
OpenPOWER on IntegriCloud