Merge branch 'skip-callback-tests-if-jit-is-disabled-in-test_verifier'
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 24 Jan 2024 04:26:18 +0000 (20:26 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 24 Jan 2024 04:28:06 +0000 (20:28 -0800)
commit32749605e3a9726f2cf277cbc032cf243c2da689
treef9509b14e129f75f49d815c7182f99c714da7ee3
parent8b593021319d4893a8fbeb7bd1f668657e68403c
parent0b50478fd8774f42721f4297293b711e17bc4b7b
Merge branch 'skip-callback-tests-if-jit-is-disabled-in-test_verifier'

Tiezhu Yang says:

====================
Skip callback tests if jit is disabled in test_verifier

Thanks very much for the feedbacks from Eduard, John, Jiri, Daniel,
Hou Tao, Song Liu and Andrii.

v7:
  -- Add an explicit flag F_NEEDS_JIT_ENABLED for checking,
     thanks Andrii.

v6:
  -- Copy insn_is_pseudo_func() into testing_helpers,
     thanks Andrii.

v5:
  -- Reuse is_ldimm64_insn() and insn_is_pseudo_func(),
     thanks Song Liu.

v4:
  -- Move the not-allowed-checking into "if (expected_ret ...)"
     block, thanks Hou Tao.
  -- Do some small changes to avoid checkpatch warning
     about "line length exceeds 100 columns".

v3:
  -- Rebase on the latest bpf-next tree.
  -- Address the review comments by Hou Tao,
     remove the second argument "0" of open(),
     check only once whether jit is disabled,
     check fd_prog, saved_errno and jit_disabled to skip.
====================

Link: https://lore.kernel.org/r/20240123090351.2207-1-yangtiezhu@loongson.cn
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>