All of lore.kernel.org
 help / color / mirror / Atom feed
* perf test case 40 LLVM search and compile runs endless (eBPF linkage issue)
@ 2022-05-23 10:52 Thomas Richter
  2022-05-23 11:09 ` Jiri Olsa
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Richter @ 2022-05-23 10:52 UTC (permalink / raw)
  To: linux-perf-use.,
	Arnaldo Carvalho de Melo, Jiri Olsa, Sumanth Korikkar,
	Heiko Carstens, vasily Gorbik, Ian Rogers, Ilya Leoshkevich,
	Sven Schnelle

On s390 the test case 40 'LLVM search and compile' runs for ever:

  # date; timeout 30s perf test -F 40; date
  Mon May 23 12:35:48 PM CEST 2022
   40: LLVM search and compile   :
   40.1: Basic BPF llvm compile  :
  Mon May 23 12:36:18 PM CEST 2022
  #

Investigation by Ilya Leoshkevich revealed:
On s390 we hit an endless loop where bpf_object__next_program and bpf_program__next 
infinitely call each other. We tracked this down to ld.so preferring the perf's 
bpf_object__next_program weak copy over the libbpf's strong one.

This is introduced with commit 2a4898fc264a ("perf tools: Add more weak libbpf functions")

Also see discussion in 
https://lore.kernel.org/lkml/YY%2FAR2Dcaws0BAE9@kernel.org/

How can this be fixed asap? Thanks a lot.
-- 
Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany
--
Vorsitzender des Aufsichtsrats: Gregor Pillen
Geschäftsführung: David Faller
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294

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

end of thread, other threads:[~2022-05-25 14:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23 10:52 perf test case 40 LLVM search and compile runs endless (eBPF linkage issue) Thomas Richter
2022-05-23 11:09 ` Jiri Olsa
2022-05-24 12:10   ` Jiri Olsa
2022-05-24 14:33     ` Arnaldo Carvalho de Melo
2022-05-25 14:10       ` Thomas Richter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.