Re: [PATCH] perf probe: skip test_uprobe_from_different_cu if there is no gcc

From: Google
Date: Mon Jul 31 2023 - 20:30:06 EST


On Sat, 29 Jul 2023 12:59:50 +0200
Georg Müller <georgmueller@xxxxxxx> wrote:

>
> Am 29.07.23 um 02:38 schrieb Masami Hiramatsu (Google):
> >
> > Interesting, so clang will not generate DWARF or perf probe is not able to
> > handle clang generated DWARF?
> >
>
> clang does not accept mixed -flto and non-lto CUs and the problem is not
> reproducible by this sample code using clang if using -flto for all CUs.
> There might be (bigger?) examples where the same issue is triggered by
> clang and bigger examples (like systemd on fedora) where I ran into the
> bug, but this small example only shows the problem when using gcc and
> mixing -flto and non-lto CUs.

Thanks for the explanation! So the problem will be in the compiler side
(and maybe fixed when it is updated.)

Thank you,

--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>