xref: /openbmc/linux/tools/perf/util/addr_location.h (revision 0dd5041c)
1620be847SIan Rogers /* SPDX-License-Identifier: GPL-2.0 */
2620be847SIan Rogers #ifndef __PERF_ADDR_LOCATION
3620be847SIan Rogers #define __PERF_ADDR_LOCATION 1
4620be847SIan Rogers 
5620be847SIan Rogers #include <linux/types.h>
6620be847SIan Rogers 
7620be847SIan Rogers struct thread;
8620be847SIan Rogers struct maps;
9620be847SIan Rogers struct map;
10620be847SIan Rogers struct symbol;
11620be847SIan Rogers 
12620be847SIan Rogers struct addr_location {
13620be847SIan Rogers 	struct thread *thread;
14620be847SIan Rogers 	struct maps   *maps;
15620be847SIan Rogers 	struct map    *map;
16620be847SIan Rogers 	struct symbol *sym;
17620be847SIan Rogers 	const char    *srcline;
18620be847SIan Rogers 	u64	      addr;
19620be847SIan Rogers 	char	      level;
20620be847SIan Rogers 	u8	      filtered;
21620be847SIan Rogers 	u8	      cpumode;
22620be847SIan Rogers 	s32	      cpu;
23620be847SIan Rogers 	s32	      socket;
24620be847SIan Rogers };
25620be847SIan Rogers 
26*0dd5041cSIan Rogers void addr_location__init(struct addr_location *al);
27*0dd5041cSIan Rogers void addr_location__exit(struct addr_location *al);
28*0dd5041cSIan Rogers 
29*0dd5041cSIan Rogers void addr_location__copy(struct addr_location *dst, struct addr_location *src);
30620be847SIan Rogers 
31620be847SIan Rogers #endif /* __PERF_ADDR_LOCATION */
32