Lines Matching defs:tp_format

358 		et->fmt = calloc(evsel->tp_format->format.nr_fields, sizeof(struct syscall_arg_fmt));
1198 struct tep_event *tp_format;
1790 sc->tp_format = trace_event__tp_format("syscalls", tp_name);
1792 if (IS_ERR(sc->tp_format) && sc->fmt && sc->fmt->alias) {
1794 sc->tp_format = trace_event__tp_format("syscalls", tp_name);
1801 if (IS_ERR(sc->tp_format)) {
1803 return PTR_ERR(sc->tp_format);
1806 if (syscall__alloc_arg_fmts(sc, IS_ERR(sc->tp_format) ?
1807 RAW_SYSCALL_ARGS_NUM : sc->tp_format->format.nr_fields))
1810 sc->args = sc->tp_format->format.fields;
1832 syscall_arg_fmt__init_array(fmt, evsel->tp_format->format.fields);
2053 } else if (IS_ERR(sc->tp_format)) {
2685 struct tep_format_field *field = evsel->tp_format->format.fields;
2811 } else if (evsel->tp_format) {
2812 if (strncmp(evsel->tp_format->name, "sys_enter_", 10) ||
2815 event_format__fprintf(evsel->tp_format, sample->cpu,
3768 if (evsel->tp_format == NULL || fmt == NULL)
3771 for (field = evsel->tp_format->format.fields; field; field = field->next, ++fmt)
4520 if (strcmp(evsel->tp_format->format.fields->name, "__syscall_nr") == 0 ||
4521 strcmp(evsel->tp_format->format.fields->name, "nr") == 0)
4524 memcpy(fmt + skip, scfmt->arg, (evsel->tp_format->format.nr_fields - skip) * sizeof(*fmt));
4534 if (evsel->priv || !evsel->tp_format)
4537 if (strcmp(evsel->tp_format->system, "syscalls")) {
4545 if (!strncmp(evsel->tp_format->name, "sys_enter_", 10)) {
4551 evsel__set_syscall_arg_fmt(evsel, evsel->tp_format->name + sizeof("sys_enter_") - 1);
4552 } else if (!strncmp(evsel->tp_format->name, "sys_exit_", 9)) {
4558 evsel__set_syscall_arg_fmt(evsel, evsel->tp_format->name + sizeof("sys_exit_") - 1);