Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] User Space tracing on ARM 2.6.23
@ 2009-08-04 13:22 Ajit R
  2009-08-04 13:37 ` Mathieu Desnoyers
  0 siblings, 1 reply; 2+ messages in thread
From: Ajit R @ 2009-08-04 13:22 UTC (permalink / raw)



Hi 
  My config is the following:
Architecture:     ARM11 MPCORE  Uniprocessor
Lttv version:     0.10.0-pre1
LTTng version:    0.10.0-pre5
LTT Control:      0.45
kernel version:   2.6.23.1

applied the userspace patches. Compilation errors in "ltt-syscall.c"

 ltt_reserve_slot(trace, channel, &transport_data, reserve_size, &slot_size, &tsc)

has to be:

ltt_reserve_slot(trace, channel, &transport_data, reserve_size, &slot_size, &tsc,cpu);

and

trace->ops->user_errors(trace, index, data_size, &dbg);
which has to be
trace->ops->user_errors(trace, index, data_size, &dbg,cpu);

Added this to get cpu after preempt_disable() -->

cpu = smp_processor_id();


I can see sys_ltt_trace and sys_register_markers in "/proc/kallsyms" after compilation.

From: ltt-syscall.c
/*
 * TODO: ONLY permit userspace markers to write in userspace channels.
 */
asmlinkage long sys_register_markers(const struct user_markers *begin,
        const struct user_markers *end)
{
}



Seems like register_markers does nothing with the system call.
Are there any examples on howto use the older userspace tracing anywhere: register_markers and ltt_trace ?

Thanks
Ajit


      




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ltt-dev] User Space tracing on ARM 2.6.23
  2009-08-04 13:22 [ltt-dev] User Space tracing on ARM 2.6.23 Ajit R
@ 2009-08-04 13:37 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2009-08-04 13:37 UTC (permalink / raw)


* Ajit R (ajitrzid at yahoo.com) wrote:
> 
> Hi 
>   My config is the following:
> Architecture:     ARM11 MPCORE  Uniprocessor
> Lttv version:     0.10.0-pre1
> LTTng version:    0.10.0-pre5
> LTT Control:      0.45
> kernel version:   2.6.23.1
> 
> applied the userspace patches. Compilation errors in "ltt-syscall.c"
> 
>  ltt_reserve_slot(trace, channel, &transport_data, reserve_size, &slot_size, &tsc)
> 
> has to be:
> 
> ltt_reserve_slot(trace, channel, &transport_data, reserve_size, &slot_size, &tsc,cpu);
> 
> and
> 
> trace->ops->user_errors(trace, index, data_size, &dbg);
> which has to be
> trace->ops->user_errors(trace, index, data_size, &dbg,cpu);
> 
> Added this to get cpu after preempt_disable() -->
> 
> cpu = smp_processor_id();
> 
> 
> I can see sys_ltt_trace and sys_register_markers in "/proc/kallsyms" after compilation.
> 
> From: ltt-syscall.c
> /*
>  * TODO: ONLY permit userspace markers to write in userspace channels.
>  */
> asmlinkage long sys_register_markers(const struct user_markers *begin,
>         const struct user_markers *end)
> {
> }
> 
> 
> 
> Seems like register_markers does nothing with the system call.
> Are there any examples on howto use the older userspace tracing anywhere: register_markers and ltt_trace ?
> 

Given you use old LTTng versions, you will have to dig into the versions
implemented in newer versions yourself.

Sorry, there is only a limited set of versions I can focus on.

Mathieu

> Thanks
> Ajit
> 
> 
>       
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-04 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-04 13:22 [ltt-dev] User Space tracing on ARM 2.6.23 Ajit R
2009-08-04 13:37 ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox