Re: Regarding ltt-core.h file

"Srinivasa Reddy" <[email protected]> Wed, 25 Jul 2007 16:32:30 +0530
Newsgroups gmane.linux.kernel.tracing
Message-ID <[email protected]>
Ok fine.

-----Original Message-----
From: Mathieu Desnoyers [mailto:[email protected]] 
Sent: Tuesday, July 24, 2007 7:55 PM
To: Srinivasa Reddy
Cc: [email protected]
Subject: Re: Regarding ltt-core.h file

* Srinivasa Reddy ([email protected]) wrote:
> Hi Mathieu,
> 
>  
> 
> I have found some difference in linux-2.6.19/include/linux/ltt-core.h
> file (on my machine and over the net). 
> 
>  
> 
> The file what I have in my linux kernel folder after I did the patch
of
> LTTng is like given below:
> 
>  
> 
>  
> 
> /*
> 
>  * linux/include/linux/ltt-core.h
> 
>  *
> 
>  * Copyright (C) 2005,2006 Mathieu Desnoyers
> ([email protected])
> 
>  *
> 
>  * This contains the core definitions for the Linux Trace Toolkit.
> 
>  */
> 
>  
> 
> #ifndef LTT_CORE_H
> 
> #define LTT_CORE_H
> 
>  
> 
> #include <linux/list.h>
> 
>  
> 
> #ifdef CONFIG_LTT
> 
>  
> 
> /* All modifications of ltt_traces must be done by ltt-tracer.c, while
> holding
> 
>  * the semaphore. Only reading of this information can be done
> elsewhere, with
> 
>  * the RCU mechanism : the preemption must be disabled while reading
the
> 
>  * list. */
> 
> struct ltt_traces {
> 
>       struct list_head head;        /* Traces list */
> 
>       unsigned int num_active_traces;     /* Number of active traces
*/
> 
> } ____cacheline_aligned;
> 
>  
> 
> extern struct ltt_traces ltt_traces;
> 
>  
> 
>  
> 
> /* Keep track of traps nesting inside LTT */
> 
> extern volatile unsigned int ltt_nesting[];
> 
>  
> 
> #endif //CONFIG_LTT
> 
>  
> 
> #endif //LTT_CORE_H
> 
>  
> 
>  
> 
> But when I am searching some thing on google I have found a link for
> that file.
> 
> Which has lot of stuff in that, like : lot of function calls
> (channel_create, ....). The link is given below:
> 
>  
> 
>
http://listserv.shafik.org/pipermail/ltt-dev/2006-September/001846.html
> 
>  
> 
> My LTTng version is 0.6.47 and 0.6.48. and linux kernel is 2.6.19.
> 
>  
> 
> Could you please tell me whether I am getting that file wrongly while
I
> am doing the patch? or 
> 

Correct file for 2.6.19. The rest of the declarations are now in
linux/ltt-tracer.h.

>  
> 
> Those functions are implemented in different files of these latest
> versions of LTTng?
> 
>  
> 
> Because my environment is not creating the channel file, and lttd is
> saying "No Channel to read".
> 
>  
> 
> Please clarify this.
> 
>  
> 
> Regards,
> 
> Srinivas.
> 
>  
> 

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE
9A68