mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
gem5 cache automate benchmarks, and remove results that were scattered all over. Move console fun under linux kernel section, since not important enough for getting started. Set arch x86_64 by default through common on all scripts.
19 lines
457 B
Bash
Executable File
19 lines
457 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
. common
|
|
set -- ${cli_trace2line:-} "$@"
|
|
while getopts a: OPT; do
|
|
case "$OPT" in
|
|
a)
|
|
arch="$OPTARG"
|
|
;;
|
|
esac
|
|
done
|
|
set_common_vars "$arch" false
|
|
kernel_dir="${build_dir}/linux-custom"
|
|
sed -E 's/.*pc=//' "${qemu_out_dir}/trace.txt" | \
|
|
xargs "${host_dir}/bin/${arch}-linux-addr2line" -e "${kernel_dir}/vmlinux" -fp | \
|
|
sed -E "s|at ${kernel_dir}/(\./\|)||" | \
|
|
uniq -c \
|
|
> "${qemu_out_dir}/trace-lines.txt"
|