title: Why did the function fail?
name: whythefail.stp
keywords: speculation monitoring function trace _best
description: The whythefail.stp script prints a statement-execution trace for a given function, but only for those runs of the function that ended up with a (configurable) post-return condition.
test_check: stap -p4 whythefail.stp kernel sys_open '$return < 0'
test_installcheck: stap whythefail.stp kernel sys_open '$return < 0' -c 'cat /root/no-such-file || true'
