#! /bin/sh # imply "kernel" for @cast() on older stap stap -p2 --compatible=4.1 -e ' probe process("/bin/sh").function("main") { f() } function f() { println(@cast(0, "task_struct")$) } '