Re: [PATCH v6 01/13] perf jvmti: Link the agent with EXTRA_CFLAGS

From: Namhyung Kim

Date: Thu Nov 19 2026 - 02:33:12 EST


On Tue, Nov 17, 2026 at 05:04:19PM -0300, Arnaldo Carvalho de Melo wrote:
> From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
>
> The jvmti objects are compiled with EXTRA_CFLAGS but the agent is linked
> with LDFLAGS only, so flags with link-time parts never reach the shared
> object. With -fprofile-instr-generate the agent's __profc counters had
> no __llvm_profile runtime to write them, and its files showed 0.00% in
> the coverage report.
>
> Pass EXTRA_CFLAGS at link time, as the dlfilter rule already does.
>
> Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

This was applied to the perf-tools-next, thanks!

Best regards
Namhyung