PERF-CHECK(1)
π PERF-CHECK(1) β the perf-check girlies' guide π
okay so bestie, this is perf-check, and it lives in the perf Manual. it's basically the vibe check for your perf build β it tells you whether a feature is even in there or not. no cap, it's the most useful little guy.
β¨ SYNOPSIS β¨
perf check [<options>]
perf check {feature <feature_list>} [<options>]
πΈ DESCRIPTION πΈ
So like, if you run perf check with no subcommands at all? it literally just prints the command usage to the standard output. that's it. that's the whole personality. π«Ά
But the moment you bring feature into the chat, things get iconic β the status of the feature gets printed on standard output (unless you also passed -q, we'll get to her), i.e. whether it's compiled-in/built-in or not.
And here's the main character detail: perf check feature returns with exit status 0 if the feature is built-in, otherwise it returns with exit status 1. so your scripts can just ask and get a yes/no. slay. π
π¦ SUBCOMMANDS π¦
feature
Prints whether feature(s) is compiled-in or not, and also returns with an exit status of 0 if the passed feature(s) are compiled-in, else 1.
It expects a feature list as an argument. It can be a single feature name/macro, or multiple features can also be passed as a comma-separated list β in which case the exit status will be 0 only if all of the passed features are compiled-in. (all of them, bestie. every single one. no partial credit π)
The feature names/macros are case-insensitive. iykyk, you can yell HAVE_LIBTRACEEVENT or whisper libtraceevent, both work.
Example Usage:
perf check feature libtraceevent
perf check feature HAVE_LIBTRACEEVENT
perf check feature libtraceevent,bpf
Supported feature names/macro:
aio/HAVE_AIO_SUPPORTbpf/HAVE_LIBBPF_SUPPORTbpf_skeletons/HAVE_BPF_SKELdebuginfod/HAVE_DEBUGINFOD_SUPPORTdwarf/HAVE_LIBDW_SUPPORTdwarf_getlocations/HAVE_LIBDW_SUPPORTdwarf-unwind/HAVE_DWARF_UNWIND_SUPPORTlibbfd/HAVE_LIBBFD_SUPPORTlibbpf-strings/HAVE_LIBBPF_STRINGS_SUPPORTlibcapstone/HAVE_LIBCAPSTONE_SUPPORTlibdw-dwarf-unwind/HAVE_LIBDW_SUPPORTlibelf/HAVE_LIBELF_SUPPORTlibLLVM/HAVE_LIBLLVM_SUPPORTlibnuma/HAVE_LIBNUMA_SUPPORTlibopencsd/HAVE_CSTRACE_SUPPORTlibperl/HAVE_LIBPERL_SUPPORTlibpfm4/HAVE_LIBPFMlibpython/HAVE_LIBPYTHON_SUPPORTlibslang/HAVE_SLANG_SUPPORTlibtraceevent/HAVE_LIBTRACEEVENTlibunwind/HAVE_LIBUNWIND_SUPPORTlzma/HAVE_LZMA_SUPPORTnuma_num_possible_cpus/HAVE_LIBNUMA_SUPPORTzlib/HAVE_ZLIB_SUPPORTzstd/HAVE_ZSTD_SUPPORT
π OPTIONS π
-q,--quietβ Do not print any messages or warnings.
This can be used along with subcommands such as 'perf check feature' to hide unnecessary output in test scripts, eg. 'perf check feature --quiet libtraceevent'. lowkey the bestie for CI, fr fr β silent but somehow still communicating. π€«
heads up bestie: without a subcommand you get usage text and that's the whole show β the exit-status magic only happens with thefeaturesubcommand. and-qonly hides the printing, the exit status still does its thing. π (that's the good part)
okay that's the whole page, you're now officially certified in perf-check π§β¨ go check some features, queen π
sign-off moment π: this page comes from perf, dated 10/31/2026 β perf 10/31/2026 PERF-CHECK(1), periodt. π
π¦ where this page comes from
- arch rolling: perf 7.3.1-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms