[lttng-dev] FW: Lttng tracepoint(provider,tpname, arg)

Farhan Shariff farhan.shariff at asml.com
Mon Sep 14 07:24:13 EDT 2015



From: Farhan Shariff
Sent: Monday, September 14, 2015 10:52 AM
To: 'lttng-dev at lists.lttng.org'
Subject: Lttng tracepoint(provider,tpname, arg)

 I want to insert tracepoint statements with same traceprovider_name and
  tracepoint_name but with different arguments:


 for example:

  hello-tp.tp

  TRACEPOINT_EVENT(
  provider_name_test,
  tp_name_tp,
  TP_ARGS(
  int, my_integer_arg,
  char*, my_string_arg
  ),
  TP_FIELDS(
  ctf_string(my_string_field, my_string_arg)
  ctf_integer(int, my_integer_field, my_integer_arg)
  )
  )

  How to use these in the code:

  tracepoint(provider_name_test, tp_name_tp,23 )

  tracepoint(provider_name_test, tp_name_tp,"hi there" )

  tracepoint(provider_name_test, tp_name_tp,23, "hi there" )







Best regards / Met vriendelijke groet / Cordialement,

Farhan Shariff
EUV Source Software Facilites
Development & Engineering
ASML Netherlands B.V. | De Run 6501 | 5504 DR Veldhoven | The Netherlands
Location: 7G2 | Tel: +31 619084549
farhan.shariff at asml.com<farhan.shariff at asml.com%20> | www.asml.com<http://www.asml.com/>

-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. The sender nor the company/group of companies he or she represents shall be liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150914/a9babc69/attachment-0001.html>


More information about the lttng-dev mailing list