/kernel/bpf/ |
D | verifier.c | 199 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 …]
|
D | btf.c | 6387 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 = ®s[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 …]
|
D | bpf_struct_ops.c | 528 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/ |
D | trace_event_perf.c | 129 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()
|
D | trace_events_user.c | 864 *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, ®); 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 …]
|
D | trace_events_trigger.c | 939 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,
|
D | trace_events.c | 654 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()
|
D | trace_export.c | 176 .reg = regfn, \
|
D | trace_syscalls.c | 486 .reg = syscall_enter_register, 494 .reg = syscall_exit_register,
|
D | trace_eprobe.c | 521 .reg = eprobe_trigger_reg_func, 768 call->class->reg = eprobe_register; in init_trace_eprobe_call()
|
D | trace_fprobe.c | 642 call->class->reg = fprobe_register; in init_trace_event_call()
|
D | trace.h | 1817 int (*reg)(char *glob, member
|
D | trace_uprobe.c | 1562 call->class->reg = trace_uprobe_register; in init_trace_event_call()
|
D | trace_kprobe.c | 1742 call->class->reg = kprobe_register; in init_trace_event_call()
|
D | trace_events_synth.c | 891 call->class->reg = trace_event_reg; in register_synth_event()
|
D | trace_events_hist.c | 6715 .reg = hist_register_trigger, 6830 .reg = event_enable_register_trigger, 6841 .reg = event_enable_register_trigger,
|