mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
perf symbols: Move more map_groups methods to map.c
While writing a standalone test app that uses the symbol system to find kernel space symbols I noticed these also need to be moved. 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> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
11164cd4f6
commit
c6e718ff8c
4 changed files with 180 additions and 170 deletions
|
@ -97,11 +97,14 @@ struct map_groups {
|
|||
};
|
||||
|
||||
size_t __map_groups__fprintf_maps(struct map_groups *self,
|
||||
enum map_type type, FILE *fp);
|
||||
enum map_type type, int verbose, FILE *fp);
|
||||
void maps__insert(struct rb_root *maps, struct map *map);
|
||||
struct map *maps__find(struct rb_root *maps, u64 addr);
|
||||
void map_groups__init(struct map_groups *self);
|
||||
size_t map_groups__fprintf_maps(struct map_groups *self, FILE *fp);
|
||||
int map_groups__clone(struct map_groups *self,
|
||||
struct map_groups *parent, enum map_type type);
|
||||
size_t map_groups__fprintf(struct map_groups *self, int verbose, FILE *fp);
|
||||
size_t map_groups__fprintf_maps(struct map_groups *self, int verbose, FILE *fp);
|
||||
|
||||
static inline void map_groups__insert(struct map_groups *self, struct map *map)
|
||||
{
|
||||
|
@ -125,6 +128,9 @@ static inline struct symbol *map_groups__find_function(struct map_groups *self,
|
|||
return map_groups__find_symbol(self, MAP__FUNCTION, addr, filter);
|
||||
}
|
||||
|
||||
int map_groups__fixup_overlappings(struct map_groups *self, struct map *map,
|
||||
int verbose, FILE *fp);
|
||||
|
||||
struct map *map_groups__find_by_name(struct map_groups *self,
|
||||
enum map_type type, const char *name);
|
||||
int __map_groups__create_kernel_maps(struct map_groups *self,
|
||||
|
@ -134,5 +140,6 @@ int map_groups__create_kernel_maps(struct map_groups *self,
|
|||
struct map *vmlinux_maps[MAP__NR_TYPES]);
|
||||
struct map *map_groups__new_module(struct map_groups *self, u64 start,
|
||||
const char *filename);
|
||||
void map_groups__flush(struct map_groups *self);
|
||||
|
||||
#endif /* __PERF_MAP_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue