d46a4cdf49
So that we pass that substructure around and with it consolidate lots of functions that receive a (map, symbol) pair and now can receive just a 'struct map_symbol' pointer. This further paves the way to add 'struct map_groups' to 'struct map_symbol' so that we can have all we need for annotation so that we can ditch 'struct map'->groups, i.e. have the map_groups pointer in a more central place, avoiding the pointer in the 'struct map' that have tons of instances. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-fs90ttd9q12l7989fo7pw81q@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
22 lines
349 B
C
22 lines
349 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef __PERF_MAP_SYMBOL
|
|
#define __PERF_MAP_SYMBOL 1
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct map;
|
|
struct symbol;
|
|
|
|
struct map_symbol {
|
|
struct map *map;
|
|
struct symbol *sym;
|
|
};
|
|
|
|
struct addr_map_symbol {
|
|
struct map_symbol ms;
|
|
u64 addr;
|
|
u64 al_addr;
|
|
u64 phys_addr;
|
|
};
|
|
#endif // __PERF_MAP_SYMBOL
|