From bb3727ce5a1424c225085da0656f6c4ce6485686 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 23 Aug 2025 17:10:51 -0700 Subject: [PATCH] ac/rgp: Warn when RGP capture can't be saved without libelf Without this, mesa build on some distros may silently produce a version of radv that silently refuses to save RGP traces Signed-off-by: Arseny Kapoulkine Part-of: --- src/amd/common/ac_rgp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/common/ac_rgp.c b/src/amd/common/ac_rgp.c index c5783ac0eaf..fe92b7a726c 100644 --- a/src/amd/common/ac_rgp.c +++ b/src/amd/common/ac_rgp.c @@ -1207,6 +1207,7 @@ ac_dump_rgp_capture(const struct radeon_info *info, struct ac_sqtt_trace *sqtt_t const struct ac_spm_trace *spm_trace) { #if !defined(USE_LIBELF) + fprintf(stderr, "RGP capture can't be saved: libelf was not enabled during build\n"); return -1; #else char filename[2048];