• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/tools/perf/util/

Lines Matching refs:flags

8 static int opterror(const struct option *opt, const char *reason, int flags)
10 if (flags & OPT_SHORT)
12 if (flags & OPT_UNSET)
18 int flags, const char **arg)
23 } else if ((opt->flags & PARSE_OPT_LASTARG_DEFAULT) && (p->argc == 1 ||
30 return opterror(opt, "requires a value", flags);
35 const struct option *opt, int flags)
38 const int unset = flags & OPT_UNSET;
41 return opterror(opt, "takes no value", flags);
42 if (unset && (opt->flags & PARSE_OPT_NONEG))
43 return opterror(opt, "isn't available", flags);
45 if (!(flags & OPT_SHORT) && p->opt) {
48 if (!(opt->flags & PARSE_OPT_NOARG))
56 return opterror(opt, "takes no value", flags);
97 else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
100 return get_arg(p, opt, flags, (const char **)opt->value);
106 if (opt->flags & PARSE_OPT_NOARG)
108 if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
110 if (get_arg(p, opt, flags, &arg))
119 if (opt->flags & PARSE_OPT_OPTARG && !p->opt) {
123 if (get_arg(p, opt, flags, &arg))
127 return opterror(opt, "expects a numerical value", flags);
135 if (opt->flags & PARSE_OPT_OPTARG && !p->opt) {
139 if (get_arg(p, opt, flags, &arg))
143 return opterror(opt, "expects a numerical value", flags);
151 if (opt->flags & PARSE_OPT_OPTARG && !p->opt) {
155 if (get_arg(p, opt, flags, &arg))
159 return opterror(opt, "expects a numerical value", flags);
167 if (opt->flags & PARSE_OPT_OPTARG && !p->opt) {
171 if (get_arg(p, opt, flags, &arg))
175 return opterror(opt, "expects a numerical value", flags);
209 int flags = 0;
219 return opterror(options, "takes no value", flags);
239 if (!(flags & OPT_UNSET) && *arg_end)
242 abbrev_flags = flags;
247 flags |= OPT_UNSET;
253 flags |= OPT_UNSET;
266 return get_value(p, options, flags);
303 int argc, const char **argv, int flags)
309 ctx->cpidx = ((flags & PARSE_OPT_KEEP_ARGV0) != 0);
310 ctx->flags = flags;
311 if ((flags & PARSE_OPT_KEEP_UNKNOWN) &&
312 (flags & PARSE_OPT_STOP_AT_NON_OPTION))
323 int internal_help = !(ctx->flags & PARSE_OPT_NO_INTERNAL_HELP);
332 if (ctx->flags & PARSE_OPT_STOP_AT_NON_OPTION)
375 if (!(ctx->flags & PARSE_OPT_KEEP_DASHDASH)) {
396 if (!(ctx->flags & PARSE_OPT_KEEP_UNKNOWN))
412 const char * const usagestr[], int flags)
416 parse_options_start(&ctx, argc, argv, flags);
466 if (!full && (opts->flags & PARSE_OPT_HIDDEN))
487 if (opts->flags & PARSE_OPT_OPTARG)
496 if (opts->flags & PARSE_OPT_NOARG)
501 if (opts->flags & PARSE_OPT_OPTARG)
509 if (opts->flags & PARSE_OPT_OPTARG)