From: Siva N <harnan@outlook.com>
To: "systemtap@sourceware.org" <systemtap@sourceware.org>
Subject: stap --dyninst with C++ applications
Date: Tue, 10 Nov 2020 20:19:21 +0000 [thread overview]
Message-ID: <CS1PR8401MB0903E324E417D28ED3108F22C6E90@CS1PR8401MB0903.NAMPRD84.PROD.OUTLOOK.COM> (raw)
Hi,
I am curious to understand how C++ object arguments are handled with USDT.
I have a C++ application. I have added probe points using the DTRACE_PROBE[n] macro. If I pass a reference/pointer to a C++ object as one of the arguments, I wonder how one accesses this inside the probe handler. I could treat the argument(s) as a void pointer, and if I managed create the actual C++ object layout, I guess I could access the data. But I was wondering if there were any other suggestions or examples.
Thanks!
next reply other threads:[~2020-11-10 20:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-10 20:19 Siva N [this message]
2021-01-19 19:38 ` Stan Cox
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=CS1PR8401MB0903E324E417D28ED3108F22C6E90@CS1PR8401MB0903.NAMPRD84.PROD.OUTLOOK.COM \
--to=harnan@outlook.com \
--cc=systemtap@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).