Project

General

Profile

Actions

Bug #11553

closed

Disable by default the DTrace support on Linux systems.

Bug #11553: Disable by default the DTrace support on Linux systems.

Added by clopez (Carlos Alberto Lopez Perez) about 10 years ago. Updated about 10 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-09-26 trunk 51943) [x86_64-linux]
[ruby-core:<unknown>]

Description

The issue is the following:

So, I propose to (by default) disable dtrace support on Linux systems.

Otherwise users that try to build Ruby on a Linux system with dtrace4Linux installed (me for example), will end with a broken build.

Linux users willing to try this feature, can still pass the --enable-dtrace flag to enable it.

Patch attached.


Files

Disable-by-default-the-dtrace-support-on-Linux-syste.patch (1.5 KB) Disable-by-default-the-dtrace-support-on-Linux-syste.patch Patch that disables by default DTrace support on Linux systems. clopez (Carlos Alberto Lopez Perez), 09/26/2015 04:17 PM

Updated by vo.x (Vit Ondruch) about 10 years ago Actions #1

There is SystemTap which works just fine. And if you don't have installed /usr/bin/dtrace, then it will be disabled anyway. So to say, I am against disabling.

Updated by shevegen (Robert A. Heiler) about 10 years ago Actions #2

I assume that users will have to use --disable-dtrace to be on the safe side.

It is always a problem with binary yes/no enabling options since there is no middle ground in such a situation.

Ruby in general tries to enable whatever is available on the host system, if it can be found. I am not sure for
which programs this would not be the case but I assume that e. g. just about all the entries in ext/ subdirectory
work like that.

Updated by kosaki (Motohiro KOSAKI) about 10 years ago Actions #3

If some distro doesn't support SystemTap and does support dtrace4linux officially, I'm ok to disable dtrace feature only on such distros. In the other hands, I have no seen any sense to disable it on Fedora/RHEL/CentOS.

I'm not sure Ubuntu's policy, though.

Updated by nobu (Nobuyoshi Nakada) about 10 years ago Actions #4

Then disable it if only dtrace4Linux is available?
How can we know SystemTap from dtrace4Linux?

Updated by kosaki (Motohiro KOSAKI) about 10 years ago Actions #5

Then disable it if only dtrace4Linux is available?

I still doubt no such distribution, though.

Updated by clopez (Carlos Alberto Lopez Perez) about 10 years ago Actions #6

Ok...

I didn't knew systemtap provided a dtrace binary, neither that it can use the DTrace probes just fine. I just tested it and it worked. Very interesting stuff.

So, I agree that is best keep the default as currently is.

I think dtrace4linux is not shipped with any distro by default. I (Debian user) had to build and install from sources myself.

I think we can close this bug as wontfix/invalid. I would do it myself, but it seems I don't have the required permissions to change the bug status.

Updated by vo.x (Vit Ondruch) about 10 years ago Actions #7

  • Status changed from Open to Rejected
Actions

Also available in: PDF Atom