linux/tools/perf/scripts/perl/bin/wakeup-latency-record

#!/bin/bash
perf record -e sched:sched_switch -e sched:sched_wakeup $@