|
From: Nicholas N. <nj...@ca...> - 2004-02-18 11:05:59
|
On Wed, 18 Feb 2004, Somenath Chakraborty wrote: > Sir, > I want to go through Valgrind Code. Can u pls suggest me > what is the proper way to understand it. Actually I am a bit > confused from where I should I start. First, decide which version you will look at. There are significant differences between 2.0.0, 2.1.0 and the current CVS HEAD. I would recommend the CVS HEAD, as the others are out of date. Then, I would read the technical docs and the "formal overview" available at valgrind.kde.org/docs.html, to get an idea of how Valgrind works. Note that some details in these documents are out of date, but they give you the general idea. Also read the "Valgrind Skins" (now renamed "Valgrind Tools") section of the manual, to understand how tools work. After that, I would recommend looking at main() to begin with, and try to work out what is happening. There's a lot of complicated stuff that will be confusing at first -- I myself still find pieces of it confusing -- but just try to work out which bits are important. I find inserting printf() statements at various points to be a good way to understand how a big program works. Finally, I would look at the code for the various tools, especially "lackey", which is a simple example tool that's meant to be a kind of tutorial. N |
|
From: Stéphane A. <san...@fr...> - 2008-05-29 08:57:49
|
Gilles Chanteperdrix a écrit : > On Wed, May 28, 2008 at 9:33 AM, Stéphane ANCELOT <san...@fr...> wrote: > >> 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. > > 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 |