Giter Site home page Giter Site logo

longv2go / dtrace Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 2.49 MB

可编译的 macOS DTrace

License: Other

DTrace 21.81% Shell 7.38% Perl 0.90% Roff 2.64% C 48.06% C++ 0.64% Yacc 0.33% Lex 0.34% Makefile 0.28% PostScript 15.96% Objective-C 0.03% M4 1.34% Perl 6 0.07% D 0.02% Assembly 0.14% DIGITAL Command Language 0.06%

dtrace's Introduction

DTrace

苹果官网的 DTrace 源码不能直接编译,需要引入一些内核的头文件,还要做一些修改,这个工程就是修改过后的,可以直接编译 dtrace 目标。

源代码地址: https://opensource.apple.com/source/dtrace

更改

include

添加 include 目录,主要用来存放一些缺少的头文件,这些缺少的头文件都是从 xnu 源码中搜索到的。

➜  include git:(master) ✗ tree .
.
├── CoreSymbolication
│   ├── CoreSymbolication.h
│   └── CoreSymbolicationPrivate.h
├── System
│   └── kern
│       └── cs_blobs.h
└── sys
    ├── codesign.h
    ├── csr.h
    ├── kas_info.h
    └── proc.h

其中 CoreSymbolication 来自 https://github.com/longv2go/CoreSymbolication

工程修改

修改 dtrace project 的 Build Settings -> Header Search Paths 为 $(SRCROOT)/include

源码修改

......

dtrace's People

Contributors

longv2go avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

alexhe

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.