public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] syscalls/cma: add runtime check to setup()
Date: Tue, 23 Apr 2013 12:29:36 +0200	[thread overview]
Message-ID: <20130423102935.GB28044@rei> (raw)
In-Reply-To: <8a4fb5929c599b2dec955086713069c20f95c466.1366704928.git.jstancek@redhat.com>

Hi!
>  static void setup(void)
> @@ -191,9 +191,11 @@ static void setup(void)
>  	    sflag ? SAFE_STRTOL(NULL, sz_opt, 1, LONG_MAX - PADDING_SIZE * 2)
>  	    : 100000;
>  
> -#if !defined(__NR_process_vm_readv)
> +#if !defined(__NR_process_vm_writev)
>  	tst_brkm(TCONF, NULL, "process_vm_writev does not exist "
>  		 "on your system");
> +#else
> +	ltp_syscall(__NR_process_vm_writev, 0, NULL, 0, NULL, 0, 0);
>  #endif
>  	semid = init_sem(1);

If you add the __NR_process_vm_writev to at least one of the
testscases/kernel/include/*.in and run regen script (make clean && make
in the corresponding dir), the linux_syscall_numbers.h will contain at
least stubs and ltp_syscall() will be able to handle both situations.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
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-23 10:28 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 [this message]
     [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
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=20130423102935.GB28044@rei \
    --to=chrubis@suse.cz \
    --cc=jstancek@redhat.com \
    --cc=ltp-list@lists.sourceforge.net \
    /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