Lines Matching defs:fmt

293  * fmt: for all the other tracepoints
297 struct syscall_arg_fmt *fmt;
310 zfree(&et->fmt);
343 return et->fmt;
357 if (et->fmt == NULL) {
358 et->fmt = calloc(evsel->tp_format->format.nr_fields, sizeof(struct syscall_arg_fmt));
359 if (et->fmt == NULL)
705 return scnprintf(bf, size, "\"%-.*s\"", arg->fmt->nr_entries ?: arg->len, arg->val);
1158 const struct syscall_fmt *fmt = fmtp;
1159 return strcmp(name, fmt->name);
1210 struct syscall_fmt *fmt;
1646 if (nr_args == RAW_SYSCALL_ARGS_NUM && sc->fmt && sc->fmt->nr_args != 0)
1647 nr_args = sc->fmt->nr_args;
1654 if (sc->fmt)
1655 sc->arg_fmt[idx] = sc->fmt->arg[idx];
1669 const struct syscall_arg_fmt *fmt = fmtp;
1670 return strcmp(name, fmt->name);
1725 struct syscall_arg_fmt *fmt = syscall_arg_fmt__find_by_name(field->name);
1727 if (fmt) {
1728 arg->scnprintf = fmt->scnprintf;
1729 arg->strtoul = fmt->strtoul;
1787 sc->fmt = syscall_fmt__find(sc->name);
1792 if (IS_ERR(sc->tp_format) && sc->fmt && sc->fmt->alias) {
1793 snprintf(tp_name, sizeof(tp_name), "sys_enter_%s", sc->fmt->alias);
1829 struct syscall_arg_fmt *fmt = evsel__syscall_arg_fmt(evsel);
1831 if (fmt != NULL) {
1832 syscall_arg_fmt__init_array(fmt, evsel->tp_format->format.fields);
1967 static unsigned long syscall_arg_fmt__mask_val(struct syscall_arg_fmt *fmt, struct syscall_arg *arg, unsigned long val)
1969 if (fmt && fmt->mask_val)
1970 return fmt->mask_val(arg, val);
1975 static size_t syscall_arg_fmt__scnprintf_val(struct syscall_arg_fmt *fmt, char *bf, size_t size,
1978 if (fmt && fmt->scnprintf) {
1980 if (fmt->parm)
1981 arg->parm = fmt->parm;
1982 return fmt->scnprintf(bf, size, arg);
2023 arg.fmt = &sc->arg_fmt[arg.idx];
2497 if (sc->fmt == NULL) {
2510 } else if (ret == 0 && sc->fmt->timeout)
2522 } else if (sc->fmt->hexret)
2524 else if (sc->fmt->errpid) {
2707 syscall_arg.fmt = arg;
3252 if (sc->fmt && sc->fmt->alias) {
3253 scnprintf(default_prog_name, sizeof(default_prog_name), "!syscalls:sys_%s_%s", type, sc->fmt->alias);
3281 sc->bpf_prog.sys_enter = trace__find_syscall_bpf_prog(trace, sc, sc->fmt ? sc->fmt->bpf_prog_name.sys_enter : NULL, "enter");
3282 sc->bpf_prog.sys_exit = trace__find_syscall_bpf_prog(trace, sc, sc->fmt ? sc->fmt->bpf_prog_name.sys_exit : NULL, "exit");
3445 pair_prog = trace__find_syscall_bpf_prog(trace, pair, pair->fmt ? pair->fmt->bpf_prog_name.sys_enter : NULL, "enter");
3766 struct syscall_arg_fmt *fmt = __evsel__syscall_arg_fmt(evsel);
3768 if (evsel->tp_format == NULL || fmt == NULL)
3771 for (field = evsel->tp_format->format.fields; field; field = field->next, ++fmt)
3773 return fmt;
3808 struct syscall_arg_fmt *fmt;
3818 fmt = evsel__find_syscall_arg_fmt_by_name(evsel, arg);
3819 if (fmt == NULL) {
3828 if (fmt->strtoul) {
3831 .parm = fmt->parm,
3834 if (fmt->strtoul(right, right_size, &syscall_arg, &val)) {
4512 struct syscall_arg_fmt *fmt = evsel__syscall_arg_fmt(evsel);
4514 if (fmt) {
4524 memcpy(fmt + skip, scfmt->arg, (evsel->tp_format->format.nr_fields - skip) * sizeof(*fmt));
4582 struct syscall_fmt *fmt;
4603 fmt = syscall_fmt__find_by_alias(s);
4604 if (fmt != NULL) {
4606 s = fmt->name;