Files
linux-kernel-module-cheat/qemu-trace2txt
Ciro Santilli 1cb056a995 common: simplify set_common_vars, rename to common_setup
Don't pass all arguments explicitly, just use existing vars.

Prefix all common_setup inputs and outputs with common_ to avoid name conflicts.
2018-08-09 06:59:52 +01:00

17 lines
392 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
set -- ${cli_qemu_trace2txt:-} "$@"
while getopts a: OPT; do
case "$OPT" in
a)
common_arch="$OPTARG"
;;
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}"