public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] use inotify_init1(0) for inotify tests on aarch64
@ 2014-02-04 22:44 Jeffrey Bastian
  2014-02-06 12:40 ` Jan Stancek
  0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey Bastian @ 2014-02-04 22:44 UTC (permalink / raw)
  To: ltp-list

aarch64 (and possibly other new architectures) does not implement
the __ARCH_WANT_SYSCALL_NO_FLAGS syscalls, so use inotify_init1(0)
instead of inotify_init(void)

Signed-off-by: Jeffrey Bastian <jbastian@redhat.com>
---
 testcases/kernel/syscalls/inotify/inotify.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testcases/kernel/syscalls/inotify/inotify.h b/testcases/kernel/syscalls/inotify/inotify.h
index e396947c4f98..68fe3b5f6426 100644
--- a/testcases/kernel/syscalls/inotify/inotify.h
+++ b/testcases/kernel/syscalls/inotify/inotify.h
@@ -30,8 +30,13 @@
 
 /* inotify(7) wrappers */
 
+#if __NR_inotify_init != __LTP__NR_INVALID_SYSCALL
 #define	myinotify_init() \
 	syscall(__NR_inotify_init)
+#else
+#define	myinotify_init() \
+	syscall(__NR_inotify_init1, 0)
+#endif
 
 #define	myinotify_add_watch(fd, pathname, mask)	\
 	syscall(__NR_inotify_add_watch, fd, pathname, mask)
-- 
1.8.3.1


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] use inotify_init1(0) for inotify tests on aarch64
  2014-02-04 22:44 [LTP] [PATCH] use inotify_init1(0) for inotify tests on aarch64 Jeffrey Bastian
@ 2014-02-06 12:40 ` Jan Stancek
  2014-02-11 13:31   ` Jan Stancek
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Stancek @ 2014-02-06 12:40 UTC (permalink / raw)
  To: Jeffrey Bastian; +Cc: ltp-list



----- Original Message -----
> From: "Jeffrey Bastian" <jbastian@redhat.com>
> To: ltp-list@lists.sourceforge.net
> Sent: Tuesday, 4 February, 2014 11:44:00 PM
> Subject: [LTP] [PATCH] use inotify_init1(0) for inotify tests on aarch64
> 
> aarch64 (and possibly other new architectures) does not implement
> the __ARCH_WANT_SYSCALL_NO_FLAGS syscalls, so use inotify_init1(0)
> instead of inotify_init(void)
> 
> Signed-off-by: Jeffrey Bastian <jbastian@redhat.com>

Looks good to me.

Reviewed-by: Jan Stancek <jstancek@redhat.com>

Regards,
Jan

> ---
>  testcases/kernel/syscalls/inotify/inotify.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/testcases/kernel/syscalls/inotify/inotify.h
> b/testcases/kernel/syscalls/inotify/inotify.h
> index e396947c4f98..68fe3b5f6426 100644
> --- a/testcases/kernel/syscalls/inotify/inotify.h
> +++ b/testcases/kernel/syscalls/inotify/inotify.h
> @@ -30,8 +30,13 @@
>  
>  /* inotify(7) wrappers */
>  
> +#if __NR_inotify_init != __LTP__NR_INVALID_SYSCALL
>  #define	myinotify_init() \
>  	syscall(__NR_inotify_init)
> +#else
> +#define	myinotify_init() \
> +	syscall(__NR_inotify_init1, 0)
> +#endif
>  
>  #define	myinotify_add_watch(fd, pathname, mask)	\
>  	syscall(__NR_inotify_add_watch, fd, pathname, mask)
> --
> 1.8.3.1
> 
> 
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> 

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] use inotify_init1(0) for inotify tests on aarch64
  2014-02-06 12:40 ` Jan Stancek
@ 2014-02-11 13:31   ` Jan Stancek
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Stancek @ 2014-02-11 13:31 UTC (permalink / raw)
  To: Jeffrey Bastian; +Cc: ltp-list





----- Original Message -----
> From: "Jan Stancek" <jstancek@redhat.com>
> To: "Jeffrey Bastian" <jbastian@redhat.com>
> Cc: ltp-list@lists.sourceforge.net
> Sent: Thursday, 6 February, 2014 1:40:32 PM
> Subject: Re: [LTP] [PATCH] use inotify_init1(0) for inotify tests on aarch64
> 
> 
> 
> ----- Original Message -----
> > From: "Jeffrey Bastian" <jbastian@redhat.com>
> > To: ltp-list@lists.sourceforge.net
> > Sent: Tuesday, 4 February, 2014 11:44:00 PM
> > Subject: [LTP] [PATCH] use inotify_init1(0) for inotify tests on aarch64
> > 
> > aarch64 (and possibly other new architectures) does not implement
> > the __ARCH_WANT_SYSCALL_NO_FLAGS syscalls, so use inotify_init1(0)
> > instead of inotify_init(void)
> > 
> > Signed-off-by: Jeffrey Bastian <jbastian@redhat.com>
> 
> Looks good to me.
> 
> Reviewed-by: Jan Stancek <jstancek@redhat.com>

Pushed, thank you,
Jan

> 
> Regards,
> Jan
> 
> > ---
> >  testcases/kernel/syscalls/inotify/inotify.h | 5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > diff --git a/testcases/kernel/syscalls/inotify/inotify.h
> > b/testcases/kernel/syscalls/inotify/inotify.h
> > index e396947c4f98..68fe3b5f6426 100644
> > --- a/testcases/kernel/syscalls/inotify/inotify.h
> > +++ b/testcases/kernel/syscalls/inotify/inotify.h
> > @@ -30,8 +30,13 @@
> >  
> >  /* inotify(7) wrappers */
> >  
> > +#if __NR_inotify_init != __LTP__NR_INVALID_SYSCALL
> >  #define	myinotify_init() \
> >  	syscall(__NR_inotify_init)
> > +#else
> > +#define	myinotify_init() \
> > +	syscall(__NR_inotify_init1, 0)
> > +#endif
> >  
> >  #define	myinotify_add_watch(fd, pathname, mask)	\
> >  	syscall(__NR_inotify_add_watch, fd, pathname, mask)
> > --
> > 1.8.3.1
> > 
> > 
> > ------------------------------------------------------------------------------
> > Managing the Performance of Cloud-Based Applications
> > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> > Read the Whitepaper.
> > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Ltp-list mailing list
> > Ltp-list@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/ltp-list
> > 
> 
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> 

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-11 13:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04 22:44 [LTP] [PATCH] use inotify_init1(0) for inotify tests on aarch64 Jeffrey Bastian
2014-02-06 12:40 ` Jan Stancek
2014-02-11 13:31   ` Jan Stancek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox