Linux内核scripts脚本-1-所有脚本列表

基于 kernel-6.1

一、所有脚本

android/kernel_platform/kernel/scripts$ tree
.
├── adjust_autoksyms.sh
├── asn1_compiler.c
├── as-version.sh
├── atomic
│   ├── atomics.tbl
│   ├── atomic-tbl.sh
│   ├── fallbacks
│   │   ├── acquire
│   │   ├── add_negative
│   │   ├── add_unless
│   │   ├── andnot
│   │   ├── dec
│   │   ├── dec_and_test
│   │   ├── dec_if_positive
│   │   ├── dec_unless_positive
│   │   ├── fence
│   │   ├── fetch_add_unless
│   │   ├── inc
│   │   ├── inc_and_test
│   │   ├── inc_not_zero
│   │   ├── inc_unless_negative
│   │   ├── read_acquire
│   │   ├── release
│   │   ├── set_release
│   │   ├── sub_and_test
│   │   └── try_cmpxchg
│   ├── gen-atomic-fallback.sh
│   ├── gen-atomic-instrumented.sh
│   ├── gen-atomic-long.sh
│   └── gen-atomics.sh
├── basic
│   ├── fixdep.c
│   └── Makefile
├── bin2c.c
├── bloat-o-meter
├── bootgraph.pl
├── bpf_doc.py
├── cc-can-link.sh
├── cc-version.sh
├── checkdeclares.pl
├── check_extable.sh
├── checkincludes.pl
├── checkkconfigsymbols.py
├── check-local-export
├── checkpatch.pl
├── checkstack.pl
├── checksyscalls.sh
├── check-sysctl-docs
├── check-uapi.sh
├── checkversion.pl
├── clang-tools
│   ├── gen_compile_commands.py
│   └── run-clang-tools.py
├── cleanfile
├── cleanpatch
├── coccicheck
├── coccinelle
│   ├── api
│   │   ├── alloc
│   │   │   ├── alloc_cast.cocci
│   │   │   ├── pool_zalloc-simple.cocci
│   │   │   └── zalloc-simple.cocci
│   │   ├── atomic_as_refcounter.cocci
│   │   ├── check_bq27xxx_data.cocci
│   │   ├── debugfs
│   │   │   └── debugfs_simple_attr.cocci
│   │   ├── device_attr_show.cocci
│   │   ├── d_find_alias.cocci
│   │   ├── err_cast.cocci
│   │   ├── kfree_mismatch.cocci
│   │   ├── kfree_sensitive.cocci
│   │   ├── kstrdup.cocci
│   │   ├── kvmalloc.cocci
│   │   ├── memdup.cocci
│   │   ├── memdup_user.cocci
│   │   ├── platform_get_irq.cocci
│   │   ├── platform_no_drv_owner.cocci
│   │   ├── pm_runtime.cocci
│   │   ├── resource_size.cocci
│   │   ├── simple_open.cocci
│   │   ├── stream_open.cocci
│   │   └── vma_pages.cocci
│   ├── free
│   │   ├── clk_put.cocci
│   │   ├── devm_free.cocci
│   │   ├── ifnulldev_put.cocci
│   │   ├── ifnullfree.cocci
│   │   ├── iounmap.cocci
│   │   ├── kfreeaddr.cocci
│   │   ├── kfree.cocci
│   │   ├── pci_free_consistent.cocci
│   │   └── put_device.cocci
│   ├── iterators
│   │   ├── device_node_continue.cocci
│   │   ├── for_each_child.cocci
│   │   ├── itnull.cocci
│   │   ├── list_entry_update.cocci
│   │   └── use_after_iter.cocci
│   ├── locks
│   │   ├── call_kern.cocci
│   │   ├── double_lock.cocci
│   │   ├── flags.cocci
│   │   └── mini_lock.cocci
│   ├── misc
│   │   ├── add_namespace.cocci
│   │   ├── array_size.cocci
│   │   ├── array_size_dup.cocci
│   │   ├── badty.cocci
│   │   ├── boolconv.cocci
│   │   ├── cond_no_effect.cocci
│   │   ├── cstptr.cocci
│   │   ├── do_div.cocci
│   │   ├── doubleinit.cocci
│   │   ├── excluded_middle.cocci
│   │   ├── flexible_array.cocci
│   │   ├── ifcol.cocci
│   │   ├── irqf_oneshot.cocci
│   │   ├── minmax.cocci
│   │   ├── newline_in_nl_msg.cocci
│   │   ├── noderef.cocci
│   │   ├── of_table.cocci
│   │   ├── orplus.cocci
│   │   ├── returnvar.cocci
│   │   ├── semicolon.cocci
│   │   ├── swap.cocci
│   │   ├── test_addr.cocci
│   │   ├── uninitialized_var.cocci
│   │   └── warn.cocci
│   ├── null
│   │   ├── badzero.cocci
│   │   ├── deref_null.cocci
│   │   ├── eno.cocci
│   │   └── kmerr.cocci
│   └── tests
│       ├── doublebitand.cocci
│       ├── doubletest.cocci
│       ├── odd_ptr_err.cocci
│       └── unsigned_lesser_than_zero.cocci
├── config
├── const_structs.checkpatch
├── decodecode
├── decode_stacktrace.sh
├── depmod.sh
├── dev-needs.sh
├── diffconfig
├── documentation-file-ref-check
├── dtc
│   ├── checks.c
│   ├── data.c
│   ├── dtc.c
│   ├── dtc.h
│   ├── dtc-lexer.l
│   ├── dtc-parser.y
│   ├── dt-extract-compatibles
│   ├── dt_to_config
│   ├── dtx_diff
│   ├── fdtget.c
│   ├── fdtoverlay.c
│   ├── fdtput.c
│   ├── flattree.c
│   ├── fstree.c
│   ├── include-prefixes
│   │   ├── arc -> ../../../arch/arc/boot/dts
│   │   ├── arm -> ../../../arch/arm/boot/dts
│   │   ├── arm64 -> ../../../arch/arm64/boot/dts
│   │   ├── dt-bindings -> ../../../include/dt-bindings
│   │   ├── microblaze -> ../../../arch/microblaze/boot/dts
│   │   ├── mips -> ../../../arch/mips/boot/dts
│   │   ├── nios2 -> ../../../arch/nios2/boot/dts
│   │   ├── openrisc -> ../../../arch/openrisc/boot/dts
│   │   ├── powerpc -> ../../../arch/powerpc/boot/dts
│   │   ├── sh -> ../../../arch/sh/boot/dts
│   │   └── xtensa -> ../../../arch/xtensa/boot/dts
│   ├── libfdt
│   │   ├── fdt_addresses.c
│   │   ├── fdt.c
│   │   ├── fdt_empty_tree.c
│   │   ├── fdt.h
│   │   ├── fdt_overlay.c
│   │   ├── fdt_ro.c
│   │   ├── fdt_rw.c
│   │   ├── fdt_strerror.c
│   │   ├── fdt_sw.c
│   │   ├── fdt_wip.c
│   │   ├── libfdt_env.h
│   │   ├── libfdt.h
│   │   └── libfdt_internal.h
│   ├── livetree.c
│   ├── Makefile
│   ├── of_unittest_expect
│   ├── srcpos.c
│   ├── srcpos.h
│   ├── treesource.c
│   ├── update-dtc-source.sh
│   ├── util.c
│   ├── util.h
│   ├── version_gen.h
│   └── yamltree.c
├── dummy-tools
│   ├── dummy-plugin-dir
│   │   └── include
│   │       └── plugin-version.h
│   ├── gcc
│   ├── ld
│   ├── nm -> ld
│   ├── objcopy -> ld
│   └── pahole
├── export_report.pl
├── extract-ikconfig //可以从 vmlinux 文件中提取出 deconfig 配置
├── extract-module-sig.pl
├── extract-sys-certs.pl
├── extract-vmlinux
├── extract_xc3028.pl
├── faddr2line
├── file-size.sh
├── find-unused-docs.sh
├── gcc-plugins
│   ├── arm_ssp_per_task_plugin.c
│   ├── gcc-common.h
│   ├── gcc-generate-gimple-pass.h
│   ├── gcc-generate-ipa-pass.h
│   ├── gcc-generate-rtl-pass.h
│   ├── gcc-generate-simple_ipa-pass.h
│   ├── Kconfig
│   ├── latent_entropy_plugin.c
│   ├── Makefile
│   ├── randomize_layout_plugin.c
│   ├── sancov_plugin.c
│   ├── stackleak_plugin.c
│   └── structleak_plugin.c
├── gcc-x86_32-has-stack-protector.sh
├── gcc-x86_64-has-stack-protector.sh
├── gdb
│   ├── linux
│   │   ├── clk.py
│   │   ├── config.py
│   │   ├── constants.py.in
│   │   ├── cpus.py
│   │   ├── device.py
│   │   ├── dmesg.py
│   │   ├── genpd.py
│   │   ├── __init__.py
│   │   ├── lists.py
│   │   ├── Makefile
│   │   ├── modules.py
│   │   ├── proc.py
│   │   ├── rbtree.py
│   │   ├── symbols.py
│   │   ├── tasks.py
│   │   ├── timerlist.py
│   │   └── utils.py
│   ├── Makefile
│   └── vmlinux-gdb.py
├── gen_autoksyms.sh
├── generate_initcall_order.pl
├── generate_rust_analyzer.py
├── generate_rust_target.rs
├── gen_gki_modules_headers.sh
├── gen_ksymdeps.sh
├── genksyms
│   ├── genksyms.c
│   ├── genksyms.h
│   ├── keywords.c
│   ├── lex.l
│   ├── Makefile
│   └── parse.y
├── gen-randstruct-seed.sh
├── get_abi.pl
├── get_dvb_firmware
├── get_feat.pl
├── get_maintainer.pl
├── gfp-translate
├── headerdep.pl
├── headers_install.sh
├── head-object-list.txt
├── insert-sys-cert.c
├── install.sh
├── jobserver-exec
├── kallsyms.c
├── Kbuild.include
├── kconfig
│   ├── conf.c
│   ├── confdata.c
│   ├── expr.c
│   ├── expr.h
│   ├── gconf.c
│   ├── gconf-cfg.sh
│   ├── gconf.glade
│   ├── images.c
│   ├── images.h
│   ├── internal.h
│   ├── lexer.l
│   ├── list.h
│   ├── lkc.h
│   ├── lkc_proto.h
│   ├── lxdialog
│   │   ├── BIG.FAT.WARNING
│   │   ├── checklist.c
│   │   ├── dialog.h
│   │   ├── inputbox.c
│   │   ├── menubox.c
│   │   ├── textbox.c
│   │   ├── util.c
│   │   └── yesno.c
│   ├── Makefile
│   ├── mconf.c
│   ├── mconf-cfg.sh
│   ├── menu.c
│   ├── merge_config.sh
│   ├── nconf.c
│   ├── nconf-cfg.sh
│   ├── nconf.gui.c
│   ├── nconf.h
│   ├── parser.y
│   ├── preprocess.c
│   ├── qconf.cc
│   ├── qconf-cfg.sh
│   ├── qconf.h
│   ├── streamline_config.pl
│   ├── symbol.c
│   ├── tests
│   │   ├── auto_submenu
│   │   │   ├── expected_stdout
│   │   │   ├── __init__.py
│   │   │   └── Kconfig
│   │   ├── choice
│   │   │   ├── alldef_expected_config
│   │   │   ├── allmod_expected_config
│   │   │   ├── allno_expected_config
│   │   │   ├── allyes_expected_config
│   │   │   ├── __init__.py
│   │   │   ├── Kconfig
│   │   │   ├── oldask0_expected_stdout
│   │   │   ├── oldask1_config
│   │   │   └── oldask1_expected_stdout
│   │   ├── choice_value_with_m_dep
│   │   │   ├── config
│   │   │   ├── expected_config
│   │   │   ├── expected_stdout
│   │   │   ├── __init__.py
│   │   │   └── Kconfig
│   │   ├── conftest.py
│   │   ├── err_recursive_dep
│   │   │   ├── expected_stderr
│   │   │   ├── __init__.py
│   │   │   └── Kconfig
│   │   ├── err_recursive_inc
│   │   │   ├── expected_stderr
│   │   │   ├── __init__.py
│   │   │   ├── Kconfig
│   │   │   ├── Kconfig.inc1
│   │   │   ├── Kconfig.inc2
│   │   │   └── Kconfig.inc3
│   │   ├── inter_choice
│   │   │   ├── defconfig
│   │   │   ├── expected_config
│   │   │   ├── __init__.py
│   │   │   └── Kconfig
│   │   ├── new_choice_with_dep
│   │   │   ├── config
│   │   │   ├── expected_stdout
│   │   │   ├── __init__.py
│   │   │   └── Kconfig
│   │   ├── no_write_if_dep_unmet
│   │   │   ├── config
│   │   │   ├── expected_config
│   │   │   ├── __init__.py
│   │   │   └── Kconfig
│   │   ├── preprocess
│   │   │   ├── builtin_func
│   │   │   │   ├── expected_stderr
│   │   │   │   ├── expected_stdout
│   │   │   │   ├── __init__.py
│   │   │   │   └── Kconfig
│   │   │   ├── circular_expansion
│   │   │   │   ├── expected_stderr
│   │   │   │   ├── __init__.py
│   │   │   │   └── Kconfig
│   │   │   ├── escape
│   │   │   │   ├── expected_stderr
│   │   │   │   ├── __init__.py
│   │   │   │   └── Kconfig
│   │   │   └── variable
│   │   │       ├── expected_stderr
│   │   │       ├── __init__.py
│   │   │       └── Kconfig
│   │   └── pytest.ini
│   └── util.c
├── Kconfig.include
├── kernel-doc
├── ksymoops
│   └── README
├── ld-version.sh
├── leaking_addresses.pl
├── Lindent
├── link-vmlinux.sh
├── Makefile
├── Makefile.asm-generic
├── Makefile.build
├── Makefile.clang
├── Makefile.clean
├── Makefile.compiler
├── Makefile.debug
├── Makefile.dtbinst
├── Makefile.extrawarn
├── Makefile.gcc-plugins
├── Makefile.headersinst
├── Makefile.host
├── Makefile.kasan
├── Makefile.kcov
├── Makefile.kcsan
├── Makefile.kmsan
├── Makefile.lib
├── Makefile.modfinal
├── Makefile.modinst
├── Makefile.modpost
├── Makefile.package
├── Makefile.randstruct
├── Makefile.ubsan
├── Makefile.userprogs
├── Makefile.vmlinux
├── Makefile.vmlinux_o
├── makelst
├── markup_oops.pl
├── min-tool-version.sh
├── mkcompile_h
├── mksysmap
├── mkuboot.sh
├── mod
│   ├── devicetable-offsets.c
│   ├── empty.c
│   ├── file2alias.c
│   ├── list.h
│   ├── Makefile
│   ├── mk_elfconfig.c
│   ├── modpost.c
│   ├── modpost.h
│   └── sumversion.c
├── module.lds.S
├── modules-check.sh
├── nsdeps
├── objdiff
├── objdump-func
├── package
│   ├── builddeb
│   ├── buildtar
│   ├── mkdebian
│   ├── mkspec
│   └── snapcraft.template
├── pahole-flags.sh
├── pahole-version.sh
├── parse-maintainers.pl
├── patch-kernel
├── profile2linkerlist.pl
├── prune-kernel
├── recordmcount.c
├── recordmcount.h
├── recordmcount.pl
├── remove-stale-files
├── rust_is_available_bindgen_libclang.h
├── rust_is_available.sh
├── selinux
│   ├── genheaders
│   │   ├── genheaders.c
│   │   └── Makefile
│   ├── install_policy.sh
│   ├── Makefile
│   ├── mdp
│   │   ├── dbus_contexts
│   │   ├── Makefile
│   │   └── mdp.c
│   └── README
├── setlocalversion
├── show_delta
├── sign-file.c
├── sorttable.c
├── sorttable.h
├── spdxcheck.py
├── spdxcheck-test.sh
├── spdxexclude
├── spelling.txt
├── sphinx-pre-install
├── split-man.pl
├── stackdelta
├── stackusage
├── subarch.include
├── syscallhdr.sh
├── syscallnr.sh
├── syscalltbl.sh
├── tags.sh
├── test_fortify.sh
├── tmp
│   ├── extract-ikconfig_vmlinux.txt
│   └── vmlinux
├── tools-support-relr.sh
├── tracing
│   ├── draw_functrace.py
│   └── ftrace-bisect.sh
├── unifdef.c
├── ver_linux
├── xen-hypercalls.sh
└── xz_wrap.sh

 

二、其中的pl脚本

android/kernel_platform/kernel/scripts$ find ./ -name '*.sh'
./tools-support-relr.sh
./headers_install.sh
./xen-hypercalls.sh
./find-unused-docs.sh
./rust_is_available.sh
./syscalltbl.sh
./as-version.sh
./gcc-x86_64-has-stack-protector.sh
./spdxcheck-test.sh
./gen_ksymdeps.sh
./gen_gki_modules_headers.sh
./gen-randstruct-seed.sh
./min-tool-version.sh
./cc-version.sh
./link-vmlinux.sh
./syscallnr.sh
./tracing/ftrace-bisect.sh
./checksyscalls.sh
./tags.sh
./file-size.sh
./selinux/install_policy.sh
./xz_wrap.sh
./atomic/atomic-tbl.sh
./atomic/gen-atomic-fallback.sh
./atomic/gen-atomics.sh
./atomic/gen-atomic-long.sh
./atomic/gen-atomic-instrumented.sh
./test_fortify.sh
./dtc/update-dtc-source.sh
./gen_autoksyms.sh
./ld-version.sh
./adjust_autoksyms.sh
./gcc-x86_32-has-stack-protector.sh
./decode_stacktrace.sh
./check-uapi.sh
./modules-check.sh
./dev-needs.sh
./depmod.sh
./install.sh
./check_extable.sh
./pahole-version.sh
./cc-can-link.sh
./syscallhdr.sh
./pahole-flags.sh
./kconfig/qconf-cfg.sh
./kconfig/gconf-cfg.sh
./kconfig/mconf-cfg.sh
./kconfig/merge_config.sh
./kconfig/nconf-cfg.sh
./mkuboot.sh

 

三、其中的py脚本

android/kernel_platform/kernel/scripts$ find ./ -name '*.py'
./clang-tools/run-clang-tools.py
./clang-tools/gen_compile_commands.py
./checkkconfigsymbols.py
./tracing/draw_functrace.py
./bpf_doc.py
./gdb/linux/symbols.py
./gdb/linux/timerlist.py
./gdb/linux/rbtree.py
./gdb/linux/utils.py
./gdb/linux/device.py
./gdb/linux/clk.py
./gdb/linux/proc.py
./gdb/linux/lists.py
./gdb/linux/cpus.py
./gdb/linux/genpd.py
./gdb/linux/modules.py
./gdb/linux/config.py
./gdb/linux/__init__.py
./gdb/linux/tasks.py
./gdb/linux/dmesg.py
./gdb/vmlinux-gdb.py
./generate_rust_analyzer.py
./spdxcheck.py
./kconfig/tests/conftest.py
./kconfig/tests/err_recursive_inc/__init__.py
./kconfig/tests/choice/__init__.py
./kconfig/tests/err_recursive_dep/__init__.py
./kconfig/tests/preprocess/variable/__init__.py
./kconfig/tests/preprocess/builtin_func/__init__.py
./kconfig/tests/preprocess/escape/__init__.py
./kconfig/tests/preprocess/circular_expansion/__init__.py
./kconfig/tests/choice_value_with_m_dep/__init__.py
./kconfig/tests/no_write_if_dep_unmet/__init__.py
./kconfig/tests/inter_choice/__init__.py
./kconfig/tests/new_choice_with_dep/__init__.py
./kconfig/tests/auto_submenu/__init__.py

 

posted on 2026-07-10 15:52  Hello-World3  阅读(7)  评论(0)    收藏  举报

导航