- What can be traced?
- How can trace events be specified?
- "match specifications": twisty passages, all alike
- WTF, can I just use DTrace and drink my coffee/beer/whisky in peace?
- Trace delivery mechanisms: pick one of two
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mkdir -p /opt/bin | |
| curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose | |
| chmod +x /opt/bin/docker-compose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::rc::Rc; | |
| trait HKT<U> { | |
| type C; // Current type | |
| type T; // Type with C swapped with U | |
| } | |
| macro_rules! derive_hkt { | |
| ($t:ident) => { | |
| impl<T, U> HKT<U> for $t<T> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/erlang_learning $ erl | |
| Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false] [dtrace] | |
| Eshell V5.9.3.1 (abort with ^G) | |
| ([email protected])1> trace(recursive). | |
| ok | |
| ([email protected])2> recursive:fac(10). | |
| call: <0.42.0> recursive:fac(10), level: 0 | |
| call: <0.42.0> recursive:fac(9), level: 1 | |
| call: <0.42.0> recursive:fac(8), level: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vmadm halt <uuid> | |
| # zonecfg -z <uuid> | |
| zonecfg:uuid> add dataset | |
| zonecfg:uuid:dataset> set name=<zfs/path> | |
| zonecfg:uuid:dataset> end | |
| zonecfg:uuid> commit | |
| zonecfg:uuid> exit | |
| # zfs set mountpoint=legacy <zfs/path> | |
| # vmadm boot <uuid> |
- 対象: R15B03-1, R16B, R16B02
- 参考にした情報: http://23min.com/2013/01/erlang-observer-debugger-on-mountain-lion/
- ここの情報だけだとビルドできなかった分を補足しています
- Mountain Lion (OS X 10.8.x 使ったのは 10.8.3 / 10.8.5)
- Xquartz http://xquartz.macosforge.org/landing/ からダウンロードしてインストール
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -o xtrace | |
| . /lib/svc/share/smf_include.sh | |
| cd / | |
| PATH=/usr/sbin:/usr/bin:/opt/custom/bin:/opt/custom/sbin; export PATH | |
| case "$1" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TARGET1 = alpha-elf arc-elf arm-elf avr-elf h8300-elf i386-elf m32r-elf \ | |
| m68k-elf pdp11-aout powerpc-elf sh-elf sparc-elf v850-elf xtensa-elf | |
| TARGET2 = mips-elf mips64-elf | |
| TARGET3 = hppa-linux ia64-elf x86_64-linux | |
| TARGET4 = m6811-elf | |
| TARGET5 = strongarm-elf xscale-elf | |
| TARGETS = $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4) $(TARGET5) | |
| BLDROOT = /build | |
| GMAKE = make | |
| GTAR = tar |
NewerOlder