linux/linux-5.18.11/arch/riscv/kernel/vdso/gen_vdso_offsets.sh

6 lines
148 B
Bash
Raw Normal View History

2024-03-22 18:12:32 +00:00
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
LC_ALL=C
sed -n -e 's/^[0]\+\(0[0-9a-fA-F]*\) . \(__vdso_[a-zA-Z0-9_]*\)$/\#define \2_offset\t0x\1/p'