Skip to content

Unit test framework for klp-build toolchain

Song Liu live-patching lkml sashiko-reviews 5 versions – Applied

Status from this message: The following commit has been merged into the objtool/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest58 patches 3 repliesApplied
  2. v458 patches 5 repliesSuperseded
  3. v358 patches 11 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v258 patches15 repliesSuperseded
v158 patches1 replySuperseded

Changes in v5 from the cover letter

1. Yet more fixes based on Sashiko reviews.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/58objtool: Add test harness for the klp subcommandstools/objtool/Makefile tools/objtool/tests/fixtures/basic.c tools/objtool/tests/lib.sh +2 more+240 -10 replies
2/58objtool/klp: Check the klp test environment once, before any testtools/objtool/Makefile tools/objtool/tests/lib.sh tools/objtool/tests/run-tests.sh+112 -220 replies
3/58objtool/klp: Group the klp tests by architecturetools/objtool/tests/generic/fixtures/basic.c tools/objtool/tests/generic/test-basic.sh tools/objtool/tests/lib.sh +1 more+56 -90 replies
4/58objtool/klp: Classify klp test outcomestools/objtool/tests/lib.sh tools/objtool/tests/run-tests.sh+186 -290 replies
5/58objtool/klp: Build klp test fixtures through the harnesstools/objtool/tests/lib.sh+186 -190 replies
6/58objtool/klp: Grow the klp test harness vocabularytools/objtool/tests/lib.sh+360 -40 replies
7/58objtool/klp: Give each run one working directory, one per test inside ittools/objtool/tests/lib.sh tools/objtool/tests/run-tests.sh+42 -70 replies
8/58objtool/klp: Run the klp tests under set -utools/objtool/tests/lib.sh+2 -00 replies
9/58objtool/klp: Document the klp test harnesstools/objtool/Documentation/klp-test-design.txt tools/objtool/Documentation/klp-write-tests.txt+538 -00 replies
10/58objtool: Keep failing test workdirs by defaulttools/objtool/Documentation/klp-test-design.txt tools/objtool/Makefile tools/objtool/tests/lib.sh +1 more+136 -340 replies
11/58objtool: Forward toolchain variables to the klp test runnertools/objtool/Documentation/klp-test-design.txt tools/objtool/Makefile+20 -10 replies
12/58objtool/klp: Add test for rejecting changed datatools/objtool/tests/generic/fixtures/changed_data.c tools/objtool/tests/generic/test-changed-data.sh+34 -00 replies
13/58objtool/klp: Add test for newly introduced datatools/objtool/tests/generic/fixtures/new_data.c tools/objtool/tests/generic/test-new-data.sh+50 -00 replies
14/58objtool/klp: Add test for newly introduced functionstools/objtool/tests/generic/fixtures/new_function.c tools/objtool/tests/generic/test-new-function.sh+37 -00 replies
15/58objtool/klp: Add test for static local correlationtools/objtool/tests/generic/fixtures/static_local.c tools/objtool/tests/generic/test-static-local.sh+41 -00 replies
16/58objtool/klp: Add test for cold function halvestools/objtool/tests/generic/fixtures/cold_function.c tools/objtool/tests/generic/test-cold-function.sh+60 -00 replies
17/58objtool/klp: Add test for special section extractiontools/objtool/tests/generic/fixtures/special_section.c tools/objtool/tests/generic/test-special-section.sh+44 -00 replies
18/58objtool/klp: Add test for selective special section extractiontools/objtool/tests/generic/fixtures/special_section_shared.c tools/objtool/tests/generic/test-special-section-shared.sh+57 -00 replies
19/58objtool/klp: Add test for jump table key relocationstools/objtool/tests/generic/fixtures/jump_label.c tools/objtool/tests/generic/test-jump-label-key.sh+120 -00 replies
20/58objtool/klp: Add test for rejecting module-owned static branch keystools/objtool/tests/generic/test-jump-label-module-key.sh+22 -00 replies
21/58objtool/klp: Add test for rejecting module-owned static call keystools/objtool/tests/generic/fixtures/static_call.c tools/objtool/tests/generic/test-static-call-module-key.sh+95 -00 replies
22/58objtool/klp: Add test for symids in discarded sectionstools/objtool/tests/generic/fixtures/symid_discarded.c tools/objtool/tests/generic/test-symid-discarded.sh+69 -00 replies
23/58objtool/klp: Add test for rejecting references to init code/datatools/objtool/tests/generic/fixtures/init_reference.c tools/objtool/tests/generic/test-init-reference.sh+46 -00 replies
24/58objtool/klp: Add test for correlation across ThinLTO name manglingtools/objtool/tests/generic/fixtures/thinlto_local.c tools/objtool/tests/generic/test-thinlto-local.sh+87 -00 replies
25/58objtool/klp: Add test for objects without .modinfotools/objtool/tests/generic/fixtures/no_modinfo.c tools/objtool/tests/generic/test-missing-modinfo.sh+27 -00 replies
26/58objtool/klp: Add test for unchecksummed inputtools/objtool/tests/generic/test-missing-checksum.sh+18 -00 replies
27/58objtool/klp: Add klp diff and post-link regression teststools/objtool/tests/generic/fixtures/function_removal.c tools/objtool/tests/generic/test-checksum-debug.sh tools/objtool/tests/generic/test-function-removal.sh +3 more+205 -00 replies
28/58objtool/klp: Add test for klp reloc section naming in module objectstools/objtool/tests/generic/fixtures/cross_module.c tools/objtool/tests/generic/test-module-object.sh+56 -00 replies
29/58objtool/klp: Add test for vmlinux relocs in a patched moduletools/objtool/tests/generic/test-module-vmlinux-reloc.sh+40 -00 replies
30/58objtool/klp: Add test for Module.symvers path normalizationtools/objtool/tests/generic/test-modname-normalize.sh+26 -00 replies
31/58objtool/klp: Add test for the contents of the klp_funcs listtools/objtool/tests/generic/fixtures/klp_funcs.c tools/objtool/tests/generic/test-klp-funcs-content.sh+76 -00 replies
32/58objtool/klp: Add test for EXPORT_SYMBOL_FOR_MODULES referencestools/objtool/tests/generic/test-export-symbol-for-modules.sh+39 -00 replies
33/58objtool/klp: Add test for new references to exported symbolstools/objtool/tests/generic/fixtures/new_export_ref.c tools/objtool/tests/generic/test-new-export-ref.sh+81 -00 replies
34/58objtool/klp: Add test for empty x86 alternative replacementstools/objtool/tests/x86/fixtures/empty_alternative.c tools/objtool/tests/x86/test-empty-alternative.sh+108 -00 replies
35/58objtool/klp: Add test for recorded checksum valuestools/objtool/tests/generic/test-checksum-value.sh+37 -00 replies
36/58objtool/klp: Add test for position-independent checksumstools/objtool/tests/generic/fixtures/checksum_position.c tools/objtool/tests/generic/test-checksum-position.sh+92 -02 replies
37/58objtool/klp: Add test for sympos in module objectstools/objtool/tests/generic/fixtures/sympos_dup.c tools/objtool/tests/generic/test-sympos.sh+83 -00 replies
38/58objtool/klp: Add test for sympos resolved against a linked vmlinuxtools/objtool/tests/generic/fixtures/sympos_vmlinux.c tools/objtool/tests/generic/test-sympos-vmlinux.sh+97 -00 replies
39/58objtool/klp: Add test for static locals which must not be correlatedtools/objtool/tests/generic/fixtures/static_local_uncorrelated.c tools/objtool/tests/generic/test-static-local-uncorrelated.sh+82 -00 replies
40/58objtool/klp: Add test for __bug_table, __ex_table and __mcount_loc extractiontools/objtool/tests/x86/fixtures/special_sections.c tools/objtool/tests/x86/test-special-sections.sh+119 -00 replies
41/58objtool/klp: Add test for kCFI prefix symbols and trapstools/objtool/tests/x86/fixtures/kcfi.c tools/objtool/tests/x86/test-kcfi.sh+78 -00 replies
42/58objtool/klp: Add test for symbols whose linkage the patch changestools/objtool/tests/generic/fixtures/local_to_global.c tools/objtool/tests/generic/test-local-to-global-flip.sh+97 -00 replies
43/58objtool/klp: Test rejection of a file-local static branch keytools/objtool/tests/generic/test-jump-label-module-static-key.sh+45 -01 reply
44/58objtool/klp: Test a hand-built livepatch module's static call keystools/objtool/tests/x86/fixtures/static_call_no_key.c tools/objtool/tests/x86/test-manual-klp-static-call.sh+72 -00 replies
45/58objtool/klp: Test text annotations on alternative replacementstools/objtool/tests/x86/fixtures/alt_annotate.c tools/objtool/tests/x86/test-alt-annotation.sh+95 -00 replies
46/58objtool/klp: Add test for data object checksumstools/objtool/tests/generic/fixtures/checksum_data.c tools/objtool/tests/generic/test-checksum-data.sh+177 -00 replies
47/58objtool/klp: Add test for symbols with no checksum entry of their owntools/objtool/tests/generic/fixtures/checksum_skip.c tools/objtool/tests/generic/test-checksum-skip.sh+128 -00 replies
48/58objtool/klp: Add test for a static branch introduced by the patchtools/objtool/tests/generic/test-jump-label-new-key.sh+51 -00 replies
49/58objtool/klp: Add test for tracepoint and pr_debug static branch keystools/objtool/tests/generic/test-jump-label-exempt-keys.sh+51 -00 replies
50/58objtool/klp: Add test for a static call introduced by the patchtools/objtool/tests/generic/test-static-call-new.sh+45 -00 replies
51/58objtool/klp: Add test for instruction operand checksumstools/objtool/tests/generic/fixtures/checksum_insn.c tools/objtool/tests/generic/test-checksum-insn.sh+127 -00 replies
52/58objtool/klp: Add test for alternative replacement code in checksumstools/objtool/tests/x86/fixtures/checksum_alt.c tools/objtool/tests/x86/test-checksum-alt.sh+111 -00 replies
53/58objtool/klp: Add test for the alignment of cloned data sectionstools/objtool/tests/generic/fixtures/data_alignment.c tools/objtool/tests/generic/test-data-alignment.sh+69 -00 replies
54/58objtool/klp: Add test for a patch which strips a data annotationtools/objtool/tests/generic/test-static-call-annotate-stripped.sh+42 -00 replies
55/58objtool/klp: Add test for absolute and __ADDRESSABLE symbolstools/objtool/tests/generic/fixtures/abs_and_addressable.c tools/objtool/tests/generic/test-abs-and-addressable.sh+94 -00 replies
56/58objtool/klp: Add test for UBSAN metadata in an unchanged functiontools/objtool/tests/generic/fixtures/ubsan_noise.c tools/objtool/tests/generic/test-ubsan-noise.sh+97 -00 replies
57/58objtool/klp: Add test for Clang switch jump tablestools/objtool/tests/generic/fixtures/switch_rodata.c tools/objtool/tests/generic/test-switch-rodata.sh+84 -00 replies
58/58objtool/klp: Add test for ThinLTO symbols sharing a demangled nametools/objtool/tests/generic/fixtures/thinlto_ambiguity.c tools/objtool/tests/generic/test-thinlto-ambiguity.sh+134 -00 replies

Reviews trailers per patch

None of the 58 patches has a Reviewed-by or Acked-by.

PatchJoe Lawrence
1/58
2/58
3/58
4/58
5/58
6/58
7/58
8/58
9/58
10/58
11/58
12/58
13/58
14/58
15/58
16/58
17/58
18/58
19/58
20/58
21/58
22/58
23/58
24/58
25/58
26/58
27/58
28/58Based-on-test-by
29/58
30/58Based-on-test-by
31/58Based-on-test-by
32/58Based-on-test-by
33/58Based-on-test-by
34/58Based-on-test-by
35/58Based-on-test-by
36/58Based-on-test-by
37/58Based-on-test-by
38/58Based-on-test-by
39/58Based-on-test-by
40/58Based-on-test-by
41/58Based-on-test-by
42/58Based-on-test-by
43/58Based-on-test-by
44/58Based-on-test-by
45/58
46/58Based-on-test-by
47/58Based-on-test-by
48/58Based-on-test-by
49/58Based-on-test-by
50/58Based-on-test-by
51/58Based-on-test-by
52/58Based-on-test-by
53/58Based-on-test-by
54/58Based-on-test-by
55/58Based-on-test-by
56/58Based-on-test-by
57/58Based-on-test-by
58/58Based-on-test-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 00/58] Unit test framework for klp-build toolchain

This is the unit test part of a test framework for the klp-build toolchain. The other part of the test framework will be some integration tests, similar to an earlier propose [1].

This is joint work by Puranjay Mohan, Joe Lawrence, and myself (Song Liu). Note that, while only two patches here are under Joe's authorship, his contribution to this set is much bigger than the number represents. A lot of these tests are based on Joe's earlier work in this area [2].

As the Assisted-by tags show, a lot of the work here is done with assists of AI. We actually designed the framework to so that we expect AI to write these tests in the future. AI also contributed in the design of the test framework. However, we (human) carefully reviewed the test framework. Also, this cover letter is 100% written by a human being (Song Liu).

Here are some key design choices we made for this unit tests framework:

1. We do not need different unit test here for different kernel CONFIG_* options. Instead, the tests cover different CONFIG_* options by passing different arguments to the compiler and objtool.

2. The test is NOT designed to be backward compatible. Similar to objtool itself, the unit tests are delivered with the kernel tree. The user of these tests should test the objtool with the unit tests in the same branch. Once this test framework lands, future changes and fixes to the objtool klp command should land with unit tests that cover the changes.

3. It is possible to run these tests on a different architecture with proper cross compilers. However, for automated CI, we are planning to focus on native tests. Please refer to "Future work" section below for more information about the CI.

4. AI will help write tests. We found AI is very cable to write good tests. tools/objtool/Documentation/klp-write-tests.txt is added for AI to read, so that AI can write tests for this test framework.

Future work
1. The integration test simiar to [1]. Unlike the unit tests, the integration tests will need separate runs to cover different kernel CONFIG_* combinations.

2. CI. The plan is to build a lore => patchwork => GitHub CI framework. This is the model used by subsystems such as netdev, bpf, and risc-v. We also have some ideas on "who will pay for the CI" issue, but I would rather not promise anything yet.

3. More tests.

Thanks,
Song

[1] https://lore.kernel.org/live-patching/[email protected]/
[2] https://github.com/joe-lawrence/klp-build-unit-tests

Changes v4 => v5:
1. Yet more fixes based on Sashiko reviews.

v4: https://lore.kernel.org/live-patching/[email protected]/

Changes v3 => v4:
1. Fix yet more issues reported by Sashiko.

v3: https://lore.kernel.org/live-patching/[email protected]/

Changes v2 => v3:
1. Fix more issues reported by Sashiko.

v2: https://lore.kernel.org/live-patching/[email protected]/

Changes v1 => v2:
1. Fix issues reported by Sashiko.

v1: https://lore.kernel.org/live-patching/[email protected]/

Joe Lawrence (2):
objtool: Keep failing test workdirs by default
objtool: Forward toolchain variables to the klp test runner

Puranjay Mohan (16):
objtool: Add test harness for the klp subcommands objtool/klp: Add test for rejecting changed data objtool/klp: Add test for newly introduced data objtool/klp: Add test for newly introduced functions objtool/klp: Add test for static local correlation objtool/klp: Add test for cold function halves objtool/klp: Add test for special section extraction objtool/klp: Add test for selective special section extraction objtool/klp: Add test for jump table key relocations objtool/klp: Add test for rejecting module-owned static branch keys objtool/klp: Add test for rejecting module-owned static call keys objtool/klp: Add test for symids in discarded sections objtool/klp: Add test for rejecting references to init code/data objtool/klp: Add test for correlation across ThinLTO name mangling objtool/klp: Add test for objects without .modinfo objtool/klp: Add test for unchecksummed input

Song Liu (40):
objtool/klp: Check the klp test environment once, before any test objtool/klp: Group the klp tests by architecture objtool/klp: Classify klp test outcomes
objtool/klp: Build klp test fixtures through the harness objtool/klp: Grow the klp test harness vocabulary objtool/klp: Give each run one working directory, one per test inside
it
objtool/klp: Run the klp tests under set -u
objtool/klp: Document the klp test harness
objtool/klp: Add klp diff and post-link regression tests objtool/klp: Add test for klp reloc section naming in module objects objtool/klp: Add test for vmlinux relocs in a patched module objtool/klp: Add test for Module.symvers path normalization objtool/klp: Add test for the contents of the klp_funcs list objtool/klp: Add test for EXPORT_SYMBOL_FOR_MODULES references objtool/klp: Add test for new references to exported symbols objtool/klp: Add test for empty x86 alternative replacements objtool/klp: Add test for recorded checksum values objtool/klp: Add test for position-independent checksums objtool/klp: Add test for sympos in module objects objtool/klp: Add test for sympos resolved against a linked vmlinux objtool/klp: Add test for static locals which must not be correlated objtool/klp: Add test for __bug_table, __ex_table and __mcount_loc
extraction
objtool/klp: Add test for kCFI prefix symbols and traps objtool/klp: Add test for symbols whose linkage the patch changes objtool/klp: Test rejection of a file-local static branch key objtool/klp: Test a hand-built livepatch module's static call keys objtool/klp: Test text annotations on alternative replacements objtool/klp: Add test for data object checksums objtool/klp: Add test for symbols with no checksum entry of their own objtool/klp: Add test for a static branch introduced by the patch objtool/klp: Add test for tracepoint and pr_debug static branch keys objtool/klp: Add test for a static call introduced by the patch objtool/klp: Add test for instruction operand checksums objtool/klp: Add test for alternative replacement code in checksums objtool/klp: Add test for the alignment of cloned data sections objtool/klp: Add test for a patch which strips a data annotation objtool/klp: Add test for absolute and __ADDRESSABLE symbols objtool/klp: Add test for UBSAN metadata in an unchanged function objtool/klp: Add test for Clang switch jump tables objtool/klp: Add test for ThinLTO symbols sharing a demangled name

 .../objtool/Documentation/klp-test-design.txt | 286 ++++++
 .../objtool/Documentation/klp-write-tests.txt | 266 +++++
 tools/objtool/Makefile                        |  15 +-
 .../generic/fixtures/abs_and_addressable.c    |  44 +
 tools/objtool/tests/generic/fixtures/basic.c  |  20 +
 .../tests/generic/fixtures/changed_data.c     |  16 +
 .../tests/generic/fixtures/checksum_data.c    | 116 +++
 .../tests/generic/fixtures/checksum_insn.c    |  78 ++
 .../generic/fixtures/checksum_position.c      |  42 +
 .../tests/generic/fixtures/checksum_skip.c    |  47 +
 .../tests/generic/fixtures/cold_function.c    |  21 +
 .../tests/generic/fixtures/cross_module.c     |  25 +
 .../tests/generic/fixtures/data_alignment.c   |  29 +
 .../tests/generic/fixtures/function_removal.c |  25 +
 .../tests/generic/fixtures/init_reference.c   |  17 +
 .../tests/generic/fixtures/jump_label.c       |  76 ++
 .../tests/generic/fixtures/klp_funcs.c        |  31 +
 .../tests/generic/fixtures/local_to_global.c  |  34 +
 .../objtool/tests/generic/fixtures/new_data.c |  23 +
 .../tests/generic/fixtures/new_export_ref.c   |  35 +
 .../tests/generic/fixtures/new_function.c     |  21 +
 .../tests/generic/fixtures/no_modinfo.c       |  11 +
 .../tests/generic/fixtures/special_section.c  |  24 +
 .../generic/fixtures/special_section_shared.c |  31 +
 .../tests/generic/fixtures/static_call.c      |  59 ++
 .../tests/generic/fixtures/static_local.c     |  17 +
 .../fixtures/static_local_uncorrelated.c      |  41 +
 .../tests/generic/fixtures/switch_rodata.c    |  31 +
 .../tests/generic/fixtures/symid_discarded.c  |  25 +
 .../tests/generic/fixtures/sympos_dup.c       |  32 +
 .../tests/generic/fixtures/sympos_vmlinux.c   |  40 +
 .../generic/fixtures/thinlto_ambiguity.c      |  57 ++
 .../tests/generic/fixtures/thinlto_local.c    |  39 +
 .../tests/generic/fixtures/ubsan_noise.c      |  49 +
 .../tests/generic/test-abs-and-addressable.sh |  50 +
 tools/objtool/tests/generic/test-basic.sh     |  17 +
 .../tests/generic/test-changed-data.sh        |  18 +
 .../tests/generic/test-checksum-data.sh       |  61 ++
 .../tests/generic/test-checksum-debug.sh      |  49 +
 .../tests/generic/test-checksum-insn.sh       |  49 +
 .../tests/generic/test-checksum-position.sh   |  50 +
 .../tests/generic/test-checksum-skip.sh       |  81 ++
 .../tests/generic/test-checksum-value.sh      |  37 +
 .../tests/generic/test-cold-function.sh       |  39 +
 .../tests/generic/test-data-alignment.sh      |  40 +
 .../generic/test-export-symbol-for-modules.sh |  39 +
 .../tests/generic/test-function-removal.sh    |  34 +
 .../tests/generic/test-init-reference.sh      |  29 +
 .../generic/test-jump-label-exempt-keys.sh    |  51 +
 .../tests/generic/test-jump-label-key.sh      |  44 +
 .../generic/test-jump-label-module-key.sh     |  22 +
 .../test-jump-label-module-static-key.sh      |  45 +
 .../tests/generic/test-jump-label-new-key.sh  |  51 +
 .../tests/generic/test-klp-funcs-content.sh   |  45 +
 .../generic/test-local-to-global-flip.sh      |  63 ++
 .../tests/generic/test-local-vs-export.sh     |  32 +
 .../tests/generic/test-missing-checksum.sh    |  18 +
 .../tests/generic/test-missing-modinfo.sh     |  16 +
 .../tests/generic/test-modname-normalize.sh   |  26 +
 .../tests/generic/test-module-object.sh       |  31 +
 .../generic/test-module-vmlinux-reloc.sh      |  40 +
 tools/objtool/tests/generic/test-new-data.sh  |  27 +
 .../tests/generic/test-new-export-ref.sh      |  46 +
 .../tests/generic/test-new-function.sh        |  16 +
 tools/objtool/tests/generic/test-post-link.sh |  42 +
 .../generic/test-special-section-shared.sh    |  26 +
 .../tests/generic/test-special-section.sh     |  20 +
 .../test-static-call-annotate-stripped.sh     |  42 +
 .../generic/test-static-call-module-key.sh    |  36 +
 .../tests/generic/test-static-call-new.sh     |  45 +
 .../generic/test-static-local-uncorrelated.sh |  41 +
 .../tests/generic/test-static-local.sh        |  24 +
 .../tests/generic/test-switch-rodata.sh       |  53 +
 .../tests/generic/test-symid-discarded.sh     |  44 +
 .../tests/generic/test-sympos-vmlinux.sh      |  57 ++
 tools/objtool/tests/generic/test-sympos.sh    |  51 +
 .../tests/generic/test-symvers-parse-error.sh |  23 +
 .../tests/generic/test-thinlto-ambiguity.sh   |  77 ++
 .../tests/generic/test-thinlto-local.sh       |  48 +
 .../objtool/tests/generic/test-ubsan-noise.sh |  48 +
 tools/objtool/tests/lib.sh                    | 911 ++++++++++++++++++
 tools/objtool/tests/run-tests.sh              | 239 +++++
 .../objtool/tests/x86/fixtures/alt_annotate.c |  57 ++
 .../objtool/tests/x86/fixtures/checksum_alt.c |  66 ++
 .../tests/x86/fixtures/empty_alternative.c    |  77 ++
 tools/objtool/tests/x86/fixtures/kcfi.c       |  39 +
 .../tests/x86/fixtures/special_sections.c     |  77 ++
 .../tests/x86/fixtures/static_call_no_key.c   |  32 +
 .../objtool/tests/x86/test-alt-annotation.sh  |  38 +
 tools/objtool/tests/x86/test-checksum-alt.sh  |  45 +
 .../tests/x86/test-empty-alternative.sh       |  31 +
 tools/objtool/tests/x86/test-kcfi.sh          |  39 +
 .../tests/x86/test-manual-klp-static-call.sh  |  40 +
 .../tests/x86/test-special-sections.sh        |  42 +
 94 files changed, 5298 insertions(+), 1 deletion(-)
 create mode 100644 tools/objtool/Documentation/klp-test-design.txt
 create mode 100644 tools/objtool/Documentation/klp-write-tests.txt
 create mode 100644 tools/objtool/tests/generic/fixtures/abs_and_addressable.c
 create mode 100644 tools/objtool/tests/generic/fixtures/basic.c
 create mode 100644 tools/objtool/tests/generic/fixtures/changed_data.c
 create mode 100644 tools/objtool/tests/generic/fixtures/checksum_data.c
 create mode 100644 tools/objtool/tests/generic/fixtures/checksum_insn.c
 create mode 100644 tools/objtool/tests/generic/fixtures/checksum_position.c
 create mode 100644 tools/objtool/tests/generic/fixtures/checksum_skip.c
 create mode 100644 tools/objtool/tests/generic/fixtures/cold_function.c
 create mode 100644 tools/objtool/tests/generic/fixtures/cross_module.c
 create mode 100644 tools/objtool/tests/generic/fixtures/data_alignment.c
 create mode 100644 tools/objtool/tests/generic/fixtures/function_removal.c
 create mode 100644 tools/objtool/tests/generic/fixtures/init_reference.c
 create mode 100644 tools/objtool/tests/generic/fixtures/jump_label.c
 create mode 100644 tools/objtool/tests/generic/fixtures/klp_funcs.c
 create mode 100644 tools/objtool/tests/generic/fixtures/local_to_global.c
 create mode 100644 tools/objtool/tests/generic/fixtures/new_data.c
 create mode 100644 tools/objtool/tests/generic/fixtures/new_export_ref.c
 create mode 100644 tools/objtool/tests/generic/fixtures/new_function.c
 create mode 100644 tools/objtool/tests/generic/fixtures/no_modinfo.c
 create mode 100644 tools/objtool/tests/generic/fixtures/special_section.c
 create mode 100644 tools/objtool/tests/generic/fixtures/special_section_shared.c
 create mode 100644 tools/objtool/tests/generic/fixtures/static_call.c
 create mode 100644 tools/objtool/tests/generic/fixtures/static_local.c
 create mode 100644 tools/objtool/tests/generic/fixtures/static_local_uncorrelated.c
 create mode 100644 tools/objtool/tests/generic/fixtures/switch_rodata.c
 create mode 100644 tools/objtool/tests/generic/fixtures/symid_discarded.c
 create mode 100644 tools/objtool/tests/generic/fixtures/sympos_dup.c
 create mode 100644 tools/objtool/tests/generic/fixtures/sympos_vmlinux.c
 create mode 100644 tools/objtool/tests/generic/fixtures/thinlto_ambiguity.c
 create mode 100644 tools/objtool/tests/generic/fixtures/thinlto_local.c
 create mode 100644 tools/objtool/tests/generic/fixtures/ubsan_noise.c
 create mode 100755 tools/objtool/tests/generic/test-abs-and-addressable.sh
 create mode 100755 tools/objtool/tests/generic/test-basic.sh
 create mode 100755 tools/objtool/tests/generic/test-changed-data.sh
 create mode 100755 tools/objtool/tests/generic/test-checksum-data.sh
 create mode 100755 tools/objtool/tests/generic/test-checksum-debug.sh
 create mode 100755 tools/objtool/tests/generic/test-checksum-insn.sh
 create mode 100755 tools/objtool/tests/generic/test-checksum-position.sh
 create mode 100755 tools/objtool/tests/generic/test-checksum-skip.sh
 create mode 100755 tools/objtool/tests/generic/test-checksum-value.sh
 create mode 100755 tools/objtool/tests/generic/test-cold-function.sh
 create mode 100755 tools/objtool/tests/generic/test-data-alignment.sh
 create mode 100755 tools/objtool/tests/generic/test-export-symbol-for-modules.sh
 create mode 100755 tools/objtool/tests/generic/test-function-removal.sh
 create mode 100755 tools/objtool/tests/generic/test-init-reference.sh
 create mode 100755 tools/objtool/tests/generic/test-jump-label-exempt-keys.sh
 create mode 100755 tools/objtool/tests/generic/test-jump-label-key.sh
 create mode 100755 tools/objtool/tests/generic/test-jump-label-module-key.sh
 create mode 100755 tools/objtool/tests/generic/test-jump-label-module-static-key.sh
 create mode 100755 tools/objtool/tests/generic/test-jump-label-new-key.sh
 create mode 100755 tools/objtool/tests/generic/test-klp-funcs-content.sh
 create mode 100755 tools/objtool/tests/generic/test-local-to-global-flip.sh
 create mode 100755 tools/objtool/tests/generic/test-local-vs-export.sh
 create mode 100755 tools/objtool/tests/generic/test-missing-checksum.sh
 create mode 100755 tools/objtool/tests/generic/test-missing-modinfo.sh
 create mode 100755 tools/objtool/tests/generic/test-modname-normalize.sh
 create mode 100755 tools/objtool/tests/generic/test-module-object.sh
 create mode 100755 tools/objtool/tests/generic/test-module-vmlinux-reloc.sh
 create mode 100755 tools/objtool/tests/generic/test-new-data.sh
 create mode 100755 tools/objtool/tests/generic/test-new-export-ref.sh
 create mode 100755 tools/objtool/tests/generic/test-new-function.sh
 create mode 100755 tools/objtool/tests/generic/test-post-link.sh
 create mode 100755 tools/objtool/tests/generic/test-special-section-shared.sh
 create mode 100755 tools/objtool/tests/generic/test-special-section.sh
 create mode 100755 tools/objtool/tests/generic/test-static-call-annotate-stripped.sh
 create mode 100755 tools/objtool/tests/generic/test-static-call-module-key.sh
 create mode 100755 tools/objtool/tests/generic/test-static-call-new.sh
 create mode 100755 tools/objtool/tests/generic/test-static-local-uncorrelated.sh
 create mode 100755 tools/objtool/tests/generic/test-static-local.sh
 create mode 100755 tools/objtool/tests/generic/test-switch-rodata.sh
 create mode 100755 tools/objtool/tests/generic/test-symid-discarded.sh
 create mode 100755 tools/objtool/tests/generic/test-sympos-vmlinux.sh
 create mode 100755 tools/objtool/tests/generic/test-sympos.sh
 create mode 100755 tools/objtool/tests/generic/test-symvers-parse-error.sh
 create mode 100755 tools/objtool/tests/generic/test-thinlto-ambiguity.sh
 create mode 100755 tools/objtool/tests/generic/test-thinlto-local.sh
 create mode 100755 tools/objtool/tests/generic/test-ubsan-noise.sh
 create mode 100644 tools/objtool/tests/lib.sh
 create mode 100755 tools/objtool/tests/run-tests.sh
 create mode 100644 tools/objtool/tests/x86/fixtures/alt_annotate.c
 create mode 100644 tools/objtool/tests/x86/fixtures/checksum_alt.c
 create mode 100644 tools/objtool/tests/x86/fixtures/empty_alternative.c
 create mode 100644 tools/objtool/tests/x86/fixtures/kcfi.c
 create mode 100644 tools/objtool/tests/x86/fixtures/special_sections.c
 create mode 100644 tools/objtool/tests/x86/fixtures/static_call_no_key.c
 create mode 100755 tools/objtool/tests/x86/test-alt-annotation.sh
 create mode 100755 tools/objtool/tests/x86/test-checksum-alt.sh
 create mode 100755 tools/objtool/tests/x86/test-empty-alternative.sh
 create mode 100755 tools/objtool/tests/x86/test-kcfi.sh
 create mode 100755 tools/objtool/tests/x86/test-manual-klp-static-call.sh
 create mode 100755 tools/objtool/tests/x86/test-special-sections.sh

--
2.53.0-Meta