Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234461
b: refs/heads/master
c: fbee632
h: refs/heads/master
i:
  234459: 909b6e0
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Feb 22, 2011
1 parent d2771cb commit da9cc7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a3d1ee10d1bf4520af3d44c1aa6cd46956ec4fd7
refs/heads/master: fbee632d0ca9f4073a3fefb9a843eac8af036b0f
5 changes: 4 additions & 1 deletion trunk/tools/perf/util/probe-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1832,9 +1832,12 @@ int add_perf_probe_events(struct perf_probe_event *pevs, int npevs,
}

/* Loop 2: add all events */
for (i = 0; i < npevs && ret >= 0; i++)
for (i = 0; i < npevs && ret >= 0; i++) {
ret = __add_probe_trace_events(pkgs[i].pev, pkgs[i].tevs,
pkgs[i].ntevs, force_add);
if (ret < 0)
break;
}
end:
/* Loop 3: cleanup and free trace events */
for (i = 0; i < npevs; i++) {
Expand Down
4 changes: 3 additions & 1 deletion trunk/tools/perf/util/probe-finder.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ static int probe_point_line_walker(const char *fname, int lineno,
ret = call_probe_finder(NULL, pf);

/* Continue if no error, because the line will be in inline function */
return ret < 0 ?: 0;
return ret < 0 ? ret : 0;
}

/* Find probe point from its line number */
Expand Down Expand Up @@ -1484,6 +1484,8 @@ static int find_probes(int fd, struct probe_finder *pf)
pf->lno = pp->line;
ret = find_probe_point_by_line(pf);
}
if (ret != DWARF_CB_OK)
break;
}
off = noff;
}
Expand Down

0 comments on commit da9cc7b

Please sign in to comment.