Module: xenomai-forge
Branch: next
Commit: 3b3d80a01f5f9d353c8421c2864e4f03f4f22ce1
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=3b3d80a01f5f9d353c8421c2864e4f03f4f22ce1

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Jun 25 18:45:13 2014 +0200

cobalt: remove all direct references to SIGXCPU

---

 demo/alchemy/latency.c      |    2 +-
 lib/alchemy/task.c          |    6 +++---
 lib/cobalt/assert_context.c |    2 +-
 lib/cobalt/init.c           |    2 +-
 lib/cobalt/thread.c         |    2 +-
 testsuite/latency/latency.c |    2 +-
 utils/slackspot/README      |    2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/demo/alchemy/latency.c b/demo/alchemy/latency.c
index 5efc344..9c31096 100644
--- a/demo/alchemy/latency.c
+++ b/demo/alchemy/latency.c
@@ -473,7 +473,7 @@ static void faulthand(int sig)
 #include <cobalt/uapi/syscall.h>
 
 static const char *reason_str[] = {
-       [SIGDEBUG_UNDEFINED] = "latency: received SIGXCPU for unknown reason",
+       [SIGDEBUG_UNDEFINED] = "latency: received SIGDEBUG for unknown reason",
        [SIGDEBUG_MIGRATE_SIGNAL] = "received signal",
        [SIGDEBUG_MIGRATE_SYSCALL] = "invoked syscall",
        [SIGDEBUG_MIGRATE_FAULT] = "triggered fault",
diff --git a/lib/alchemy/task.c b/lib/alchemy/task.c
index 12621dc..8de9257 100644
--- a/lib/alchemy/task.c
+++ b/lib/alchemy/task.c
@@ -369,7 +369,7 @@ fail_syncinit:
  * entering the user routine specified by rt_task_start(). A call to
  * rt_task_set_mode() from the new task is required to drop this lock.
  *
- * - When running over the Cobalt core, T_WARNSW causes the SIGXCPU
+ * - When running over the Cobalt core, T_WARNSW causes the SIGDEBUG
  * signal to be sent to the current task whenever it switches to the
  * secondary mode. This feature is useful to detect unwanted
  * migrations to the Linux domain. This flag has no effect over the
@@ -692,7 +692,7 @@ out:
  * switches on the current CPU. A call to rt_task_set_mode() from the
  * current task is required to drop this lock.
  *
- * - When running over the Cobalt core, T_WARNSW causes the SIGXCPU
+ * - When running over the Cobalt core, T_WARNSW causes the SIGDEBUG
  * signal to be sent to the current task whenever it switches to the
  * secondary mode. This feature is useful to detect unwanted
  * migrations to the Linux domain. This flag has no effect over the
@@ -1410,7 +1410,7 @@ out:
  *
  * - Only when running over the Cobalt core:
  *
- *   - T_WARNSW causes the SIGXCPU signal to be sent to the current
+ *   - T_WARNSW causes the SIGDEBUG signal to be sent to the current
  * task whenever it switches to the secondary mode. This feature is
  * useful to detect unwanted migrations to the Linux domain.
  *
diff --git a/lib/cobalt/assert_context.c b/lib/cobalt/assert_context.c
index 4e1adc1..54f2d52 100644
--- a/lib/cobalt/assert_context.c
+++ b/lib/cobalt/assert_context.c
@@ -41,7 +41,7 @@ static void assert_nrt_inner(void)
        }
 
        if (stat.status & XNTRAPSW)
-               pthread_kill(pthread_self(), SIGXCPU);
+               pthread_kill(pthread_self(), SIGDEBUG);
 }
 
 void assert_nrt(void)
diff --git a/lib/cobalt/init.c b/lib/cobalt/init.c
index c33e9b2..899f4d9 100644
--- a/lib/cobalt/init.c
+++ b/lib/cobalt/init.c
@@ -151,7 +151,7 @@ void __libcobalt_init(void)
        sa.sa_sigaction = cobalt_sigdebug_handler;
        sigemptyset(&sa.sa_mask);
        sa.sa_flags = SA_SIGINFO;
-       sigaction(SIGXCPU, &sa, &__cobalt_orig_sigdebug);
+       sigaction(SIGDEBUG, &sa, &__cobalt_orig_sigdebug);
 
        __cobalt_muxid = __xn_mux_shifted_id(muxid);
 
diff --git a/lib/cobalt/thread.c b/lib/cobalt/thread.c
index 929e188..418a931 100644
--- a/lib/cobalt/thread.c
+++ b/lib/cobalt/thread.c
@@ -345,7 +345,7 @@ COBALT_IMPL(int, pthread_create, (pthread_t *ptid_r,
  * - PTHREAD_LOCK_SCHED, when set, locks the scheduler, which prevents the
  *   current thread from being switched out until the scheduler
  *   is unlocked;
- * - PTHREAD_WARNSW, when set, causes the signal SIGXCPU to be sent to the
+ * - PTHREAD_WARNSW, when set, causes the signal SIGDEBUG to be sent to the
  *   current thread, whenever it involontary switches to secondary mode;
  * - PTHREAD_CONFORMING can be passed in @a setmask to switch the
  * current user-space task to its preferred runtime mode. The only
diff --git a/testsuite/latency/latency.c b/testsuite/latency/latency.c
index ccf7dfe..6917f99 100644
--- a/testsuite/latency/latency.c
+++ b/testsuite/latency/latency.c
@@ -532,7 +532,7 @@ static void faulthand(int sig)
 #include <cobalt/uapi/syscall.h>
 
 static const char *reason_str[] = {
-       [SIGDEBUG_UNDEFINED] = "latency: received SIGXCPU for unknown reason",
+       [SIGDEBUG_UNDEFINED] = "latency: received SIGDEBUG for unknown reason",
        [SIGDEBUG_MIGRATE_SIGNAL] = "received signal",
        [SIGDEBUG_MIGRATE_SYSCALL] = "invoked syscall",
        [SIGDEBUG_MIGRATE_FAULT] = "triggered fault",
diff --git a/utils/slackspot/README b/utils/slackspot/README
index f1e94c8..141a7d7 100644
--- a/utils/slackspot/README
+++ b/utils/slackspot/README
@@ -3,7 +3,7 @@
 We desperately needed a way to help spotting code locations causing
 spurious relaxes of real-time threads, at source level.
 
-Combining SIGXCPU receipts and the backtrace() utility directly from
+Combining SIGDEBUG receipts and the backtrace() utility directly from
 the application code used to be the recommended way of doing this, but
 this fell short of being really handy, simply because that debug
 feature had to be implemented in an ad hoc manner within each new


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to