Lines Matching full:spec
578 char spec[0];
583 static struct script_spec *script_spec__new(const char *spec,
586 struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1);
589 strcpy(s->spec, spec);
601 static struct script_spec *script_spec__find(const char *spec)
606 if (strcasecmp(s->spec, spec) == 0)
611 static struct script_spec *script_spec__findnew(const char *spec,
614 struct script_spec *s = script_spec__find(spec);
619 s = script_spec__new(spec, ops);
628 int script_spec_register(const char *spec, struct scripting_ops *ops)
632 s = script_spec__find(spec);
636 s = script_spec__findnew(spec, ops);
643 static struct scripting_ops *script_spec__lookup(const char *spec)
645 struct script_spec *s = script_spec__find(spec);
658 "perf script -s [spec:]script.[spec]):\n\n");
661 fprintf(stderr, " %-42s [%s]\n", s->spec, s->ops->name);
669 char spec[PATH_MAX];
685 strncpy(spec, str, len);
686 spec[len] = '\0';
687 scripting_ops = script_spec__lookup(spec);