Project

General

Profile

Bug #4249

Only probes from the first DTrace object file will be included

Added by Robert Mustacchi about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
DTrace
Start date:
2013-10-20
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

From the original Joyent bug report:

When trying to link together multiple object files generated by DTrace only the probes from the file listed first will be included in the resulting binary.

Attached is a simple project, in it if you link a.dtrace.o before b.dtrace.o aprobe will be included, and vice versa bprobe will be included.

One would expect both probes to be included.

I found this while trying to work around the fact that you can't have usdt probes in both an application and in a static library that application links against. (Only the application probes will persist)

#1

Updated by Robert Mustacchi about 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 90 to 100

Resolved in 54a20ab41aadcb81c53e72fc65886e964e9add59.

Also available in: Atom PDF