Lines Matching refs:arg_spec
119 struct __bpf_usdt_arg_spec *arg_spec;
139 arg_spec = &spec->args[arg_num];
140 switch (arg_spec->arg_type) {
143 * value is recorded in arg_spec->val_off directly.
145 val = arg_spec->val_off;
151 * record offsetof(struct pt_regs, <regname>) in arg_spec->reg_off.
153 err = bpf_probe_read_kernel(&val, sizeof(val), (void *)ctx + arg_spec->reg_off);
161 * is in arg_spec->val_off. We first fetch register contents
165 err = bpf_probe_read_kernel(&val, sizeof(val), (void *)ctx + arg_spec->reg_off);
168 err = bpf_probe_read_user(&val, sizeof(val), (void *)val + arg_spec->val_off);
172 val >>= arg_spec->arg_bitshift;
183 val <<= arg_spec->arg_bitshift;
184 if (arg_spec->arg_signed)
185 val = ((long)val) >> arg_spec->arg_bitshift;
187 val = val >> arg_spec->arg_bitshift;