You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
perf symbols: Rename find_symbol routines to find_function
Paving the way for supporting variable in adition to function symbols. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1259074912-5924-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
727dad10c1
commit
fcf1203a91
@@ -80,18 +80,18 @@ void map__delete(struct map *self)
|
||||
free(self);
|
||||
}
|
||||
|
||||
void map__fixup_start(struct map *self)
|
||||
void map__fixup_start(struct map *self, struct rb_root *symbols)
|
||||
{
|
||||
struct rb_node *nd = rb_first(&self->dso->syms);
|
||||
struct rb_node *nd = rb_first(symbols);
|
||||
if (nd != NULL) {
|
||||
struct symbol *sym = rb_entry(nd, struct symbol, rb_node);
|
||||
self->start = sym->start;
|
||||
}
|
||||
}
|
||||
|
||||
void map__fixup_end(struct map *self)
|
||||
void map__fixup_end(struct map *self, struct rb_root *symbols)
|
||||
{
|
||||
struct rb_node *nd = rb_last(&self->dso->syms);
|
||||
struct rb_node *nd = rb_last(symbols);
|
||||
if (nd != NULL) {
|
||||
struct symbol *sym = rb_entry(nd, struct symbol, rb_node);
|
||||
self->end = sym->end;
|
||||
@@ -100,8 +100,8 @@ void map__fixup_end(struct map *self)
|
||||
|
||||
#define DSO__DELETED "(deleted)"
|
||||
|
||||
struct symbol *
|
||||
map__find_symbol(struct map *self, u64 ip, symbol_filter_t filter)
|
||||
struct symbol *map__find_function(struct map *self, u64 ip,
|
||||
symbol_filter_t filter)
|
||||
{
|
||||
if (!self->dso->loaded) {
|
||||
int nr = dso__load(self->dso, self, filter);
|
||||
@@ -136,7 +136,7 @@ map__find_symbol(struct map *self, u64 ip, symbol_filter_t filter)
|
||||
}
|
||||
}
|
||||
|
||||
return self->dso->find_symbol(self->dso, ip);
|
||||
return self->dso->find_function(self->dso, ip);
|
||||
}
|
||||
|
||||
struct map *map__clone(struct map *self)
|
||||
|
||||
Reference in New Issue
Block a user