Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185905
b: refs/heads/master
c: 81cb8aa
h: refs/heads/master
i:
  185903: e718834
v: v3
  • Loading branch information
Masami Hiramatsu authored and Ingo Molnar committed Feb 25, 2010
1 parent 45434a8 commit b7247e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 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: 3cb8bc6ac95ff86147d11ee1d36d18e1ddf3637c
refs/heads/master: 81cb8aa327b5923b38eccc795c8b7170be20b9ff
2 changes: 1 addition & 1 deletion trunk/tools/perf/builtin-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ int cmd_probe(int argc, const char **argv, const char *prefix __used)
continue;

lseek(fd, SEEK_SET, 0);
ret = find_probepoint(fd, pp);
ret = find_probe_point(fd, pp);
if (ret > 0)
continue;
if (ret == 0) { /* No error but failed to find probe point. */
Expand Down
12 changes: 6 additions & 6 deletions trunk/tools/perf/util/probe-finder.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ static void free_current_frame_base(struct probe_finder *pf)
}

/* Show a probe point to output buffer */
static void show_probepoint(Dwarf_Die sp_die, Dwarf_Signed offs,
struct probe_finder *pf)
static void show_probe_point(Dwarf_Die sp_die, Dwarf_Signed offs,
struct probe_finder *pf)
{
struct probe_point *pp = pf->pp;
char *name;
Expand Down Expand Up @@ -585,7 +585,7 @@ static int probeaddr_callback(struct die_link *dlink, void *data)
/* Check the address is in this subprogram */
if (tag == DW_TAG_subprogram &&
die_within_subprogram(dlink->die, pf->addr, &offs)) {
show_probepoint(dlink->die, offs, pf);
show_probe_point(dlink->die, offs, pf);
return 1;
}
return 0;
Expand Down Expand Up @@ -668,7 +668,7 @@ static int probefunc_callback(struct die_link *dlink, void *data)
pf->addr = die_get_entrypc(dlink->die);
pf->addr += pp->offset;
/* TODO: Check the address in this function */
show_probepoint(dlink->die, pp->offset, pf);
show_probe_point(dlink->die, pp->offset, pf);
return 1; /* Exit; no same symbol in this CU. */
}
} else if (tag == DW_TAG_inlined_subroutine && pf->inl_offs) {
Expand All @@ -691,7 +691,7 @@ static int probefunc_callback(struct die_link *dlink, void *data)
/* Get offset from subprogram */
ret = die_within_subprogram(lk->die, pf->addr, &offs);
DIE_IF(!ret);
show_probepoint(lk->die, offs, pf);
show_probe_point(lk->die, offs, pf);
/* Continue to search */
}
}
Expand All @@ -704,7 +704,7 @@ static void find_probe_point_by_func(struct probe_finder *pf)
}

/* Find a probe point */
int find_probepoint(int fd, struct probe_point *pp)
int find_probe_point(int fd, struct probe_point *pp)
{
Dwarf_Half addr_size = 0;
Dwarf_Unsigned next_cuh = 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/probe-finder.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct line_range {
};

#ifndef NO_LIBDWARF
extern int find_probepoint(int fd, struct probe_point *pp);
extern int find_probe_point(int fd, struct probe_point *pp);
extern int find_line_range(int fd, struct line_range *lr);

/* Workaround for undefined _MIPS_SZLONG bug in libdwarf.h: */
Expand Down

0 comments on commit b7247e0

Please sign in to comment.