| 
									
										
										
										
											2012-09-10 18:50:19 +02:00
										 |  |  | #ifndef __PERF_VDSO__
 | 
					
						
							|  |  |  | #define __PERF_VDSO__
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <linux/types.h>
 | 
					
						
							|  |  |  | #include <string.h>
 | 
					
						
							|  |  |  | #include <stdbool.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define VDSO__MAP_NAME "[vdso]"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-23 13:45:23 +03:00
										 |  |  | #define DSO__NAME_VDSO    "[vdso]"
 | 
					
						
							|  |  |  | #define DSO__NAME_VDSO32  "[vdso32]"
 | 
					
						
							|  |  |  | #define DSO__NAME_VDSOX32 "[vdsox32]"
 | 
					
						
							| 
									
										
										
										
											2014-07-22 16:17:57 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-09-10 18:50:19 +02:00
										 |  |  | static inline bool is_vdso_map(const char *filename) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	return !strcmp(filename, VDSO__MAP_NAME); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-07-22 16:17:57 +03:00
										 |  |  | struct dso; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | bool dso__is_vdso(struct dso *dso); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-07-22 16:17:53 +03:00
										 |  |  | struct machine; | 
					
						
							| 
									
										
										
										
											2014-07-22 16:18:00 +03:00
										 |  |  | struct thread; | 
					
						
							| 
									
										
										
										
											2014-07-22 16:17:53 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-07-22 16:18:00 +03:00
										 |  |  | struct dso *vdso__dso_findnew(struct machine *machine, struct thread *thread); | 
					
						
							| 
									
										
										
										
											2014-07-23 14:23:00 +03:00
										 |  |  | void vdso__exit(struct machine *machine); | 
					
						
							| 
									
										
										
										
											2012-09-10 18:50:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif /* __PERF_VDSO__ */
 |