Lines Matching defs:arg

1039 		 * uprobe. We reuse spec when USDT arg spec is identical. We
1188 static int parse_usdt_arg(const char *arg_str, int arg_num, struct usdt_arg_spec *arg, int *arg_sz);
1192 struct usdt_arg_spec *arg;
1207 arg = &spec->args[spec->arg_cnt];
1208 len = parse_usdt_arg(s, spec->arg_cnt, arg, &arg_sz);
1212 arg->arg_signed = arg_sz < 0;
1218 arg->arg_bitshift = 64 - arg_sz * 8;
1221 pr_warn("usdt: unsupported arg #%d (spec '%s') size: %d\n",
1282 static int parse_usdt_arg(const char *arg_str, int arg_num, struct usdt_arg_spec *arg, int *arg_sz)
1290 arg->arg_type = USDT_ARG_REG_DEREF;
1291 arg->val_off = off;
1295 arg->reg_off = reg_off;
1298 arg->arg_type = USDT_ARG_REG_DEREF;
1299 arg->val_off = 0;
1303 arg->reg_off = reg_off;
1306 arg->arg_type = USDT_ARG_REG;
1307 arg->val_off = 0;
1312 arg->reg_off = reg_off;
1315 arg->arg_type = USDT_ARG_CONST;
1316 arg->val_off = off;
1317 arg->reg_off = 0;
1319 pr_warn("usdt: unrecognized arg #%d spec '%s'\n", arg_num, arg_str);
1330 static int parse_usdt_arg(const char *arg_str, int arg_num, struct usdt_arg_spec *arg, int *arg_sz)
1338 arg->arg_type = USDT_ARG_REG_DEREF;
1339 arg->val_off = off;
1344 arg->reg_off = offsetof(user_pt_regs, gprs[reg]);
1347 arg->arg_type = USDT_ARG_REG;
1348 arg->val_off = 0;
1353 arg->reg_off = offsetof(user_pt_regs, gprs[reg]);
1356 arg->arg_type = USDT_ARG_CONST;
1357 arg->val_off = off;
1358 arg->reg_off = 0;
1360 pr_warn("usdt: unrecognized arg #%d spec '%s'\n", arg_num, arg_str);
1383 static int parse_usdt_arg(const char *arg_str, int arg_num, struct usdt_arg_spec *arg, int *arg_sz)
1391 arg->arg_type = USDT_ARG_REG_DEREF;
1392 arg->val_off = off;
1396 arg->reg_off = reg_off;
1399 arg->arg_type = USDT_ARG_REG_DEREF;
1400 arg->val_off = 0;
1404 arg->reg_off = reg_off;
1407 arg->arg_type = USDT_ARG_CONST;
1408 arg->val_off = off;
1409 arg->reg_off = 0;
1412 arg->arg_type = USDT_ARG_REG;
1413 arg->val_off = 0;
1417 arg->reg_off = reg_off;
1419 pr_warn("usdt: unrecognized arg #%d spec '%s'\n", arg_num, arg_str);
1477 static int parse_usdt_arg(const char *arg_str, int arg_num, struct usdt_arg_spec *arg, int *arg_sz)
1485 arg->arg_type = USDT_ARG_REG_DEREF;
1486 arg->val_off = off;
1490 arg->reg_off = reg_off;
1493 arg->arg_type = USDT_ARG_CONST;
1494 arg->val_off = off;
1495 arg->reg_off = 0;
1498 arg->arg_type = USDT_ARG_REG;
1499 arg->val_off = 0;
1503 arg->reg_off = reg_off;
1505 pr_warn("usdt: unrecognized arg #%d spec '%s'\n", arg_num, arg_str);
1548 static int parse_usdt_arg(const char *arg_str, int arg_num, struct usdt_arg_spec *arg, int *arg_sz)
1557 arg->arg_type = USDT_ARG_REG_DEREF;
1558 arg->val_off = off;
1562 arg->reg_off = reg_off;
1565 arg->arg_type = USDT_ARG_REG_DEREF;
1566 arg->val_off = 0;
1570 arg->reg_off = reg_off;
1573 arg->arg_type = USDT_ARG_CONST;
1574 arg->val_off = off;
1575 arg->reg_off = 0;
1578 arg->arg_type = USDT_ARG_REG;
1579 arg->val_off = 0;
1583 arg->reg_off = reg_off;
1585 pr_warn("usdt: unrecognized arg #%d spec '%s'\n", arg_num, arg_str);
1594 static int parse_usdt_arg(const char *arg_str, int arg_num, struct usdt_arg_spec *arg, int *arg_sz)