Lines Matching defs:tp_format

360 		et->fmt = calloc(evsel->tp_format->format.nr_fields, sizeof(struct syscall_arg_fmt));
1216 struct tep_event *tp_format;
1837 sc->tp_format = trace_event__tp_format("syscalls", tp_name);
1839 if (IS_ERR(sc->tp_format) && sc->fmt && sc->fmt->alias) {
1841 sc->tp_format = trace_event__tp_format("syscalls", tp_name);
1848 if (IS_ERR(sc->tp_format)) {
1850 return PTR_ERR(sc->tp_format);
1853 if (syscall__alloc_arg_fmts(sc, IS_ERR(sc->tp_format) ?
1854 RAW_SYSCALL_ARGS_NUM : sc->tp_format->format.nr_fields))
1857 sc->args = sc->tp_format->format.fields;
1879 syscall_arg_fmt__init_array(fmt, evsel->tp_format->format.fields);
2100 } else if (IS_ERR(sc->tp_format)) {
2742 struct tep_format_field *field = evsel->tp_format->format.fields;
2868 } else if (evsel->tp_format) {
2869 if (strncmp(evsel->tp_format->name, "sys_enter_", 10) ||
2872 event_format__fprintf(evsel->tp_format, sample->cpu,
3689 if (evsel->tp_format == NULL || fmt == NULL)
3692 for (field = evsel->tp_format->format.fields; field; field = field->next, ++fmt)
4443 if (strcmp(evsel->tp_format->format.fields->name, "__syscall_nr") == 0 ||
4444 strcmp(evsel->tp_format->format.fields->name, "nr") == 0)
4447 memcpy(fmt + skip, scfmt->arg, (evsel->tp_format->format.nr_fields - skip) * sizeof(*fmt));
4457 if (evsel->priv || !evsel->tp_format)
4460 if (strcmp(evsel->tp_format->system, "syscalls")) {
4468 if (!strncmp(evsel->tp_format->name, "sys_enter_", 10)) {
4474 evsel__set_syscall_arg_fmt(evsel, evsel->tp_format->name + sizeof("sys_enter_") - 1);
4475 } else if (!strncmp(evsel->tp_format->name, "sys_exit_", 9)) {
4481 evsel__set_syscall_arg_fmt(evsel, evsel->tp_format->name + sizeof("sys_exit_") - 1);