Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234463
b: refs/heads/master
c: 8635bf6
h: refs/heads/master
i:
  234461: da9cc7b
  234459: 909b6e0
  234455: b84643f
  234447: 500ca51
  234431: 21d26d6
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Feb 22, 2011
1 parent 4f3c7f8 commit 5ffca27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 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: e603dc15072c7fec0ae263597e6dabc3bb4c5c5b
refs/heads/master: 8635bf6ea3402154eec64763e6ed14972013c1c1
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/probe-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,7 @@ 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; i++) {
ret = __add_probe_trace_events(pkgs[i].pev, pkgs[i].tevs,
pkgs[i].ntevs, force_add);
if (ret < 0)
Expand Down
5 changes: 2 additions & 3 deletions trunk/tools/perf/util/probe-finder.c
Original file line number Diff line number Diff line change
Expand Up @@ -1462,8 +1462,7 @@ static int find_probes(int fd, struct probe_finder *pf)
off = 0;
line_list__init(&pf->lcache);
/* Loop on CUs (Compilation Unit) */
while (!dwarf_nextcu(dbg, off, &noff, &cuhl, NULL, NULL, NULL) &&
ret >= 0) {
while (!dwarf_nextcu(dbg, off, &noff, &cuhl, NULL, NULL, NULL)) {
/* Get the DIE(Debugging Information Entry) of this CU */
diep = dwarf_offdie(dbg, off + cuhl, &pf->cu_die);
if (!diep)
Expand All @@ -1484,7 +1483,7 @@ 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)
if (ret < 0)
break;
}
off = noff;
Expand Down

0 comments on commit 5ffca27

Please sign in to comment.