Path: blob/master/tools/perf/Documentation/perf-check.txt
26282 views
perf-check(1)1===============23NAME4----5perf-check - check if features are present in perf67SYNOPSIS8--------9[verse]10'perf check' [<options>]11'perf check' {feature <feature_list>} [<options>]1213DESCRIPTION14-----------15With no subcommands given, 'perf check' command just prints the command16usage on the standard output.1718If the subcommand 'feature' is used, then status of feature is printed19on the standard output (unless '-q' is also passed), ie. whether it is20compiled-in/built-in or not.21Also, 'perf check feature' returns with exit status 0 if the feature22is built-in, otherwise returns with exit status 1.2324SUBCOMMANDS25-----------2627feature::2829Print whether feature(s) is compiled-in or not, and also returns with an30exit status of 0, if passed feature(s) are compiled-in, else 1.3132It expects a feature list as an argument. There can be a single feature33name/macro, or multiple features can also be passed as a comma-separated34list, in which case the exit status will be 0 only if all of the passed35features are compiled-in.3637The feature names/macros are case-insensitive.3839Example Usage:40perf check feature libtraceevent41perf check feature HAVE_LIBTRACEEVENT42perf check feature libtraceevent,bpf4344Supported feature names/macro:45aio / HAVE_AIO_SUPPORT46bpf / HAVE_LIBBPF_SUPPORT47bpf_skeletons / HAVE_BPF_SKEL48debuginfod / HAVE_DEBUGINFOD_SUPPORT49dwarf / HAVE_LIBDW_SUPPORT50dwarf_getlocations / HAVE_LIBDW_SUPPORT51dwarf-unwind / HAVE_DWARF_UNWIND_SUPPORT52auxtrace / HAVE_AUXTRACE_SUPPORT53libbfd / HAVE_LIBBFD_SUPPORT54libbpf-strings / HAVE_LIBBPF_STRINGS_SUPPORT55libcapstone / HAVE_LIBCAPSTONE_SUPPORT56libdw-dwarf-unwind / HAVE_LIBDW_SUPPORT57libelf / HAVE_LIBELF_SUPPORT58libnuma / HAVE_LIBNUMA_SUPPORT59libopencsd / HAVE_CSTRACE_SUPPORT60libperl / HAVE_LIBPERL_SUPPORT61libpfm4 / HAVE_LIBPFM62libpython / HAVE_LIBPYTHON_SUPPORT63libslang / HAVE_SLANG_SUPPORT64libtraceevent / HAVE_LIBTRACEEVENT65libunwind / HAVE_LIBUNWIND_SUPPORT66lzma / HAVE_LZMA_SUPPORT67numa_num_possible_cpus / HAVE_LIBNUMA_SUPPORT68zlib / HAVE_ZLIB_SUPPORT69zstd / HAVE_ZSTD_SUPPORT7071OPTIONS72-------73-q::74--quiet::75Do not print any messages or warnings7677This can be used along with subcommands such as 'perf check feature'78to hide unnecessary output in test scripts, eg.79'perf check feature --quiet libtraceevent'808182