summaryrefslogtreecommitdiffstats
path: root/src/usr/trace
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/trace')
-rw-r--r--src/usr/trace/tracedaemon.C50
-rw-r--r--src/usr/trace/tracedaemon.H46
2 files changed, 48 insertions, 48 deletions
diff --git a/src/usr/trace/tracedaemon.C b/src/usr/trace/tracedaemon.C
index c4bd4e56c..cbbb73e85 100644
--- a/src/usr/trace/tracedaemon.C
+++ b/src/usr/trace/tracedaemon.C
@@ -1,25 +1,25 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/usr/trace/tracedaemon.C $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2012
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/trace/tracedaemon.C $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2012 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
#include "tracedaemon.H"
#include <sys/task.h>
#include <targeting/common/commontargeting.H>
@@ -50,9 +50,10 @@ TraceDaemon::~TraceDaemon()
msg_q_destroy(iv_msgQ);
}
-void TraceDaemon::start(void* i_self)
+void* TraceDaemon::start(void* i_self)
{
reinterpret_cast<TraceDaemon *>(i_self)->run();
+ return NULL;
};
void TraceDaemon::run()
@@ -80,8 +81,7 @@ void TraceDaemon::run()
case DAEMON_SHUTDOWN:
// Respond to message and exit.
msg_respond(iv_msgQ, l_msg);
- task_end();
- break;
+ return;
};
if (msg_is_async(l_msg))
diff --git a/src/usr/trace/tracedaemon.H b/src/usr/trace/tracedaemon.H
index 6c4006701..1dbc0935a 100644
--- a/src/usr/trace/tracedaemon.H
+++ b/src/usr/trace/tracedaemon.H
@@ -1,25 +1,25 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/usr/trace/tracedaemon.H $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2012
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/trace/tracedaemon.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2012 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
#ifndef __TRACE_DAEMON_H
#define __TRACE_DAEMON_H
@@ -77,7 +77,7 @@ namespace TRACE
/** @brief Function to start daemon thread (using task_create).
* @param[in] Pointer to self.
*/
- static void start(void*);
+ static void* start(void*);
/** @brief Main daemon loop. */
void run();
OpenPOWER on IntegriCloud