Need help with ipipe trace
Hi,
I am trying to get an ipipe trace and need help to get it working.
I am using Xenomai 2.6 with linux 3.0.0.
The kernel is compiled with following config parameters:
CONFIG_IPIPE_DEBUG=yCONFIG_IPIPE_DEBUG_CONTEXT=yCONFIG_IPIPE_DEBUG_INTERNAL=yCONFIG_IPIPE_TRACE=yCONFIG_IPIPE_TRACE_ENABLE=yCONFIG_IPIPE_TRACE_MCOUNT=yCONFIG_IPIPE_TRACE_IRQSOFF=yCONFIG_IPIPE_TRACE_SHIFT=14CONFIG_IPIPE_TRACE_VMALLOC=yCONFIG_IPIPE_TRACE_PANIC=yCONFIG_DEBUG_KERNEL=y
The /proc/ipipe direcotry is created.
In my application I am using:
xntrace_max_begin(0); -> To start tracing.xntrace_max_end(0); -> To stop tracing.
The function trace that I get in the /proc/ipipe/trace/max file does not have the xenomai calls that I am invoking e.g. rt_timer_read.
Can you pl advice if this is the correct method of using the tracer?
Can you pl elaborate on the value being passed in? I see it is initializing to:
+ tp->nmi_saved_v = v;
but could not understand it's use? Is it the no. of nested nmi's that will be traced?
Are there any examples of the use of xntrace_max_* functions?
I have also tried using xntrace_user_freeze by looking at latency.c. The contents of the frozen file does have a trace to the functions I am calling e.g. rt_timer_read, but I do not see any interrupt processing in the trace.
Will interrupts be traced by the ipipe tracer? Is there any other way to trace the interrupts with a timestamp that are handled by ipipe?
Thanks for your time.
Warm Rgds,
Mak.
Signature · 7 lines
___________________________________________________________________________ NOTICE OF CONFIDENTIALITY: This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this e-mail and any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. _____________________________________________________________________
Quoted 22 lines · Makarand Pradhan
Hi,
I am trying to get an ipipe trace and need help to get it working.
I am using Xenomai 2.6 with linux 3.0.0.
The kernel is compiled with following config parameters:
CONFIG_IPIPE_DEBUG=yCONFIG_IPIPE_DEBUG_CONTEXT=yCONFIG_IPIPE_DEBUG_INTERNAL=yCONFIG_IPIPE_TRACE=yCONFIG_IPIPE_TRACE_ENABLE=yCONFIG_IPIPE_TRACE_MCOUNT=yCONFIG_IPIPE_TRACE_IRQSOFF=yCONFIG_IPIPE_TRACE_SHIFT=14CONFIG_IPIPE_TRACE_VMALLOC=yCONFIG_IPIPE_TRACE_PANIC=yCONFIG_DEBUG_KERNEL=yThe
/proc/ipipedirecotry is created.
Quoted 7 lines
In my application I am using:
xntrace_max_begin(0); -> To start tracing.xntrace_max_end(0); -> To stop tracing.The function trace that I get in the
/proc/ipipe/trace/maxfile does not have the xenomai calls that I am invoking e.g.rt_timer_read.
The I-pipe tracer is a kernel-space tracer, so, you will only get the trace for the services which emit a system call. So, when calling rt_timer_read, you should see __rt_timer_read in the trace.
You can find all the documentation we have about the I-pipe tracer here:
http://www.xenomai.org/index.php/I-pipe:Tracer
Signature · 1 line
Gilles.
Thanks Gilles for your prompt response.
Yes. I am aware that it is a kernel-space tracer and I do see __rt_timer_read in the frozen file.
: + func -102 0.757 hisyscall_event+0x8 (__ipipe_dispatch_event+0x1c0) : + func -102 0.803 __rt_timer_read+0x8 [xeno_native] (hisyscall_event+0x1e4) : + func -101 0.787 xnarch_get_cpu_time+0x8 (__rt_timer_read+0x30 [xeno_native]) : + func -100+ 1.030 xnarch_tsc_to_ns+0x8 (xnarch_get_cpu_time+0x4c) :| + begin 0x80000001 -99 0.590 __ipipe_dispatch_event+0x1e8 (__ipipe_syscall_root+0x6c) :| + end 0x80000001 -98 0.681 __ipipe_dispatch_event+0x240 (__ipipe_syscall_root+0x6c)
The Documentation pointed was referred to start using the tracer but am not completely successful in getting the trace using xntrace_max_begin/end. So would highly appreciate your views on the same. Also your inputs on the unsigned int passed in to xntrace_max_being would be highly appreciated.
I am trying to trace the interrupts with a timestamp and could not see any int processing in the traces. Will the tracer capture the interrupts and the ISRs being invoked?
Thanks and Rgds,
Mak.
Quoted 37 lines · Gilles Chanteperdrix
Quoted 22 lines · Makarand Pradhan
Hi,
I am trying to get an ipipe trace and need help to get it working.
I am using Xenomai 2.6 with linux 3.0.0.
The kernel is compiled with following config parameters:
CONFIG_IPIPE_DEBUG=yCONFIG_IPIPE_DEBUG_CONTEXT=yCONFIG_IPIPE_DEBUG_INTERNAL=yCONFIG_IPIPE_TRACE=yCONFIG_IPIPE_TRACE_ENABLE=yCONFIG_IPIPE_TRACE_MCOUNT=yCONFIG_IPIPE_TRACE_IRQSOFF=yCONFIG_IPIPE_TRACE_SHIFT=14CONFIG_IPIPE_TRACE_VMALLOC=yCONFIG_IPIPE_TRACE_PANIC=yCONFIG_DEBUG_KERNEL=yThe
/proc/ipipedirecotry is created.Quoted 7 lines
In my application I am using:
xntrace_max_begin(0); -> To start tracing.xntrace_max_end(0); -> To stop tracing.The function trace that I get in the
/proc/ipipe/trace/maxfile does not have the xenomai calls that I am invoking e.g.rt_timer_read.The I-pipe tracer is a kernel-space tracer, so, you will only get the trace for the services which emit a system call. So, when calling
rt_timer_read, you should see__rt_timer_readin the trace.You can find all the documentation we have about the I-pipe tracer here:
http://www.xenomai.org/index.php/I-pipe:Tracer
Signature · 7 lines
___________________________________________________________________________ NOTICE OF CONFIDENTIALITY: This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this e-mail and any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. _____________________________________________________________________
Quoted 16 lines · Makarand Pradhan
Thanks Gilles for your prompt response.
Yes. I am aware that it is a kernel-space tracer and I do see
__rt_timer_readin the frozen file.: + func -102 0.757
hisyscall_event+0x8
(__ipipe_dispatch_event+0x1c0) : + func -102
0.803__rt_timer_read+0x8[xeno_native] (hisyscall_event+0x1e4) :
+ func -101 0.787xnarch_get_cpu_time+0x8
(__rt_timer_read+0x30[xeno_native]) : + func -100+
1.030xnarch_tsc_to_ns+0x8(xnarch_get_cpu_time+0x4c) :| + begin0x80000001-99 0.590__ipipe_dispatch_event+0x1e8
(__ipipe_syscall_root+0x6c) :| + end0x80000001-98 0.681__ipipe_dispatch_event+0x240(__ipipe_syscall_root+0x6c)
Quoted 5 lines
The Documentation pointed was referred to start using the tracer but am not completely successful in getting the trace using xntrace_max_begin/end. So would highly appreciate your views on the same. Also your inputs on the unsigned int passed in to
xntrace_max_beingwould be highly appreciated.
Never tried xntrace_max_*
Quoted 4 lines
I am trying to trace the interrupts with a timestamp and could not see any int processing in the traces. Will the tracer capture the interrupts and the ISRs being invoked?
I never had any problem observing interrupts. Maybe you do not have enough points in the trace?
Quoted 43 lines
Thanks and Rgds, Mak.
Quoted 35 lines · Gilles Chanteperdrix
Quoted 18 lines · Makarand Pradhan
Hi,
I am trying to get an ipipe trace and need help to get it working.
I am using Xenomai 2.6 with linux 3.0.0.
The kernel is compiled with following config parameters:
CONFIG_IPIPE_DEBUG=yCONFIG_IPIPE_DEBUG_CONTEXT=yCONFIG_IPIPE_DEBUG_INTERNAL=yCONFIG_IPIPE_TRACE=yCONFIG_IPIPE_TRACE_ENABLE=yCONFIG_IPIPE_TRACE_MCOUNT=yCONFIG_IPIPE_TRACE_IRQSOFF=yCONFIG_IPIPE_TRACE_SHIFT=14CONFIG_IPIPE_TRACE_VMALLOC=yCONFIG_IPIPE_TRACE_PANIC=yCONFIG_DEBUG_KERNEL=yThe
/proc/ipipedirecotry is created.Quoted 8 lines
In my application I am using:
xntrace_max_begin(0); -> To start tracing.xntrace_max_end(0); -> To stop tracing.The function trace that I get in the
/proc/ipipe/trace/maxfile does not have the xenomai calls that I am invoking e.g.rt_timer_read.The I-pipe tracer is a kernel-space tracer, so, you will only get the trace for the services which emit a system call. So, when calling
rt_timer_read, you should see__rt_timer_readin the trace.You can find all the documentation we have about the I-pipe tracer
here: http://www.xenomai.org/index.php/I-pipe:Tracer
Signature · 1 line
Gilles.
Thanks Gilles.
That was very helpful. I can now see the intr handlers after increasing the back_trace_points to 5000.
Rgds,
Mak.
Quoted 72 lines · Gilles Chanteperdrix
Quoted 16 lines · Makarand Pradhan
Thanks Gilles for your prompt response.
Yes. I am aware that it is a kernel-space tracer and I do see
__rt_timer_readin the frozen file.: + func -102 0.757
hisyscall_event+0x8
(__ipipe_dispatch_event+0x1c0) : + func -102
0.803__rt_timer_read+0x8[xeno_native] (hisyscall_event+0x1e4) :
+ func -101 0.787xnarch_get_cpu_time+0x8
(__rt_timer_read+0x30[xeno_native]) : + func -100+
1.030xnarch_tsc_to_ns+0x8(xnarch_get_cpu_time+0x4c) :| + begin0x80000001-99 0.590__ipipe_dispatch_event+0x1e8
(__ipipe_syscall_root+0x6c) :| + end0x80000001-98 0.681__ipipe_dispatch_event+0x240(__ipipe_syscall_root+0x6c)Quoted 5 lines
The Documentation pointed was referred to start using the tracer but am not completely successful in getting the trace using xntrace_max_begin/end. So would highly appreciate your views on the same. Also your inputs on the unsigned int passed in to
xntrace_max_beingwould be highly appreciated.Never tried xntrace_max_*
Quoted 3 lines
I am trying to trace the interrupts with a timestamp and could not see any int processing in the traces. Will the tracer capture the interrupts and the ISRs being invoked?
I never had any problem observing interrupts. Maybe you do not have enough points in the trace?
Quoted 41 lines
Thanks and Rgds, Mak.
Quoted 35 lines · Gilles Chanteperdrix
Quoted 18 lines · Makarand Pradhan
Hi,
I am trying to get an ipipe trace and need help to get it working.
I am using Xenomai 2.6 with linux 3.0.0.
The kernel is compiled with following config parameters:
CONFIG_IPIPE_DEBUG=yCONFIG_IPIPE_DEBUG_CONTEXT=yCONFIG_IPIPE_DEBUG_INTERNAL=yCONFIG_IPIPE_TRACE=yCONFIG_IPIPE_TRACE_ENABLE=yCONFIG_IPIPE_TRACE_MCOUNT=yCONFIG_IPIPE_TRACE_IRQSOFF=yCONFIG_IPIPE_TRACE_SHIFT=14CONFIG_IPIPE_TRACE_VMALLOC=yCONFIG_IPIPE_TRACE_PANIC=yCONFIG_DEBUG_KERNEL=yThe
/proc/ipipedirecotry is created.Quoted 8 lines
In my application I am using:
xntrace_max_begin(0); -> To start tracing.xntrace_max_end(0);
-> To stop tracing.The function trace that I get in the
/proc/ipipe/trace/maxfile does not have the xenomai calls that I am invoking e.g.rt_timer_read.The I-pipe tracer is a kernel-space tracer, so, you will only get the trace for the services which emit a system call. So, when calling
rt_timer_read, you should see__rt_timer_readin the trace.You can find all the documentation we have about the I-pipe tracer
here: http://www.xenomai.org/index.php/I-pipe:Tracer
Signature · 7 lines
___________________________________________________________________________ NOTICE OF CONFIDENTIALITY: This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this e-mail and any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. _____________________________________________________________________