public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* stap --dyninst with C++ applications
@ 2020-11-10 20:19 Siva N
  2021-01-19 19:38 ` Stan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Siva N @ 2020-11-10 20:19 UTC (permalink / raw)
  To: systemtap

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-19 19:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 20:19 stap --dyninst with C++ applications Siva N
2021-01-19 19:38 ` Stan Cox

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).