Skip to contentSkip to conversation

valgrind

Xenomai-help Stéphane ANCELOT 2 participants 4 messages May 28, 2008 – May 29, 2008

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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
#2 lore raw
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

#3 lore raw
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_table containing 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