Skip to contentSkip to conversation

use inotify_init1(0) for inotify tests on aarch64

PATCH In review Jeffrey Bastian 2 participants 3 messages Feb 4, 2014 – Feb 11, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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)

---
 testcases/kernel/syscalls/inotify/inotify.h | 5 +++++
 1 file changed, 5 insertions(+)
testcases/kernel/syscalls/inotify/inotify.h +5 -0
index e396947c4f98..68fe3b5f6426 100644
@@ -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)
Signature · 12 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Reviewed-by on v1 1/1
#1 lore raw

----- Original Message -----

Quoted 10 lines

From: "Jeffrey Bastian" <[email protected]>
To: [email protected]
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)

Looks good to me.

Regards,
Jan

Quoted 27 lines
---
 testcases/kernel/syscalls/inotify/inotify.h | 5 +++++
 1 file changed, 5 insertions(+)
testcases/kernel/syscalls/inotify/inotify.h +5 -1
index e396947c4f98..68fe3b5f6426 100644
@@ -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

Quoted 10 lines

------------------------------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#2 lore raw

----- Original Message -----

Quoted 18 lines

From: "Jan Stancek" <[email protected]>
To: "Jeffrey Bastian" <[email protected]>
Cc: [email protected]
Sent: Thursday, 6 February, 2014 1:40:32 PM
Subject: Re: [LTP] [PATCH] use inotify_init1(0) for inotify tests on aarch64

----- Original Message -----

Quoted 9 lines

From: "Jeffrey Bastian" <[email protected]>
To: [email protected]
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)

Quoted 5 lines
Quoted 1 line

Looks good to me.

Pushed, thank you,
Jan

Quoted 43 lines

Regards,
Jan

Quoted 27 lines
---
 testcases/kernel/syscalls/inotify/inotify.h | 5 +++++
 1 file changed, 5 insertions(+)
testcases/kernel/syscalls/inotify/inotify.h +5 -1
index e396947c4f98..68fe3b5f6426 100644
@@ -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

Quoted 10 lines

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------

Quoted 9 lines

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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list