linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf test 42 failure on x86
@ 2020-12-14 16:30 Thomas Richter
  2020-12-15 13:03 ` Arnaldo de Melo
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Richter @ 2020-12-14 16:30 UTC (permalink / raw)
  To: linux-perf-use., Arnaldo de Melo; +Cc: Heiko Carstens, Sumanth Korikkar

Hi,

I just installed Fedora 33 and its latest kernel on my x86_64 virtual machine and
ran into a perf test issue:

[root@f33 ~]# uname -a
Linux f33 5.9.13-200.fc33.x86_64 #1 SMP Tue Dec 8 15:42:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@f33 ~]#[root@f33 ~]# perf test -F 42
42: BPF filter                                            :
42.1: Basic BPF filtering                                 : Ok
42.2: BPF pinning                                         : Ok
42.3: BPF prologue generation                             : Ok
42.4: BPF relocation checker                              : FAILED!
[root@f33 ~]# 

The last test fails due to unexpected success:
[root@f33 ~]# perf test -v -F 42
42: BPF filter                                            :
42.1: Basic BPF filtering                                 :
--- start ---
....
libbpf: skip section(9) .eh_frame
libbpf: section(10) .rel.eh_frame, size 16, link 12, flags 0, type=9
libbpf: skip relo .rel.eh_frame(10) for section(9)
libbpf: section(11) .llvm_addrsig, size 5, link 12, flags 80000000, type=1879002115
libbpf: skip section(11) .llvm_addrsig
libbpf: section(12) .symtab, size 192, link 1, flags 0, type=2
libbpf: looking for externs among 8 symbols...
libbpf: collected 0 externs total
libbpf: maps in [bpf_relocation_test]: 1 maps in 16 bytes
libbpf: map 'my_table' (legacy): at sec_idx 5, offset 0.
libbpf: map 6 is "my_table"
libbpf: map '_bpf_rel.bss' (global data): at sec_idx 6, offset 0, flags 400.
libbpf: map 1 is "_bpf_rel.bss"
libbpf: collecting relocating info for: 'func=sys_write'
libbpf: relo for shdr 6, symb 7, value 0, type 1, bind 1, name 26 ('this_is_a_global_val'), insn 7
libbpf: found data map 1 (_bpf_rel.bss, sec 6, off 0) for insn 7
Success unexpectedly: libbpf error when dealing with relocation
---- end ----
BPF filter subtest 4: FAILED!
[root@f33 ~]#

There is success when failure is expected. Has anybody already started to look into this?
--

Thomas Richter, Dept 3252, IBM s390 Linux Development, Boeblingen, Germany
--
Vorsitzender des Aufsichtsrats: Gregor Pillen
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: perf test 42 failure on x86
  2020-12-14 16:30 perf test 42 failure on x86 Thomas Richter
@ 2020-12-15 13:03 ` Arnaldo de Melo
  0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo de Melo @ 2020-12-15 13:03 UTC (permalink / raw)
  To: Thomas Richter; +Cc: linux-perf-use., Heiko Carstens, Sumanth Korikkar

Em Mon, Dec 14, 2020 at 05:30:46PM +0100, Thomas Richter escreveu:
> Hi,
> 
> I just installed Fedora 33 and its latest kernel on my x86_64 virtual machine and
> ran into a perf test issue:
> 
> [root@f33 ~]# uname -a
> Linux f33 5.9.13-200.fc33.x86_64 #1 SMP Tue Dec 8 15:42:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
> [root@f33 ~]#[root@f33 ~]# perf test -F 42
> 42: BPF filter                                            :
> 42.1: Basic BPF filtering                                 : Ok
> 42.2: BPF pinning                                         : Ok
> 42.3: BPF prologue generation                             : Ok
> 42.4: BPF relocation checker                              : FAILED!
> [root@f33 ~]# 
> 
> The last test fails due to unexpected success:
> [root@f33 ~]# perf test -v -F 42
> 42: BPF filter                                            :
> 42.1: Basic BPF filtering                                 :
> --- start ---
> ....
> libbpf: skip section(9) .eh_frame
> libbpf: section(10) .rel.eh_frame, size 16, link 12, flags 0, type=9
> libbpf: skip relo .rel.eh_frame(10) for section(9)
> libbpf: section(11) .llvm_addrsig, size 5, link 12, flags 80000000, type=1879002115
> libbpf: skip section(11) .llvm_addrsig
> libbpf: section(12) .symtab, size 192, link 1, flags 0, type=2
> libbpf: looking for externs among 8 symbols...
> libbpf: collected 0 externs total
> libbpf: maps in [bpf_relocation_test]: 1 maps in 16 bytes
> libbpf: map 'my_table' (legacy): at sec_idx 5, offset 0.
> libbpf: map 6 is "my_table"
> libbpf: map '_bpf_rel.bss' (global data): at sec_idx 6, offset 0, flags 400.
> libbpf: map 1 is "_bpf_rel.bss"
> libbpf: collecting relocating info for: 'func=sys_write'
> libbpf: relo for shdr 6, symb 7, value 0, type 1, bind 1, name 26 ('this_is_a_global_val'), insn 7
> libbpf: found data map 1 (_bpf_rel.bss, sec 6, off 0) for insn 7
> Success unexpectedly: libbpf error when dealing with relocation
> ---- end ----
> BPF filter subtest 4: FAILED!
> [root@f33 ~]#
> 
> There is success when failure is expected. Has anybody already started to look into this?

I saw this but didn't manage to start working on it, if you could try to
investigate this, that would be fantastic.

Thanks,

- Arnaldo

> 
> Thomas Richter, Dept 3252, IBM s390 Linux Development, Boeblingen, Germany
> --
> Vorsitzender des Aufsichtsrats: Gregor Pillen
> Geschäftsführung: Dirk Wittkopp
> Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-15 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 16:30 perf test 42 failure on x86 Thomas Richter
2020-12-15 13:03 ` Arnaldo de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).