Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Ma Xinjian <max.xinjian@intel.com>
To: Andrii Nakryiko <andriin@fb.com>
Cc: "open list:KERNEL SELFTEST FRAMEWORK" 
	<linux-kselftest@vger.kernel.org>,
	"bpf@vger.kernel.org" <bpf@vger.kernel.org>,
	Philip Li <philip.li@intel.com>
Subject: bpf: test_btf run failed on debian9
Date: Thu, 23 Apr 2020 17:44:07 +0800	[thread overview]
Message-ID: <a24d4326-cf80-bb40-e888-eca7d783d9e5@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2294 bytes --]

Hi Andrii.

I noticed you add tools/testing/selftests/bpf/progs/test_btf_*, so drop 
this problem to you.


I failed to run bpf: test_btf on debian9(stretch), hope you can give me 
some suggestion.



Testing env: "Debian GNU/Linux 9 (stretch)"

kernel: 5.7.0-rc2 5.6 both failed


Description: run bpf: test_btf failed with ""Arg#0 type PTR in 
test_long_fname_2() is not supported yet.""

Whole run log  and kconfig please see the attatchment.


Error info

```

  root@vm-snb-42 
/usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-ae83d0b416db002fe95601e7f97f64b59514d936/tools/testing/selftests/bpf# 
./test_btf
BTF raw test[1] (struct test #1): OK
BTF raw test[2] (struct test #2): OK
BTF raw test[3] (struct test #3 Invalid member offset): OK


[snip]

BTF libbpf test[1] (test_btf_haskv.o): libbpf: load bpf program failed: 
Invalid argument
libbpf: -- BEGIN DUMP LOG ---
libbpf:
Validating test_long_fname_2() func#1...
Arg#0 type PTR in test_long_fname_2() is not supported yet.
processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 
peak_states 0 mark_read 0

libbpf: -- END LOG --
libbpf: failed to load program 'dummy_tracepoint'
libbpf: failed to load object 'test_btf_haskv.o'
do_test_file:4201:FAIL bpf_object__load: -4007
BTF libbpf test[2] (test_btf_newkv.o): libbpf: load bpf program failed: 
Invalid argument
libbpf: -- BEGIN DUMP LOG ---
libbpf:
Validating test_long_fname_2() func#1...
Arg#0 type PTR in test_long_fname_2() is not supported yet.
processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 
peak_states 0 mark_read 0

libbpf: -- END LOG --
libbpf: failed to load program 'dummy_tracepoint'
libbpf: failed to load object 'test_btf_newkv.o'
do_test_file:4201:FAIL bpf_object__load: -4007
BTF libbpf test[3] (test_btf_nokv.o): libbpf: load bpf program failed: 
Invalid argument
libbpf: -- BEGIN DUMP LOG ---
libbpf:
Validating test_long_fname_2() func#1...
Arg#0 type PTR in test_long_fname_2() is not supported yet.
processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 
peak_states 0 mark_read 0

libbpf: -- END LOG --
libbpf: failed to load program 'dummy_tracepoint'
libbpf: failed to load object 'test_btf_nokv.o'
do_test_file:4201:FAIL bpf_object__load: -4007

[snip]

```

-- 
Best Regards.
Ma Xinjian





[-- Attachment #2: bpf_test_btf_log.gz --]
[-- Type: application/gzip, Size: 2607 bytes --]

[-- Attachment #3: kconfig.gz --]
[-- Type: application/gzip, Size: 49062 bytes --]

                 reply	other threads:[~2020-04-23  9:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a24d4326-cf80-bb40-e888-eca7d783d9e5@intel.com \
    --to=max.xinjian@intel.com \
    --cc=andriin@fb.com \
    --cc=bpf@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=philip.li@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox