mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-31 08:08:51 +01:00 
			
		
		
		
	Fixed MTP to work with TWRP
This commit is contained in:
		
						commit
						f6dfaef42e
					
				
					 50820 changed files with 20846062 additions and 0 deletions
				
			
		
							
								
								
									
										42
									
								
								tools/testing/selftests/powerpc/pmu/lib.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								tools/testing/selftests/powerpc/pmu/lib.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,42 @@ | |||
| /*
 | ||||
|  * Copyright 2014, Michael Ellerman, IBM Corp. | ||||
|  * Licensed under GPLv2. | ||||
|  */ | ||||
| 
 | ||||
| #ifndef __SELFTESTS_POWERPC_PMU_LIB_H | ||||
| #define __SELFTESTS_POWERPC_PMU_LIB_H | ||||
| 
 | ||||
| #include <stdio.h> | ||||
| #include <stdint.h> | ||||
| #include <string.h> | ||||
| #include <unistd.h> | ||||
| 
 | ||||
| union pipe { | ||||
| 	struct { | ||||
| 		int read_fd; | ||||
| 		int write_fd; | ||||
| 	}; | ||||
| 	int fds[2]; | ||||
| }; | ||||
| 
 | ||||
| extern int pick_online_cpu(void); | ||||
| extern int bind_to_cpu(int cpu); | ||||
| extern int kill_child_and_wait(pid_t child_pid); | ||||
| extern int wait_for_child(pid_t child_pid); | ||||
| extern int sync_with_child(union pipe read_pipe, union pipe write_pipe); | ||||
| extern int wait_for_parent(union pipe read_pipe); | ||||
| extern int notify_parent(union pipe write_pipe); | ||||
| extern int notify_parent_of_error(union pipe write_pipe); | ||||
| extern pid_t eat_cpu(int (test_function)(void)); | ||||
| extern bool require_paranoia_below(int level); | ||||
| extern void *get_auxv_entry(int type); | ||||
| 
 | ||||
| struct addr_range { | ||||
| 	uint64_t first, last; | ||||
| }; | ||||
| 
 | ||||
| extern struct addr_range libc, vdso; | ||||
| 
 | ||||
| int parse_proc_maps(void); | ||||
| 
 | ||||
| #endif /* __SELFTESTS_POWERPC_PMU_LIB_H */ | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 awab228
						awab228