From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <516C5868.3000706@xenomai.org> Date: Mon, 15 Apr 2013 21:43:36 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <516998B7.9090901@xenomai.org> <5169C63B.1070406@xenomai.org> <5169EC2C.4000101@xenomai.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] [QUESTION] thread creation and hook function List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alex alex Cc: Xenomai On 04/15/2013 10:47 AM, alex alex wrote: >> There are simple ways in the application itself, you do not need a >> kernel module and a switch hook. > > The reason I use a switch hook is to retrieve informations about context > switches to produce a Gantt chart of the sechuleur. But maybe hook > functions are > not suitable for this? Anyway, I'll try to use the tracer with the latest > version of xenomai to try to understand what is happening. > > Thank you very much for your replies and advice. The problem is that you will only get partial information. For instance you will not see context switches which occur between real-time tasks running in secondary mode. -- Gilles.