[ltt-dev] Kernel crashes when creating a trace

Mathieu Desnoyers mathieu.desnoyers at polymtl.ca
Wed Nov 11 15:21:09 EST 2009


* Ashwin Tanugula (ashwin.tanugula at broadcom.com) wrote:
> Hi Mathieu, 
> >You might want to try:
> 
> >#include <sys/syscall.h>
> >#define splice(...)      syscall(__NR_splice, __VA_ARGS__)
> 
> >and see if it works. This would let your application use the sys_futex system call directly. It works on x86, I don't know for mips. Please let me know how it works out.
> 
> It works, I am able to compile without any probelems.
> 
> A question though.
> 
> You said "This would let your application use the sys_futex system call directly"
> 

my bad, I should have said "...sys_splice directly". I took this code
snippet from my userspace RCU code which uses this for sys_futex rather
than sys_splice.

Mathieu

> So, isn't this supposed to be
> 
> #define splice(...)      syscall(__NR_futex, __VA_ARGS__) ??
> 
> Thanks,
> Ashwin
> 
> 
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list