Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: Eugene.Ivanov@orc-group.com (Eugene Ivanov)
Subject: [lttng-dev] Runtime issue with mismatched arg name in TRACEPOINT_EVENT_INSTANCE and TRACEPOINT_EVENT_CLASS
Date: Thu, 4 Jun 2015 10:39:12 +0300	[thread overview]
Message-ID: <557000A0.2010206@orc-group.com> (raw)

Hi,

Recently I've used different names for the argument in
TRACEPOINT_EVENT_INSTANCE and TRACEPOINT_EVENT_CLASS. Everything
compiles, the probe is registered, but can't be activated.
__tracepoint_provider___probe.state is always 0 despite whatever is
shown in 'lttng list session_name'. In this case I would expect
compilation failure.

Probes example, note some_id and MISMATCHED_id:

TRACEPOINT_EVENT_CLASS(hello, myclass,
         TP_ARGS(const unsigned long *, some_id),
         TP_FIELDS(ctf_array(unsigned long, some_identifier, some_id, 2)))

TRACEPOINT_EVENT_INSTANCE(hello, myclass, probe_name, TP_ARGS(const
unsigned long *, MISMATCHED_id))


--
Eugene Ivanov


________________________________

This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system.



                 reply	other threads:[~2015-06-04  7:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=557000A0.2010206@orc-group.com \
    --to=eugene.ivanov@orc-group.com \
    /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