Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: compudj@krystal.dyndns.org (Mathieu Desnoyers)
Subject: [ltt-dev] the problem of register the probe function for	irq_enty
Date: Thu, 5 Mar 2009 13:45:08 -0500	[thread overview]
Message-ID: <20090305184508.GA6605@Krystal> (raw)
In-Reply-To: <abc09c160903050844u228ad1b6h7511db8d9b961fb8@mail.gmail.com>

* long xu (long.x.xu at gmail.com) wrote:
> Hello,
> 
> i'm reading the code of lttng now, i kown the programe use
> ---------------------------------------------
> DEFINE_MARKER_TP(kernel, irq_entry, irq_entry, probe_irq_entry, "ip %lu
> irq_id #2u%u kernel_mode #1u%u");----------------------------------------
> to give the pointer of tracepoint probe function to the marker. But i have
> not found how does it connect the  probe_irq_entry to the tracepoint. i
> don't find where it use the function register_trace_irq_entry to register
> the probe function.
> 

See kernel/marker.c :

set_marker()

call to tracepoint_probe_register_noupdate(). Basically, it's the marker
infrastructure which is responsible for iterating on the marker section
of core kernel and module to connect them to tracepoints.

Mathieu

> Thanks,
> 
> Best regard
> 
> XU Long

> _______________________________________________
> 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



      parent reply	other threads:[~2009-03-05 18:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-05 16:44 long xu
2009-03-05 16:44 ` long xu
2009-03-05 16:44 ` long xu
2009-03-05 18:45 ` Mathieu Desnoyers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090305184508.GA6605@Krystal \
    --to=compudj@krystal.dyndns.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox