mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 18:25:57 +01:00
Document that X11 mouse is not moving. Convert x='' to x= on all scripts, and also fix case ;; indentations. Add dummy value to QEMU's -trace enable= to prevent warning. Expand built-in package choice rationale.
20 lines
469 B
Bash
Executable File
20 lines
469 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
. common
|
|
set -- ${cli_trace2line:-} "$@"
|
|
arch=x86_64
|
|
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"
|