linux/tools/perf/scripts/python/bin/powerpc-hcalls-record

#!/bin/bash
perf record -e "{powerpc:hcall_entry,powerpc:hcall_exit}" $@