4 #include <linux/compiler.h>
5 #include <linux/list.h>
6 #include <linux/rbtree.h>
16 #define MAP__NR_TYPES (MAP__VARIABLE + 1)
61 #define HOST_KERNEL_ID (-1)
62 #define DEFAULT_GUEST_KERNEL_ID (0)
81 return self->vmlinux_maps[
type];
84 static inline struct kmap *map__kmap(
struct map *
self)
86 return (
struct kmap *)(
self + 1);
174 static inline bool machine__is_default_guest(
struct machine *
self)
179 static inline bool machine__is_host(
struct machine *
self)
184 static inline void map_groups__insert(
struct map_groups *mg,
struct map *map)
190 static inline void map_groups__remove(
struct map_groups *mg,
struct map *map)
195 static inline struct map *map_groups__find(
struct map_groups *mg,
219 struct symbol *machine__find_kernel_symbol(
struct machine *
self,
232 return machine__find_kernel_symbol(
self,
MAP__FUNCTION, addr, mapp, filter);
237 const char *
name,
struct map **mapp,
244 struct symbol *machine__find_kernel_function_by_name(
struct machine *
self,
249 return map_groups__find_function_by_name(&self->kmaps, name, mapp,