From: Christopher Yeoh <cyeoh@au1.ibm.com>
To: Jan Stancek <jstancek@redhat.com>, Caspar Zhang <caspar@casparzhang.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] Simple tests for cross memory attach (process_vm_[readv|writev] syscalls)
Date: Fri, 18 May 2012 18:05:34 +0930 [thread overview]
Message-ID: <20120518180534.088a07b2@Gantu> (raw)
In-Reply-To: <4f473639-dcf2-43c7-ba27-be826fbb81d2@zmail17.collab.prod.int.phx2.redhat.com>
On Tue, 15 May 2012 10:56:17 -0400 (EDT)
Jan Stancek <jstancek@redhat.com> wrote:
>
> Hi,
>
> I looked at testcases sent by Chris. Good news is, they
> do not overlap (in terms of functionality) with mine :-).
>
> The patch need some polishing to match the style guide:
> - indentation
> - I think output should be TINFO, rather than plain printf
> - single statement if without { }
> - I would split some code to more functions, for example
> process_vm_writev01.c main function seems complex
Thanks for the feedback. I'll have a go at reworking them.
> As for test organization, I think we need to decide 2 issues:
> 1. directory structure
> a)
> testcases/kernel/syscalls/cma/
> testcases/kernel/syscalls/cma/process_vm_readv
> testcases/kernel/syscalls/cma/process_vm_writev
> b)
> testcases/kernel/syscalls/process_vm_readv
> testcases/kernel/syscalls/process_vm_writev
>
> I'm preferring a) as these 2 syscalls are closely related,
> and we already have need to share code.
that would be fine with me.
> 2. how to invoke new syscalls
> a)
> Patch from Chris is defining new syscall numbers in test and
> using syscall(2).
>
> b)
> My patch adds configure check for glibc wrappers
> process_vm_readv/writev and if those does not exists it checks for
> __NR_process_vm_readv.
>
> I think we should not define syscall numbers in tests directly,
> but I'm relying on LTP maintainers to provide guidance here.
I agree - the configure check is much better. I was just trying to get
something working :-)
Regards,
Chris
--
cyeoh@au.ibm.com
--
cyeoh@au.ibm.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2012-05-18 8:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-09 12:46 [LTP] [PATCH] Simple tests for cross memory attach (process_vm_[readv|writev] syscalls) Christopher Yeoh
2012-05-09 13:00 ` Caspar Zhang
2012-05-15 14:56 ` Jan Stancek
2012-05-17 14:26 ` Jan Stancek
2012-05-18 8:35 ` Christopher Yeoh [this message]
2012-07-11 10:14 ` Caspar Zhang
2012-05-18 12:35 ` Cyril Hrubis
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=20120518180534.088a07b2@Gantu \
--to=cyeoh@au1.ibm.com \
--cc=caspar@casparzhang.com \
--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