Customizing your own probes with Dtrace in C ++

I have some custom dtrace probes in the C library, and when linking and using the library with the C application, my probes work fine, however, when they are connected with C ++, they say that they cannot find them. The reason, apparently, is that due to the merger of C ++, and the attempt to make it work, has become a duck chase.

Any ideas?

Note. Using gcc

+3
source share
2 answers

So far I have found these "useful" links

Using DTrace to profile and debug a C ++ program

Using the DTrace SDT Provider with C ++

but they did not solve my problems.

Subsequently, I found the following articles:

//

DTrace

Dtrace SDT-//pdf, ,

, dtrace -h .d

+1

extern "C" { ... } C?

+1

Source: https://habr.com/ru/post/1706436/


All Articles