Skip to content

Instantly share code, notes, and snippets.

@papertigers
Last active May 27, 2016 04:17
Show Gist options
  • Save papertigers/187d6946cecf34c5360689b5587d1cde to your computer and use it in GitHub Desktop.
Save papertigers/187d6946cecf34c5360689b5587d1cde to your computer and use it in GitHub Desktop.
dtrace on lx example
root@plex:~# uname -a
Linux plex 3.13.0 BrandZ virtual linux x86_64 x86_64 x86_64 GNU/Linux
root@plex:~# /native/usr/bin/uname -a
SunOS plex 5.11 joyent_20160524T122512Z i86pc i386 i86pc
root@plex:~# cat /etc/issue
Ubuntu 14.04.4 LTS \n \l
root@plex:~# /native/usr/sbin/dtrace -n 'lx-syscall:::entry {@[probefunc] = count()}' -c "ls"
dtrace: description 'lx-syscall:::entry ' matched 676 probes
HDHRViewerV2-beta-0.05.zip Music plex.deb src test upgrade-plex
dtrace: pid 63615 has exited
arch_prctl 1
exit_group 1
nanosleep 1
openat 1
uname 1
getdents 2
ioctl 2
statfs 2
write 2
munmap 3
select 3
brk 4
rt_sigprocmask 6
access 8
open 9
fstat 10
read 10
close 12
mprotect 14
mmap 23
root@plex:~# file `which ls`
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=8d0966ce81ec6609bbf4aa439c77138e2f48a471, stripped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment