scripts: add `is_rust_module.sh`
authorDaniel Xu <dxu@dxuuu.xyz>
Thu, 4 Aug 2022 10:55:07 +0000 (12:55 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 28 Sep 2022 07:02:06 +0000 (09:02 +0200)
commite4b69cb9a99a567d1611f9cced92f475ae224cdb
treec897d5caa71194e33083a251e549f5cbb8b1e2af
parent78521f3399abce9bb9db16d848044be873e117ac
scripts: add `is_rust_module.sh`

This script is used to detect whether a kernel module is written
in Rust.

It will later be used to disable BTF generation on Rust modules as
BTF does not yet support Rust.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Co-developed-by: Alex Gaynor <alex.gaynor@gmail.com>
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Co-developed-by: Wedson Almeida Filho <wedsonaf@google.com>
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Co-developed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
scripts/is_rust_module.sh [new file with mode: 0755]