Lines Matching refs:offset

183 void __trace_probe_log_err(int offset, int err_type)  in __trace_probe_log_err()  argument
210 offset = 0; in __trace_probe_log_err()
224 trace_probe_err_text, err_type, pos + offset); in __trace_probe_log_err()
230 int traceprobe_split_symbol_offset(char *symbol, long *offset) in traceprobe_split_symbol_offset() argument
235 if (!offset) in traceprobe_split_symbol_offset()
240 ret = kstrtol(tmp, 0, offset); in traceprobe_split_symbol_offset()
245 *offset = 0; in traceprobe_split_symbol_offset()
270 char *buf, int offset) in traceprobe_parse_event_name() argument
281 trace_probe_log_err(offset, NO_GROUP_NAME); in traceprobe_parse_event_name()
285 trace_probe_log_err(offset, GROUP_TOO_LONG); in traceprobe_parse_event_name()
290 trace_probe_log_err(offset, BAD_GROUP_NAME); in traceprobe_parse_event_name()
295 offset += slash - event + 1; in traceprobe_parse_event_name()
304 trace_probe_log_err(offset, NO_EVENT_NAME); in traceprobe_parse_event_name()
307 trace_probe_log_err(offset, EVENT_TOO_LONG); in traceprobe_parse_event_name()
311 trace_probe_log_err(offset, BAD_EVENT_NAME); in traceprobe_parse_event_name()
396 trace_probe_log_err(ctx->offset, TOO_MANY_OPS); in check_prepare_btf_string_fetch()
403 code->offset = 0; in check_prepare_btf_string_fetch()
408 trace_probe_log_err(ctx->offset, BAD_TYPE4STR); in check_prepare_btf_string_fetch()
536 trace_probe_log_err(ctx->offset + field - varname, BAD_HYPHEN); in split_next_field()
563 trace_probe_log_err(ctx->offset, NO_PTR_STRCT); in parse_btf_field()
569 trace_probe_log_err(ctx->offset, BAD_BTF_TID); in parse_btf_field()
585 trace_probe_log_err(ctx->offset, BAD_BTF_TID); in parse_btf_field()
589 trace_probe_log_err(ctx->offset, NO_BTF_FIELD); in parse_btf_field()
597 bitoffs += BTF_MEMBER_BIT_OFFSET(field->offset); in parse_btf_field()
598 ctx->last_bitsize = BTF_MEMBER_BITFIELD_SIZE(field->offset); in parse_btf_field()
600 bitoffs += field->offset; in parse_btf_field()
606 trace_probe_log_err(ctx->offset, BAD_BTF_TID); in parse_btf_field()
610 ctx->offset += next - fieldname; in parse_btf_field()
615 trace_probe_log_err(ctx->offset, TOO_MANY_OPS); in parse_btf_field()
619 code->offset = bitoffs / 8; in parse_btf_field()
650 trace_probe_log_err(ctx->offset + field - varname, in parse_btf_arg()
660 trace_probe_log_err(ctx->offset, NO_RETVAL); in parse_btf_arg()
667 trace_probe_log_err(ctx->offset + field - varname, in parse_btf_arg()
677 trace_probe_log_err(ctx->offset, NO_BTF_ENTRY); in parse_btf_arg()
700 code->offset = ret; in parse_btf_arg()
706 trace_probe_log_err(ctx->offset, NO_BTFARG); in parse_btf_arg()
712 trace_probe_log_err(ctx->offset, BAD_BTF_TID); in parse_btf_arg()
720 ctx->offset += field - varname; in parse_btf_arg()
748 trace_probe_log_err(ctx->offset, TOO_MANY_OPS); in parse_btf_bitfield()
775 trace_probe_log_err(ctx->offset, NOSUP_BTFARG); in parse_btf_arg()
782 trace_probe_log_err(ctx->offset, NOSUP_BTFARG); in parse_btf_bitfield()
800 static void store_entry_arg_at(struct fetch_insn *code, int argnum, int offset) in store_entry_arg_at() argument
805 code[1].offset = offset; in store_entry_arg_at()
824 if (earg->code[i].offset > max_offset) in get_entry_arg_max_offset()
825 max_offset = earg->code[i].offset; in get_entry_arg_max_offset()
837 int i, offset, last_offset = 0; in __store_entry_arg() local
881 return earg->code[i + 1].offset; in __store_entry_arg()
891 last_offset = earg->code[i - 1].offset; in __store_entry_arg()
894 offset = last_offset + sizeof(unsigned long); in __store_entry_arg()
895 store_entry_arg_at(&earg->code[i], argnum, offset); in __store_entry_arg()
896 return offset; in __store_entry_arg()
926 *(unsigned long *)((unsigned long)edata + code->offset) = val; in store_trace_entry_data()
966 ctx->offset = 0; in NOKPROBE_SYMBOL()
1042 code->offset = ret; in NOKPROBE_SYMBOL()
1052 __trace_probe_log_err(ctx->offset, err); in NOKPROBE_SYMBOL()
1090 long offset = 0; in parse_probe_arg() local
1102 trace_probe_log_err(ctx->offset, BAD_VAR); in parse_probe_arg()
1111 trace_probe_log_err(ctx->offset, BAD_REG_NAME); in parse_probe_arg()
1118 trace_probe_log_err(ctx->offset, BAD_MEM_ADDR); in parse_probe_arg()
1127 trace_probe_log_err(ctx->offset, FILE_ON_KPROBE); in parse_probe_arg()
1130 ret = kstrtol(arg + 2, 0, &offset); in parse_probe_arg()
1132 trace_probe_log_err(ctx->offset, BAD_FILE_OFFS); in parse_probe_arg()
1137 code->immediate = (unsigned long)offset; // imm64? in parse_probe_arg()
1141 trace_probe_log_err(ctx->offset, SYM_ON_UPROBE); in parse_probe_arg()
1150 trace_probe_log_err(ctx->offset, TOO_MANY_OPS); in parse_probe_arg()
1158 trace_probe_log_err(ctx->offset, TOO_MANY_OPS); in parse_probe_arg()
1163 code->offset = offset; in parse_probe_arg()
1177 trace_probe_log_err(ctx->offset, DEREF_NEED_BRACE); in parse_probe_arg()
1181 ret = kstrtol(arg, 0, &offset); in parse_probe_arg()
1183 trace_probe_log_err(ctx->offset, BAD_DEREF_OFFS); in parse_probe_arg()
1186 ctx->offset += (tmp + 1 - arg) + (arg[0] != '-' ? 1 : 0); in parse_probe_arg()
1190 trace_probe_log_err(ctx->offset + strlen(arg), in parse_probe_arg()
1195 int cur_offs = ctx->offset; in parse_probe_arg()
1201 ctx->offset = cur_offs; in parse_probe_arg()
1204 trace_probe_log_err(ctx->offset, COMM_CANT_DEREF); in parse_probe_arg()
1208 trace_probe_log_err(ctx->offset, TOO_MANY_OPS); in parse_probe_arg()
1214 code->offset = offset; in parse_probe_arg()
1221 ret = __parse_imm_string(arg + 2, &tmp, ctx->offset + 2); in parse_probe_arg()
1229 trace_probe_log_err(ctx->offset + 1, BAD_IMM); in parse_probe_arg()
1238 trace_probe_log_err(ctx->offset, NOSUP_BTFARG); in parse_probe_arg()
1247 trace_probe_log_err(ctx->offset, BAD_FETCH_ARG); in parse_probe_arg()
1305 trace_probe_log_err(ctx->offset + offs, in parse_probe_arg_type()
1309 trace_probe_log_err(ctx->offset + t3 + 1 - arg, in parse_probe_arg_type()
1315 trace_probe_log_err(ctx->offset + t2 - arg, in parse_probe_arg_type()
1320 trace_probe_log_err(ctx->offset + t2 - arg, in parse_probe_arg_type()
1337 trace_probe_log_err(ctx->offset + offs, NEED_STRING_TYPE); in parse_probe_arg_type()
1345 trace_probe_log_err(ctx->offset + offs, BAD_TYPE); in parse_probe_arg_type()
1369 trace_probe_log_err(ctx->offset + type_offset, in finalize_fetch_insn()
1377 trace_probe_log_err(ctx->offset + type_offset, in finalize_fetch_insn()
1397 trace_probe_log_err(ctx->offset, TOO_MANY_OPS); in finalize_fetch_insn()
1421 trace_probe_log_err(ctx->offset, TOO_MANY_OPS); in finalize_fetch_insn()
1436 trace_probe_log_err(ctx->offset + type_offset, BAD_BITFIELD); in finalize_fetch_insn()
1452 trace_probe_log_err(ctx->offset + type_offset, BAD_STRING); in finalize_fetch_insn()
1457 trace_probe_log_err(ctx->offset, TOO_MANY_OPS); in finalize_fetch_insn()
1482 trace_probe_log_err(ctx->offset, ARG_TOO_LONG); in traceprobe_parse_probe_arg_body()
1485 trace_probe_log_err(ctx->offset, NO_ARG_BODY); in traceprobe_parse_probe_arg_body()
1523 parg->offset = *size; in traceprobe_parse_probe_arg_body()
1640 ctx->offset = body - arg; in traceprobe_parse_probe_arg()
1863 long offset; in traceprobe_update_arg() local
1877 &offset); in traceprobe_update_arg()
1887 code[1].immediate += offset; in traceprobe_update_arg()
1986 size_t offset, struct trace_probe *tp) in traceprobe_define_arg_fields() argument
2001 offset + parg->offset, size, in traceprobe_define_arg_fields()
2264 if (!a->type->print(s, data + a->offset, field)) in trace_probe_print_args()
2269 p = data + a->offset; in trace_probe_print_args()