All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Frederik Bayart <frederik_bayart@yahoo.co.uk>,
	"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] rt_heap_alloc size 0 - syscall 7 denied
Date: Thu, 15 Oct 2015 09:56:39 +0200	[thread overview]
Message-ID: <561F5C37.9020602@xenomai.org> (raw)
In-Reply-To: <145395888.622970.1444841737686.JavaMail.yahoo@mail.yahoo.com>

On 10/14/2015 06:55 PM, Frederik Bayart wrote:
> However the biggest problem is the denied syscall :
> 
> [Xenomai] syscall <7> denied to sysregd[22217]
> 

This one is not an issue, it's merely debug noise. You can silence it
with this change; the result will be functionally the same, without the
scary warning.

diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c
index 25bd7a5..5d69d83 100644
--- a/lib/copperplate/regd/regd.c
+++ b/lib/copperplate/regd/regd.c
@@ -538,7 +538,7 @@ int main(int argc, char *const *argv)

 	/* Force SCHED_OTHER. */
 	schedp.sched_priority = 0;
-	pthread_setschedparam(pthread_self(), SCHED_OTHER, &schedp);
+	__STD(pthread_setschedparam(pthread_self(), SCHED_OTHER, &schedp));

 	memset(&sa, 0, sizeof(sa));
 	sa.sa_handler = SIG_IGN;

-- 
Philippe.


      reply	other threads:[~2015-10-15  7:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14 10:22 [Xenomai] rt_heap_alloc size 0 - syscall 7 denied Frederik Bayart
2015-10-14 10:43 ` Philippe Gerum
2015-10-14 12:21   ` Frederik Bayart
2015-10-14 12:41     ` Philippe Gerum
2015-10-14 16:55       ` Frederik Bayart
2015-10-15  7:56         ` Philippe Gerum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=561F5C37.9020602@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=frederik_bayart@yahoo.co.uk \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.