valgrind
Hi,
I tried xenomai integration in valgrind .
I have got some problems with __native_muxid .
Is there an easy way to retrieve this value (is it a const?) or is it a variable I have to store and reuse ?
Best Regards
S.Ancelot
Quoted 7 lines · Stéphane ANCELOT
Hi,
I tried xenomai integration in valgrind .I have got some problems with
__native_muxid.Is there an easy way to retrieve this value (is it a const?) or is it a variable I have to store and reuse ?
The muxid is returned by the "xn_sys_bind" system skin syscall. So, you have to get it at run-time.
Signature · 1 line
Gilles
Quoted 5 lines · Gilles Chanteperdrix
Quoted 3 lines · Stéphane ANCELOT
Hi,
I tried xenomai integration in valgrind .
Quoted 10 lines
Quoted 5 lines
I have got some problems with
__native_muxid.Is there an easy way to retrieve this value (is it a const?) or is it a variable I have to store and reuse ?
The muxid is returned by the "
xn_sys_bind" system skin syscall. So, you have to get it at run-time.
OK, but unfortunately, in valgrind, there is a static syscall_table containing all syscalls numbers.
In order solving this problem, I may setup a static range of syscalls for xenomai and route to concerned valgrind syscall at execution ? What are the xenomai syscall ranges ?
Best Regards
S.Ancelot
Quoted 17 lines · Stéphane ANCELOT
Quoted 14 lines · Gilles Chanteperdrix
Quoted 9 lines · Stéphane ANCELOT
Hi,
I tried xenomai integration in valgrind .I have got some problems with
__native_muxid.Is there an easy way to retrieve this value (is it a const?) or is it a variable I have to store and reuse ?
Quoted 7 lines
Quoted 4 lines
The muxid is returned by the "
xn_sys_bind" system skin syscall. So, you have to get it at run-time.OK, but unfortunately, in valgrind, there is a static
syscall_tablecontaining all syscalls numbers.
You have to modify valgrind to allow Xenomai dynamic syscall table scheme.
Quoted 4 lines
In order solving this problem, I may setup a static range of syscalls for xenomai and route to concerned valgrind syscall at execution ? What are the xenomai syscall ranges ?
It depends on the platform, but what we know for sure is that Xenomai syscall ranges are out of Linux syscall ranges. You will find Xenomai syscall number mangling scheme in include/asm-yourplatform/syscall.h, and the syscall numbers of a given skin in include/yourskin/syscall.h.
Signature · 1 line
Gilles