linux-zen-server/arch/riscv/kernel/compat_vdso/gen_compat_vdso_offsets.sh

6 lines
154 B
Bash
Raw Normal View History

2023-08-30 17:53:23 +02: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 compat\2_offset\t0x\1/p'