Skip to content

Instantly share code, notes, and snippets.

@etscrivner
Created February 1, 2013 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etscrivner/4694677 to your computer and use it in GitHub Desktop.
Save etscrivner/4694677 to your computer and use it in GitHub Desktop.
vagrant@precise64:/vagrant$ ltrace ls
__libc_start_main(0x402690, 1, 0x7fffb5a71f28, 0x411700, 0x411790 <unfinished ...>
strrchr("ls", '/') = NULL
setlocale(6, "") = "en_US"
bindtextdomain("coreutils", "/usr/share/locale") = "/usr/share/locale"
textdomain("coreutils") = "coreutils"
__cxa_atexit(0x409fb0, 0, 0, 0x736c6974756572, 3) = 0
isatty(1) = 1
getenv("QUOTING_STYLE") = NULL
getenv("LS_BLOCK_SIZE") = NULL
getenv("BLOCK_SIZE") = NULL
getenv("BLOCKSIZE") = NULL
getenv("POSIXLY_CORRECT") = NULL
getenv("BLOCK_SIZE") = NULL
getenv("COLUMNS") = NULL
ioctl(1, 21523, 0x7fffb5a71b40) = 0
getenv("TABSIZE") = NULL
getopt_long(1, 0x7fffb5a71f28, "abcdfghiklmnopqrstuvw:xABCDFGHI:"..., 0x00412a80, -1) = -1
__errno_location() = 0x7fd7ce5b56b0
malloc(56) = 0x01ec7040
memcpy(0x01ec7040, "", 56) = 0x01ec7040
__errno_location() = 0x7fd7ce5b56b0
malloc(56) = 0x01ec7080
memcpy(0x01ec7080, "", 56) = 0x01ec7080
malloc(19200) = 0x01ec70c0
malloc(32) = 0x01ecbbd0
strlen(".") = 1
malloc(2) = 0x01ecbc00
memcpy(0x01ecbc00, ".", 2) = 0x01ecbc00
__errno_location() = 0x7fd7ce5b56b0
opendir(".") = 0x01ecbc20
readdir(0x01ecbc20) = 0x01ecbc48
readdir(0x01ecbc20) = 0x01ecbc60
readdir(0x01ecbc20) = 0x01ecbc78
readdir(0x01ecbc20) = 0x01ecbc90
readdir(0x01ecbc20) = 0x01ecbcb0
readdir(0x01ecbc20) = 0x01ecbcd0
readdir(0x01ecbc20) = 0x01ecbcf0
readdir(0x01ecbc20) = 0x01ecbd10
readdir(0x01ecbc20) = 0x01ecbd38
readdir(0x01ecbc20) = 0x01ecbd58
readdir(0x01ecbc20) = 0x01ecbd78
strlen("bin") = 3
malloc(4) = 0x01ed3c50
memcpy(0x01ed3c50, "bin", 4) = 0x01ed3c50
readdir(0x01ecbc20) = 0x01ecbd90
strlen("build-tags.sh") = 13
malloc(14) = 0x01ed3c70
memcpy(0x01ed3c70, "build-tags.sh", 14) = 0x01ed3c70
readdir(0x01ecbc20) = 0x01ecbdb8
strlen("config") = 6
malloc(7) = 0x01ed3c90
memcpy(0x01ed3c90, "config", 7) = 0x01ed3c90
readdir(0x01ecbc20) = 0x01ecbdd8
strlen("docs") = 4
malloc(5) = 0x01ed3cb0
memcpy(0x01ed3cb0, "docs", 5) = 0x01ed3cb0
readdir(0x01ecbc20) = 0x01ecbdf0
strlen("fixtures.txt") = 12
malloc(13) = 0x01ed3cd0
memcpy(0x01ed3cd0, "fixtures.txt", 13) = 0x01ed3cd0
readdir(0x01ecbc20) = 0x01ecbe10
strlen("ge") = 2
malloc(3) = 0x01ed3cf0
memcpy(0x01ed3cf0, "ge", 3) = 0x01ed3cf0
readdir(0x01ecbc20) = 0x01ecbe28
strlen("grapheffect.ini") = 15
malloc(16) = 0x01ed3d10
memcpy(0x01ed3d10, "grapheffect.ini", 16) = 0x01ed3d10
readdir(0x01ecbc20) = 0x01ecbe50
strlen("grapheffect.py") = 14
malloc(15) = 0x01ed3d30
memcpy(0x01ed3d30, "grapheffect.py", 15) = 0x01ed3d30
readdir(0x01ecbc20) = 0x01ecbe78
strlen("grapheffect.pyc") = 15
malloc(16) = 0x01ed3d50
memcpy(0x01ed3d50, "grapheffect.pyc", 16) = 0x01ed3d50
readdir(0x01ecbc20) = 0x01ecbea0
strlen("Makefile") = 8
malloc(9) = 0x01ed3d70
memcpy(0x01ed3d70, "Makefile", 9) = 0x01ed3d70
readdir(0x01ecbc20) = 0x01ecbec0
strlen("manifests") = 9
malloc(10) = 0x01ed3d90
memcpy(0x01ed3d90, "manifests", 10) = 0x01ed3d90
readdir(0x01ecbc20) = 0x01ecbee0
strlen("modules") = 7
malloc(8) = 0x01ed3db0
memcpy(0x01ed3db0, "modules", 8) = 0x01ed3db0
readdir(0x01ecbc20) = 0x01ecbf00
strlen("out") = 3
malloc(4) = 0x01ed3dd0
memcpy(0x01ed3dd0, "out", 4) = 0x01ed3dd0
readdir(0x01ecbc20) = 0x01ecbf18
strlen("README.md") = 9
malloc(10) = 0x01ed3df0
memcpy(0x01ed3df0, "README.md", 10) = 0x01ed3df0
readdir(0x01ecbc20) = 0x01ecbf38
strlen("requirements-dev.txt") = 20
malloc(21) = 0x01ed3e10
memcpy(0x01ed3e10, "requirements-dev.txt", 21) = 0x01ed3e10
readdir(0x01ecbc20) = 0x01ecbf60
strlen("requirements.txt") = 16
malloc(17) = 0x01ed3e30
memcpy(0x01ed3e30, "requirements.txt", 17) = 0x01ed3e30
readdir(0x01ecbc20) = 0x01ecbf88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment