Coder Social home page Coder Social logo

charlmert / dtrace Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.83 MB

dtrace for mac os catalina 10.15.3

License: Other

DTrace 20.52% Shell 9.42% Perl 0.83% Roff 2.26% C 50.24% C++ 0.61% Yacc 0.29% Lex 0.30% Makefile 0.09% PostScript 13.68% Objective-C 0.02% M4 1.15% Python 0.48% D 0.02% Assembly 0.08%

dtrace's Introduction

Install dtrace from source on Mac OS Catalina 10.15.3

Make sure you have the xcode command line tools installed (im 90% sure this is needed, was busy trying to build the mac kernel).

xcode-select --install

dtrace-tools

Best way is to try macports. install macports https://www.macports.org/install.php

Then run:

sudo port install dtrace

I tried macports and it was broken for catalina, got it working off git though. I had to download some header files though:

  • link.h
  • msg.h
  • dwarf.h
  • elf.h
  • gelf.h
  • libdwarf.h
  • libelf.h

I just added these to the include directory.

I also changed the include from the std library (<file.h>) to search the /usr/local/include path by replacing all e.g. <link.h> with "link.h", this repo reflects this.

Copy those files to /usr/local/include/

cp -frv include/*.h /usr/local/include/
git clone https://github.com/opensource-apple/dtrace.git
mkdir -p obj sym dst
xcodebuild install -target ctfconvert -target ctfdump -target ctfmerge \
ARCHS="x86_64" SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym \
DSTROOT=$PWD/dust

Once build succeeded you will get the following message:

INSTALL SUCCEEDED ...

You will then need to copy the binaries to /usr/local/bin

cp -frv dust/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin/* /usr/local/bin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.