Git Product home page Git Product logo

freebsd-kernel-dtrace-utilities's Introduction

FreeBSD Kernel DTrace Utilities

Print probe struct

if_input sample

dtrace -n 'fbt:kernel:if_input:entry {print(*args[0]);}'

proc.d

root@freebsd:~ # ./proc.d 689
dtrace: buffer size lowered to 1m
Begin:

pid: 689
ppid (parent pid): 688
opid (real parent pid): 688

ucred: 
        cr_ref (reference count): -339
        cr_users (proc + thread using this cred): 2
        cr_uid (effective user id): 1001
        cr_ruid (real user id): 1001
        cr_svuid (saved user id): 1001
        cr_ngroups (number of groups): 3
        cr_rgid (real group id): 1001
        cr_svgid (saved group id): 1001
        cr_flags (credential flags): 0

p_state (process state):1

cpuset: 
             0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
         0: 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
        10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................


session: 
        s_sid (process group session id): 689
        s_count (number of process group in session): 1
	s_leader (session leader): 689
        pg_id (process group id): 689

vmspace: 
vm_map: 
        nentries (number of vm_map_entries): 43
        timestamp (version number): 219

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.