Files
linux-kernel-module-cheat/qemu-trace2txt
Ciro Santilli 036225b268 run: use getopt
2018-08-23 08:54:47 +01:00

17 lines
444 B
Bash
Executable File

#!/usr/bin/env bash
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
parsed=$(getopt -o "${common_getopt_flags}" -l "$common_getopt_flags_long" -- "$@")
eval set -- "$parsed"
while true; do
case "$1" in
*)
common_getopt_case "$@"
;;
esac
done
common_setup
./qemu/scripts/simpletrace.py \
"${common_build_dir}/host-qemu-custom/trace-events-all" \
"${common_qemu_run_dir}/trace.bin" \
> "${common_trace_txt_file}"