Lines Matching defs:tmp

433 				       struct perf_probe_point *tmp)
437 memcpy(tmp, &pev->point, sizeof(*tmp));
439 ret = find_alternative_probe_point(dinfo, tmp, &pev->point, pev->target,
442 memcpy(&pev->point, tmp, sizeof(*tmp));
828 char *tmp;
857 tmp = NULL;
860 tmp = strdup(reloc_sym->name);
861 if (!tmp)
869 tevs[i].point.symbol = tmp;
912 struct perf_probe_point tmp;
939 ret = get_alternative_probe_event(dinfo, pev, &tmp);
947 memcpy(&pev->point, &tmp, sizeof(tmp));
1044 char *tmp;
1073 tmp = lr->path;
1074 ret = find_source_path(tmp, sbuild_id, lr->comp_dir, &lr->path);
1077 if (tmp != lr->path)
1078 free(tmp);
1154 struct perf_probe_point tmp;
1164 ret = get_alternative_probe_event(dinfo, pev, &tmp);
1169 clear_perf_probe_point(&tmp);
1446 char *ptr, *tmp;
1475 tmp = build_id_cache__complement(ptr + 1);
1476 if (tmp) {
1477 pev->target = build_id_cache__origname(tmp);
1478 free(tmp);
1495 tmp = ptr + 1;
1500 arg = tmp;
1528 tmp = NULL;
1530 tmp = strdup_esc(arg);
1531 if (tmp == NULL)
1536 pp->file = tmp;
1538 pp->function = tmp;
1545 * Note that checking length of tmp is not needed
1546 * because when we access tmp[1] we know tmp[0] is '0',
1547 * so tmp[1] should always valid (but could be '\0').
1549 if (tmp && !strncmp(tmp, "0x", 2)) {
1550 pp->abs_address = strtoull(pp->function, &tmp, 0);
1551 if (*tmp != '\0') {
1575 pp->line = strtoul(arg, &tmp, 0);
1576 if (*tmp != '\0') {
1583 pp->offset = strtoul(arg, &tmp, 0);
1584 if (*tmp != '\0') {
1658 char *tmp, *goodname;
1663 tmp = strchr(str, '=');
1664 if (tmp) {
1665 arg->name = strndup(str, tmp - str);
1669 str = tmp + 1;
1672 tmp = strchr(str, '@');
1673 if (tmp && tmp != str && !strcmp(tmp + 1, "user")) { /* user attr */
1678 *tmp = '\0';
1683 tmp = strchr(str, ':');
1684 if (tmp) { /* Type setting */
1685 *tmp = '\0';
1686 arg->type = strdup(tmp + 1);
1692 tmp = strpbrk(str, "-.[");
1693 if (!is_c_varname(str) || !tmp) {
1703 arg->var = strndup(str, tmp - str);
1714 if (*tmp == '[') { /* Array */
1715 str = tmp;
1716 (*fieldp)->index = strtol(str + 1, &tmp, 0);
1718 if (*tmp != ']' || tmp == str + 1) {
1723 tmp++;
1724 if (*tmp == '\0')
1725 tmp = NULL;
1727 if (*tmp == '.') {
1728 str = tmp + 1;
1730 } else if (tmp[1] == '>') {
1731 str = tmp + 2;
1738 tmp = strpbrk(str, "-.[");
1740 if (tmp) {
1741 (*fieldp)->name = strndup(str, tmp - str);
1749 } while (tmp);
2018 char *tmp, *ret = NULL;
2037 tmp = pp->file;
2038 len = strlen(tmp);
2040 tmp = strchr(pp->file + len - 30, '/');
2041 tmp = tmp ? tmp + 1 : pp->file + len - 30;
2043 err = strbuf_addf(&buf, "@%s", tmp);
2057 char *tmp, *ret = NULL;
2067 tmp = synthesize_perf_probe_point(&pev->point);
2068 if (!tmp || strbuf_addstr(&buf, tmp) < 0) {
2069 free(tmp);
2072 free(tmp);
2075 tmp = synthesize_perf_probe_arg(pev->args + i);
2076 if (!tmp || strbuf_addf(&buf, " %s", tmp) < 0) {
2077 free(tmp);
2080 free(tmp);
2643 char tmp[128];
2650 if (e_snprintf(tmp, 128, "%s:%s", tev->group, tev->event) < 0)
2652 return strfilter__compare(filter, tmp);
2973 struct rb_node *tmp;
2985 map__for_each_symbol(map, sym, tmp) {