Lines Matching defs:fmt
295 * fmt: for all the other tracepoints
299 struct syscall_arg_fmt *fmt;
312 zfree(&et->fmt);
345 return et->fmt;
359 if (et->fmt == NULL) {
360 et->fmt = calloc(evsel->tp_format->format.nr_fields, sizeof(struct syscall_arg_fmt));
361 if (et->fmt == NULL)
705 return scnprintf(bf, size, "\"%-.*s\"", arg->fmt->nr_entries ?: arg->len, arg->val);
1173 const struct syscall_fmt *fmt = fmtp;
1174 return strcmp(name, fmt->name);
1228 const struct syscall_fmt *fmt;
1691 if (nr_args == RAW_SYSCALL_ARGS_NUM && sc->fmt && sc->fmt->nr_args != 0)
1692 nr_args = sc->fmt->nr_args;
1699 if (sc->fmt)
1700 sc->arg_fmt[idx] = sc->fmt->arg[idx];
1714 const struct syscall_arg_fmt *fmt = fmtp;
1715 return strcmp(name, fmt->name);
1771 const struct syscall_arg_fmt *fmt =
1774 if (fmt) {
1775 arg->scnprintf = fmt->scnprintf;
1776 arg->strtoul = fmt->strtoul;
1834 sc->fmt = syscall_fmt__find(sc->name);
1839 if (IS_ERR(sc->tp_format) && sc->fmt && sc->fmt->alias) {
1840 snprintf(tp_name, sizeof(tp_name), "sys_enter_%s", sc->fmt->alias);
1876 struct syscall_arg_fmt *fmt = evsel__syscall_arg_fmt(evsel);
1878 if (fmt != NULL) {
1879 syscall_arg_fmt__init_array(fmt, evsel->tp_format->format.fields);
2014 static unsigned long syscall_arg_fmt__mask_val(struct syscall_arg_fmt *fmt, struct syscall_arg *arg, unsigned long val)
2016 if (fmt && fmt->mask_val)
2017 return fmt->mask_val(arg, val);
2022 static size_t syscall_arg_fmt__scnprintf_val(struct syscall_arg_fmt *fmt, char *bf, size_t size,
2025 if (fmt && fmt->scnprintf) {
2027 if (fmt->parm)
2028 arg->parm = fmt->parm;
2029 return fmt->scnprintf(bf, size, arg);
2070 arg.fmt = &sc->arg_fmt[arg.idx];
2554 if (sc->fmt == NULL) {
2567 } else if (ret == 0 && sc->fmt->timeout)
2579 } else if (sc->fmt->hexret)
2581 else if (sc->fmt->errpid) {
2764 syscall_arg.fmt = arg;
3310 if (sc->fmt && sc->fmt->alias) {
3311 scnprintf(default_prog_name, sizeof(default_prog_name), "tp/syscalls/sys_%s_%s", type, sc->fmt->alias);
3339 sc->bpf_prog.sys_enter = trace__find_syscall_bpf_prog(trace, sc, sc->fmt ? sc->fmt->bpf_prog_name.sys_enter : NULL, "enter");
3340 sc->bpf_prog.sys_exit = trace__find_syscall_bpf_prog(trace, sc, sc->fmt ? sc->fmt->bpf_prog_name.sys_exit : NULL, "exit");
3442 pair_prog = trace__find_syscall_bpf_prog(trace, pair, pair->fmt ? pair->fmt->bpf_prog_name.sys_enter : NULL, "enter");
3687 struct syscall_arg_fmt *fmt = __evsel__syscall_arg_fmt(evsel);
3689 if (evsel->tp_format == NULL || fmt == NULL)
3692 for (field = evsel->tp_format->format.fields; field; field = field->next, ++fmt)
3694 return fmt;
3729 struct syscall_arg_fmt *fmt;
3739 fmt = evsel__find_syscall_arg_fmt_by_name(evsel, arg);
3740 if (fmt == NULL) {
3749 if (fmt->strtoul) {
3752 .parm = fmt->parm,
3755 if (fmt->strtoul(right, right_size, &syscall_arg, &val)) {
4435 struct syscall_arg_fmt *fmt = evsel__syscall_arg_fmt(evsel);
4437 if (fmt) {
4447 memcpy(fmt + skip, scfmt->arg, (evsel->tp_format->format.nr_fields - skip) * sizeof(*fmt));
4505 const struct syscall_fmt *fmt;
4526 fmt = syscall_fmt__find_by_alias(s);
4527 if (fmt != NULL) {
4529 s = fmt->name;