Good Good Study, Day Day Up!

willmafh

Linux tracing techs

kprobes brief history Linux v2.6.9 introduced kprobes into its mainline, but only for i386 v2.6.10 begins to add kprobes support for x86_64 Linux v2.6.12 allows multiple kprobes at the same address v2.6.13 starts to support kretprobe v2.6.14 groups kprobes related functions to section .kprobes.text, so…

Continue reading...
willmafh

git recipes

to fully sync commit logs from an upstream repo to your forked repo # add upstream remote if not ready git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPO.git # verify remote, there are origin and remote git remote -v # fetch all updates from both remotes git fetch…

Continue reading...
willmafh

Effective Lua

NOTE: This is not a Lua tutorial or reference, just a place to record something interesting when I read Lua source code, which is version 5.4.3 -- both of cases are correct lua -e'print("hello world") lua -e 'print("hello world")' command prompt command prompt default values…

Continue reading...