]> git.ipfire.org Git - thirdparty/linux.git/commit
perf evsel: Add no-libtraceevent stubs for evsel__field() and evsel__common_field()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 16 Jun 2026 19:37:09 +0000 (16:37 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 16 Jun 2026 19:37:09 +0000 (16:37 -0300)
commite22a4228546f7220d0425630abf703fd2ef7c600
treee3350c290eb3f6ca3ce088f3bc1fe5b853f75753
parent542e88a4c6f7b6edd1326ce767d4cb3c2ea9d61d
perf evsel: Add no-libtraceevent stubs for evsel__field() and evsel__common_field()

When building without libtraceevent (NO_LIBTRACEEVENT=1), evsel__field()
and evsel__common_field() are declared but never defined, causing link
errors in any code path that references them.

Add inline stubs that return NULL when HAVE_LIBTRACEEVENT is not defined,
matching the pattern used by other evsel accessor functions.

Cc: Aaron Tomlin <atomlin@atomlin.com>
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.h