* [ltt-dev] to find all the tracepoints by the __start___tracepoints and __stop___tracepoints
@ 2009-03-11 17:36 long xu
2009-03-11 17:36 ` long xu
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: long xu @ 2009-03-11 17:36 UTC (permalink / raw)
Hello,
I find when we use the fuction "tracepoint_update_probe_range", it usese the
"__start___tracepoints" and "__stop___tracepoints" to find all of the
tracepoints. But i don't find where it do the initialisation of the
"__start___tracepoints" and "__stop___tracepoints". How can they point the
first tracepoint and the last point?
Thanks,
Best Regard,
Long XU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20090311/9c7e8e35/attachment-0001.htm>
^ permalink raw reply [flat|nested] 5+ messages in thread* [ltt-dev] to find all the tracepoints by the __start___tracepoints and __stop___tracepoints
2009-03-11 17:36 [ltt-dev] to find all the tracepoints by the __start___tracepoints and __stop___tracepoints long xu
@ 2009-03-11 17:36 ` long xu
2009-03-11 17:36 ` long xu
2009-03-11 17:51 ` Pierre-Marc Fournier
2 siblings, 0 replies; 5+ messages in thread
From: long xu @ 2009-03-11 17:36 UTC (permalink / raw)
Hello,
I find when we use the fuction "tracepoint_update_probe_range", it usese the
"__start___tracepoints" and "__stop___tracepoints" to find all of the
tracepoints. But i don't find where it do the initialisation of the
"__start___tracepoints" and "__stop___tracepoints". How can they point the
first tracepoint and the last point?
Thanks,
Best Regard,
Long XU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20090311/9c7e8e35/attachment.htm>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ltt-dev] to find all the tracepoints by the __start___tracepoints and __stop___tracepoints
2009-03-11 17:36 [ltt-dev] to find all the tracepoints by the __start___tracepoints and __stop___tracepoints long xu
2009-03-11 17:36 ` long xu
@ 2009-03-11 17:36 ` long xu
2009-03-11 17:51 ` Pierre-Marc Fournier
2 siblings, 0 replies; 5+ messages in thread
From: long xu @ 2009-03-11 17:36 UTC (permalink / raw)
Hello,
I find when we use the fuction "tracepoint_update_probe_range", it usese the
"__start___tracepoints" and "__stop___tracepoints" to find all of the
tracepoints. But i don't find where it do the initialisation of the
"__start___tracepoints" and "__stop___tracepoints". How can they point the
first tracepoint and the last point?
Thanks,
Best Regard,
Long XU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20090311/9c7e8e35/attachment-0002.htm>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ltt-dev] to find all the tracepoints by the __start___tracepoints and __stop___tracepoints
2009-03-11 17:36 [ltt-dev] to find all the tracepoints by the __start___tracepoints and __stop___tracepoints long xu
2009-03-11 17:36 ` long xu
2009-03-11 17:36 ` long xu
@ 2009-03-11 17:51 ` Pierre-Marc Fournier
2009-03-11 18:15 ` Mathieu Desnoyers
2 siblings, 1 reply; 5+ messages in thread
From: Pierre-Marc Fournier @ 2009-03-11 17:51 UTC (permalink / raw)
Hello,
These symbols are automatically placed by the linker at the boundaries
of the __tracepoints section.
This magic is done in the linker script.
pmf
long xu wrote:
> Hello,
>
> I find when we use the fuction "tracepoint_update_probe_range", it usese
> the "__start___tracepoints" and "__stop___tracepoints" to find all of
> the tracepoints. But i don't find where it do the initialisation of the
> "__start___tracepoints" and "__stop___tracepoints". How can they point
> the first tracepoint and the last point?
>
> Thanks,
>
> Best Regard,
>
> Long XU
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ltt-dev] to find all the tracepoints by the __start___tracepoints and __stop___tracepoints
2009-03-11 17:51 ` Pierre-Marc Fournier
@ 2009-03-11 18:15 ` Mathieu Desnoyers
0 siblings, 0 replies; 5+ messages in thread
From: Mathieu Desnoyers @ 2009-03-11 18:15 UTC (permalink / raw)
And given we don't rely on such automagic linker features for the
kernel, include/asm-generic/vmlinux.lds.h specifies :
#define DATA_DATA
...
VMLINUX_SYMBOL(__start___tracepoints) = .; \
*(__tracepoints) \
VMLINUX_SYMBOL(__stop___tracepoints) = .; \
Therefore, as Pierre-Marc says, the linker is responsible for
initialising those symbols.
Mathieu
* Pierre-Marc Fournier (pierre-marc.fournier at polymtl.ca) wrote:
> Hello,
>
> These symbols are automatically placed by the linker at the boundaries
> of the __tracepoints section.
>
> This magic is done in the linker script.
>
> pmf
>
> long xu wrote:
> > Hello,
> >
> > I find when we use the fuction "tracepoint_update_probe_range", it usese
> > the "__start___tracepoints" and "__stop___tracepoints" to find all of
> > the tracepoints. But i don't find where it do the initialisation of the
> > "__start___tracepoints" and "__stop___tracepoints". How can they point
> > the first tracepoint and the last point?
> >
> > Thanks,
> >
> > Best Regard,
> >
> > Long XU
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
>
> _______________________________________________
> 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] 5+ messages in thread
end of thread, other threads:[~2009-03-11 18:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-11 17:36 [ltt-dev] to find all the tracepoints by the __start___tracepoints and __stop___tracepoints long xu
2009-03-11 17:36 ` long xu
2009-03-11 17:36 ` long xu
2009-03-11 17:51 ` Pierre-Marc Fournier
2009-03-11 18:15 ` Mathieu Desnoyers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox