[PATCH 0 of 3] Add support for dtrace compatible sdt probes on GNU/Linux

Mark Wielaard mjw at redhat.com
Tue May 22 05:55:38 PDT 2012


On Tue, 2012-05-22 at 22:25 +1000, David Holmes wrote:
> Do you know what the effect of this is on the static size of libjvm.so?

On my system the .note.stapsdt section is d29c bytes. So ~50K. That is
for 522 probes (yes, hotspot does define that many) expanded to 547
unique locations.

> I think we would need a way to disable this even if sys/sdt.h is present 
> - just as dtrace support can be disabled.

Just don't install /usr/include/sys/sdt.h on the build system. Or define
ALT_SDT_H to something like /no/sdt.h and it will be disabled. See the
last patch for make/linux/makefiles/dtrace.make and vm.make. I took the
same approach as was used in make/solaris.

Cheers,

Mark


More information about the serviceability-dev mailing list