xref: /openbmc/linux/tools/perf/util/addr_location.h (revision 0dd5041c)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_ADDR_LOCATION
3 #define __PERF_ADDR_LOCATION 1
4 
5 #include <linux/types.h>
6 
7 struct thread;
8 struct maps;
9 struct map;
10 struct symbol;
11 
12 struct addr_location {
13 	struct thread *thread;
14 	struct maps   *maps;
15 	struct map    *map;
16 	struct symbol *sym;
17 	const char    *srcline;
18 	u64	      addr;
19 	char	      level;
20 	u8	      filtered;
21 	u8	      cpumode;
22 	s32	      cpu;
23 	s32	      socket;
24 };
25 
26 void addr_location__init(struct addr_location *al);
27 void addr_location__exit(struct addr_location *al);
28 
29 void addr_location__copy(struct addr_location *dst, struct addr_location *src);
30 
31 #endif /* __PERF_ADDR_LOCATION */
32