Home
last modified time | relevance | path

Searched refs:reg (Results 1 – 16 of 16) sorted by relevance

/kernel/bpf/
Dverifier.c199 struct bpf_reg_state *reg);
202 static bool is_trusted_reg(const struct bpf_reg_state *reg);
411 struct bpf_reg_state *reg, in verbose_invalid_scalar() argument
418 if (!tnum_is_unknown(reg->var_off)) { in verbose_invalid_scalar()
419 tnum_strn(tn_buf, sizeof(tn_buf), reg->var_off); in verbose_invalid_scalar()
448 static bool reg_not_null(const struct bpf_reg_state *reg) in reg_not_null() argument
452 type = reg->type; in reg_not_null()
462 (type == PTR_TO_BTF_ID && is_trusted_reg(reg)) || in reg_not_null()
476 static struct btf_record *reg_btf_record(const struct bpf_reg_state *reg) in reg_btf_record() argument
481 if (reg->type == PTR_TO_MAP_VALUE) { in reg_btf_record()
[all …]
Dbtf.c6387 const struct bpf_reg_state *reg, in btf_struct_access() argument
6392 const struct btf *btf = reg->btf; in btf_struct_access()
6395 u32 id = reg->btf_id; in btf_struct_access()
6398 while (type_is_alloc(reg->type)) { in btf_struct_access()
6429 if (type_is_alloc(reg->type)) in btf_struct_access()
6806 struct bpf_reg_state *reg = &regs[regno]; in btf_check_func_arg_match() local
6810 if (reg->type == SCALAR_VALUE) in btf_check_func_arg_match()
6825 ret = check_func_arg_reg_off(env, reg, regno, arg_type); in btf_check_func_arg_match()
6833 if (reg->type != PTR_TO_CTX) { in btf_check_func_arg_match()
6852 if (check_mem_reg(env, reg, regno, type_size)) in btf_check_func_arg_match()
[all …]
Dbpf_struct_ops.c528 err = st_ops->reg(kdata); in bpf_struct_ops_map_update_elem()
895 err = st_map->st_ops->reg(st_map->kvalue.data); in bpf_struct_ops_link_create()
/kernel/trace/
Dtrace_event_perf.c129 ret = tp_event->class->reg(tp_event, TRACE_REG_PERF_REGISTER, NULL); in perf_trace_event_reg()
162 tp_event->class->reg(tp_event, TRACE_REG_PERF_UNREGISTER, NULL); in perf_trace_event_unreg()
184 return tp_event->class->reg(tp_event, TRACE_REG_PERF_OPEN, p_event); in perf_trace_event_open()
190 tp_event->class->reg(tp_event, TRACE_REG_PERF_CLOSE, p_event); in perf_trace_event_close()
224 tp_event->class && tp_event->class->reg && in perf_trace_init()
364 if (!tp_event->class->reg(tp_event, TRACE_REG_PERF_ADD, p_event)) { in perf_trace_add()
388 if (!tp_event->class->reg(tp_event, TRACE_REG_PERF_DEL, p_event)) in perf_trace_del()
Dtrace_events_user.c864 *user_event_enabler_create(struct user_reg *reg, struct user_event *user, in user_event_enabler_create() argument
869 unsigned long uaddr = (unsigned long)reg->enable_addr; in user_event_enabler_create()
884 enabler->values = reg->enable_bit; in user_event_enabler_create()
887 if (reg->enable_size == 4) in user_event_enabler_create()
2084 user->class.reg = user_event_reg; in user_event_parse()
2387 struct user_reg reg; in user_events_ioctl_reg() local
2394 ret = user_reg_get(ureg, &reg); in user_events_ioctl_reg()
2405 if (current_user_event_enabler_exists((unsigned long)reg.enable_addr, in user_events_ioctl_reg()
2406 reg.enable_bit)) in user_events_ioctl_reg()
2409 name = strndup_user((const char __user *)(uintptr_t)reg.name_args, in user_events_ioctl_reg()
[all …]
Dtrace_events_trigger.c939 return cmd_ops->reg(glob, trigger_data, file); in event_trigger_register()
1423 .reg = register_trigger,
1434 .reg = register_trigger,
1512 .reg = register_snapshot_trigger,
1608 .reg = register_trigger,
1939 .reg = event_enable_register_trigger,
1949 .reg = event_enable_register_trigger,
Dtrace_events.c654 call->class->reg(call, TRACE_REG_UNREGISTER, file); in __ftrace_event_enable_disable()
700 ret = call->class->reg(call, TRACE_REG_REGISTER, file); in __ftrace_event_enable_disable()
1042 if (!name || !call->class || !call->class->reg) in __ftrace_set_clr_event_nolock()
1234 if (call->class && call->class->reg && in t_next()
1464 !trace_event_name(call) || !call->class || !call->class->reg) in system_enable_read()
2464 if (call->class->reg && strcmp(name, "enable") == 0) { in event_callback()
2487 if (call->event.type && call->class->reg && in event_callback()
2511 if (call->event.type && call->class->reg && in event_callback()
3255 if (!file || !file->event_call->class->reg || in find_event_file()
Dtrace_export.c176 .reg = regfn, \
Dtrace_syscalls.c486 .reg = syscall_enter_register,
494 .reg = syscall_exit_register,
Dtrace_eprobe.c521 .reg = eprobe_trigger_reg_func,
768 call->class->reg = eprobe_register; in init_trace_eprobe_call()
Dtrace_fprobe.c642 call->class->reg = fprobe_register; in init_trace_event_call()
Dtrace.h1817 int (*reg)(char *glob, member
Dtrace_uprobe.c1562 call->class->reg = trace_uprobe_register; in init_trace_event_call()
Dtrace_kprobe.c1742 call->class->reg = kprobe_register; in init_trace_event_call()
Dtrace_events_synth.c891 call->class->reg = trace_event_reg; in register_synth_event()
Dtrace_events_hist.c6715 .reg = hist_register_trigger,
6830 .reg = event_enable_register_trigger,
6841 .reg = event_enable_register_trigger,