Lines Matching full:feature
12 static const char * const check_subcommands[] = { "feature", NULL };
21 "perf check feature <feature_list>",
79 /* Helper function to print status of a feature along with name/macro */
80 void feature_status__printf(const struct feature_status *feature) in feature_status__printf() argument
82 const char *name = feature->name, *macro = feature->macro, in feature_status__printf()
83 *status = feature->is_builtin ? "on" : "OFF"; in feature_status__printf()
89 if (!feature->is_builtin && feature->tip) in feature_status__printf()
90 printf(" ( tip: %s )", feature->tip); in feature_status__printf()
96 * check whether "feature" is built-in with perf
99 * 0: NOT built-in or Feature not known
102 static int has_support(const char *feature) in has_support() argument
105 if ((strcasecmp(feature, supported_features[i].name) == 0) || in has_support()
106 (strcasecmp(feature, supported_features[i].macro) == 0)) { in has_support()
114 …pr_err("Unknown feature '%s', please use 'perf version --build-options' to see which ones are avai… in has_support()
121 * Usage: 'perf check feature <feature_list>'
123 * <feature_list> can be a single feature name/macro, or a comma-separated list
124 * of feature names/macros
145 pr_err("Too many arguments passed to 'perf check feature'\n"); in subcommand_feature()
153 pr_err("ERROR: failed to allocate memory for feature list\n"); in subcommand_feature()
177 if (strcmp(argv[0], "feature") == 0) in cmd_check()