- Vue.js を一通り動かしてみましょう!
- たくさん疑問が出ると思いますが、メモをして一旦置いておいて、ともかく完走してみましょう!
- メモはまとめてSlack、日報でご質問ください!
- (フロントエンドは比較的経験が浅く、答えるのに時間がかかることもあります...)
- 基本は Vuejs 公式ガイド の通りに実施します
- 少しわかりづらいかも?という箇所をここで補足します
- もちろん、ここで出てきた有益そうな内容は本家にcontributeします
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 | |
trepo() { | |
local TP="$1" | |
cat /sys/kernel/debug/tracing/events/$TP/format; | |
} | |
_trepo_compl() { | |
local args | |
args=$( cd /sys/kernel/debug/tracing/events ; find */* -type d ) |
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
# -*- mode: ruby -*- | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/disco64" | |
config.vm.boot_timeout = 900 | |
config.vm.provider "virtualbox" do |vbox| | |
vbox.cpus = 4 | |
vbox.memory = 4096 | |
end | |
config.vm.provision "shell", inline: <<-SHELL |
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
default: libupdateptr.so updateptr.o | |
updateptr.o: updateptr.c | |
gcc -fPIC -c ./updateptr.c -o updateptr.o | |
libupdateptr.so: updateptr.o | |
gcc -shared updateptr.o -o libupdateptr.so |
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
uprobe:/usr/sbin/nginx:ngx_http_read_request_header /!@start[arg1]/ | |
{ | |
printf("[%ld] Passed: %s (%p)\n", tid, probe, arg1); | |
@start[arg1] = nsecs | |
} | |
uprobe:/usr/sbin/nginx:ngx_http_finalize_connection /@start[arg1]/ | |
{ | |
@reqtime = hist(nsecs - @start[arg1]); | |
delete(@start[arg1]); | |
} |
問Y-1
クラス(モジュール)にはancestorsという、そのクラスの親を一覧するメソッドがあります。以下のインスタンスについて、その所属するクラスのancestorsを表示してください。
・String 例: "aaa"
・Array 例: [1, 2, 3]
・自作のクラス
また、これらに共通するクラス/モジュールを表示してください
関数のやりとりの流れ
- bcc_usdt_new_frompid でvoid* USDTをつくる
- bcc_usdt_enable_probe で有効にする
- bpf_module_create_c_from_stringするときに
- bcc_usdt_genargs で生成したテキストを先頭に追加する
- bcc_func_load する
- https://github.com/iovisor/bcc/blob/c36f5bf297e36e96fa5ce6899d9ba579ef782501/src/python/bcc/__init__.py#L370-L375
- bpf_attach_uprobe() に必要な int progfd がこれで取れる
- bcc_usdt_foreach_uprobe(void *usdt, bcc_usdt_uprobe_cb callback) のループでuprobeを取り出す
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
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
... | |
root 9573 0.3 0.5 1242928 83380 ? Ssl 19:25 0:01 /usr/bin/dockerd -D -s devicemapper --add-runtime kata-runtime=/usr/bin/kata-runtime --add-runtime kata-fc=/op | |
root 9595 0.4 0.2 1237676 37156 ? Ssl 19:25 0:02 \_ docker-containerd --config /var/run/docker/containerd/containerd.toml | |
root 11369 0.0 0.0 7756 4120 ? Sl 19:29 0:00 \_ docker-containerd-shim -namespace moby -workdir /var/lib/docker/containerd/daemon/io.containerd.runtim | |
root 11395 0.0 0.0 4188 516 ? Ss 19:29 0:00 | \_ sleep 300 | |
root 11540 0.0 0.0 7564 4264 ? Sl 19:30 0:00 \_ docker-containerd-shim -namespace moby -workdir /var/lib/docker/containerd/daemon/io.containerd.runtim | |
root 11583 1.9 1.2 3260216 212396 ? Sl 19:30 0:03 | \_ /usr/bin/qemu-lite-system-x86_64 -name sandbox-4a39ae85a6246c7586a1ca751d30dbd31a655c37f50b14d1753 | |
root 11589 0 |
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
execve("/usr/bin/unshare", ["unshare", "--user", "--map-root-user", "id"], 0x7ffe7a97f748 /* 22 vars */) = 0 | |
brk(NULL) = 0x557c55fe8000 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=42264, ...}) = 0 | |
mmap(NULL, 42264, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb3a981d000 | |
close(3) = 0 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 |