public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Jan Stancek <jstancek@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] syscalls/cma: add runtime check to setup()
Date: Wed, 24 Apr 2013 02:53:52 -0400 (EDT)	[thread overview]
Message-ID: <1865305189.2143033.1366786432951.JavaMail.root@redhat.com> (raw)
In-Reply-To: <201304231213.33013.vapier@gentoo.org>



----- Original Message -----
> From: "Mike Frysinger" <vapier@gentoo.org>
> To: ltp-list@lists.sourceforge.net
> Cc: "Jan Stancek" <jstancek@redhat.com>
> Sent: Tuesday, 23 April, 2013 6:13:31 PM
> Subject: Re: [LTP] [PATCH] syscalls/cma: add runtime check to setup()
> 
> On Tuesday 23 April 2013 04:17:15 Jan Stancek wrote:
> > __NR_process_vm_readv / __NR_process_vm_writev defined doesn't
> > guarantee, that kernel supports these syscalls. Add check to setup(),
> > which uses ltp_syscall(). If syscall isn't supported it will
> > end the testcase with TCONF.
> 
> delete all the "#else" branches since you're now using
> linux_syscall_numbers.h

Without that check in parent, you can end up in situation where some child
aborts first and then parent reports failure. By doing it early in setup() you can
avoid allocating resources that won't go away when process later terminates with TCONF.

Regards,
Jan

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2013-04-24  6:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23  8:17 [LTP] [PATCH] syscalls/cma: add runtime check to setup() Jan Stancek
2013-04-23 10:29 ` chrubis
     [not found]   ` <956651177.1121108.1366719315370.JavaMail.root@redhat.com>
2013-04-23 12:45     ` chrubis
2013-04-23 16:13 ` Mike Frysinger
2013-04-24  6:53   ` Jan Stancek [this message]
2013-04-24 15:52     ` Mike Frysinger
2013-04-24 15:58       ` chrubis

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=1865305189.2143033.1366786432951.JavaMail.root@redhat.com \
    --to=jstancek@redhat.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=vapier@gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox