diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2010-02-25 08:35:34 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-02-25 11:49:28 -0500 |
commit | 81cb8aa327b5923b38eccc795c8b7170be20b9ff (patch) | |
tree | 156c01818b2b00088d2a50db8c0263338a08186b /tools/perf/util/probe-finder.c | |
parent | 3cb8bc6ac95ff86147d11ee1d36d18e1ddf3637c (diff) |
perf probe: Rename probe finder functions
Rename *_probepoint to *_probe_point, for nothing
but a cosmetic reason.
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: K.Prasad <prasad@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
LKML-Reference: <20100225133534.6725.52615.stgit@localhost6.localdomain6>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/probe-finder.c')
-rw-r--r-- | tools/perf/util/probe-finder.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index 3e10dbe22ab8..c819fd59da9e 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c | |||
@@ -524,8 +524,8 @@ static void free_current_frame_base(struct probe_finder *pf) | |||
524 | } | 524 | } |
525 | 525 | ||
526 | /* Show a probe point to output buffer */ | 526 | /* Show a probe point to output buffer */ |
527 | static void show_probepoint(Dwarf_Die sp_die, Dwarf_Signed offs, | 527 | static void show_probe_point(Dwarf_Die sp_die, Dwarf_Signed offs, |
528 | struct probe_finder *pf) | 528 | struct probe_finder *pf) |
529 | { | 529 | { |
530 | struct probe_point *pp = pf->pp; | 530 | struct probe_point *pp = pf->pp; |
531 | char *name; | 531 | char *name; |
@@ -585,7 +585,7 @@ static int probeaddr_callback(struct die_link *dlink, void *data) | |||
585 | /* Check the address is in this subprogram */ | 585 | /* Check the address is in this subprogram */ |
586 | if (tag == DW_TAG_subprogram && | 586 | if (tag == DW_TAG_subprogram && |
587 | die_within_subprogram(dlink->die, pf->addr, &offs)) { | 587 | die_within_subprogram(dlink->die, pf->addr, &offs)) { |
588 | show_probepoint(dlink->die, offs, pf); | 588 | show_probe_point(dlink->die, offs, pf); |
589 | return 1; | 589 | return 1; |
590 | } | 590 | } |
591 | return 0; | 591 | return 0; |
@@ -668,7 +668,7 @@ static int probefunc_callback(struct die_link *dlink, void *data) | |||
668 | pf->addr = die_get_entrypc(dlink->die); | 668 | pf->addr = die_get_entrypc(dlink->die); |
669 | pf->addr += pp->offset; | 669 | pf->addr += pp->offset; |
670 | /* TODO: Check the address in this function */ | 670 | /* TODO: Check the address in this function */ |
671 | show_probepoint(dlink->die, pp->offset, pf); | 671 | show_probe_point(dlink->die, pp->offset, pf); |
672 | return 1; /* Exit; no same symbol in this CU. */ | 672 | return 1; /* Exit; no same symbol in this CU. */ |
673 | } | 673 | } |
674 | } else if (tag == DW_TAG_inlined_subroutine && pf->inl_offs) { | 674 | } else if (tag == DW_TAG_inlined_subroutine && pf->inl_offs) { |
@@ -691,7 +691,7 @@ found: | |||
691 | /* Get offset from subprogram */ | 691 | /* Get offset from subprogram */ |
692 | ret = die_within_subprogram(lk->die, pf->addr, &offs); | 692 | ret = die_within_subprogram(lk->die, pf->addr, &offs); |
693 | DIE_IF(!ret); | 693 | DIE_IF(!ret); |
694 | show_probepoint(lk->die, offs, pf); | 694 | show_probe_point(lk->die, offs, pf); |
695 | /* Continue to search */ | 695 | /* Continue to search */ |
696 | } | 696 | } |
697 | } | 697 | } |
@@ -704,7 +704,7 @@ static void find_probe_point_by_func(struct probe_finder *pf) | |||
704 | } | 704 | } |
705 | 705 | ||
706 | /* Find a probe point */ | 706 | /* Find a probe point */ |
707 | int find_probepoint(int fd, struct probe_point *pp) | 707 | int find_probe_point(int fd, struct probe_point *pp) |
708 | { | 708 | { |
709 | Dwarf_Half addr_size = 0; | 709 | Dwarf_Half addr_size = 0; |
710 | Dwarf_Unsigned next_cuh = 0; | 710 | Dwarf_Unsigned next_cuh = 0; |