Skip to content

Commit 8f161ca

Browse files
author
Alexei Starovoitov
committed
selftests/bpf: Temporarily disable part of btf_dump:var_data test.
Commit 7443b29 ("x86/percpu: Move cpu_number next to current_task") moved global per_cpu variable 'cpu_number' into pcpu_hot structure. Therefore this part of var_data test is no longer valid. Disable it until better solution is found. Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 9ed1d9a commit 8f161ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/prog_tests/btf_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ static void test_btf_dump_struct_data(struct btf *btf, struct btf_dump *d,
801801
static void test_btf_dump_var_data(struct btf *btf, struct btf_dump *d,
802802
char *str)
803803
{
804-
#if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__)
804+
#if 0
805805
TEST_BTF_DUMP_VAR(btf, d, NULL, str, "cpu_number", int, BTF_F_COMPACT,
806806
"int cpu_number = (int)100", 100);
807807
#endif

0 commit comments

Comments
 (0)