Lines Matching defs:pp

73 static char *synthesize_perf_probe_point(struct perf_probe_point *pp);
191 struct perf_probe_point *pp)
193 pp->function = strdup(tp->symbol);
195 if (pp->function == NULL)
198 pp->offset = tp->offset;
199 pp->retprobe = tp->retprobe;
230 struct perf_probe_point *pp)
247 (unsigned long)addr, pp);
258 return convert_to_perf_probe_point(tp, pp);
260 pp->retprobe = tp->retprobe;
636 struct perf_probe_point *pp)
646 return convert_to_perf_probe_point(tp, pp);
789 struct perf_probe_point *pp = &pev->point;
832 pp->file = tmp;
834 pp->function = tmp;
841 pp->lazy_line = strdup(arg);
842 if (pp->lazy_line == NULL)
853 pp->line = strtoul(arg, &tmp, 0);
861 pp->offset = strtoul(arg, &tmp, 0);
869 if (pp->file) {
873 pp->file = strdup(arg);
874 if (pp->file == NULL)
879 pp->retprobe = 1;
894 if (pp->lazy_line && pp->line) {
900 if (pp->lazy_line && pp->offset) {
905 if (pp->line && pp->offset) {
910 if (!pp->line && !pp->lazy_line && pp->file && !pp->function) {
916 if (pp->offset && !pp->function) {
921 if (pp->retprobe && !pp->function) {
926 if ((pp->offset || pp->line || pp->lazy_line) && pp->retprobe) {
933 pp->function, pp->file, pp->line, pp->offset, pp->retprobe,
934 pp->lazy_line);
1236 static char *synthesize_perf_probe_point(struct perf_probe_point *pp)
1247 if (pp->offset) {
1248 ret = e_snprintf(offs, 32, "+%lu", pp->offset);
1252 if (pp->line) {
1253 ret = e_snprintf(line, 32, ":%d", pp->line);
1257 if (pp->file) {
1258 tmp = pp->file;
1261 tmp = strchr(pp->file + len - 30, '/');
1262 tmp = tmp ? tmp + 1 : pp->file + len - 30;
1269 if (pp->function)
1270 ret = e_snprintf(buf, MAX_CMDLEN, "%s%s%s%s%s", pp->function,
1271 offs, pp->retprobe ? "%return" : "", line,
1480 struct perf_probe_point *pp = &pev->point;
1488 if (pp->file)
1489 free(pp->file);
1490 if (pp->function)
1491 free(pp->function);
1492 if (pp->lazy_line)
1493 free(pp->lazy_line);
2282 struct perf_probe_point *pp = &pev->point;
2289 if (!pp->function) {
2294 function = strdup(pp->function);
2325 vaddr += sym->start + pp->offset + map->pgoff;
2326 pp->offset = 0;
2354 free(pp->function);
2355 pp->function = zalloc(sizeof(char *) * MAX_PROBE_ARGS);
2356 if (!pp->function) {
2361 e_snprintf(pp->function, MAX_PROBE_ARGS, "0x%llx", vaddr);