Thu 17 Oct 23:42:52 CEST 2024
This commit is contained in:
		
							parent
							
								
									842c080803
								
							
						
					
					
						commit
						13976923a5
					
				
							
								
								
									
										34
									
								
								include/kernel/stats.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								include/kernel/stats.h
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,34 @@ | ||||||
|  | #ifndef KERNEL_STATS_H | ||||||
|  | #define KERNEL_STATS_H | ||||||
|  | 
 | ||||||
|  | #include "kernel/types.h" | ||||||
|  | #include "kernel/syscall.h" | ||||||
|  | 
 | ||||||
|  | struct system_stats { | ||||||
|  | 	int time; | ||||||
|  | 	int blocks_read[4]; | ||||||
|  | 	int blocks_written[4]; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | struct device_driver_stats { | ||||||
|  | 	int blocks_written; | ||||||
|  | 	int blocks_read; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | struct bcache_stats { | ||||||
|  | 	int read_hits; | ||||||
|  | 	int read_misses; | ||||||
|  | 	int write_hits; | ||||||
|  | 	int write_misses; | ||||||
|  | 	int writebacks; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | struct process_stats { | ||||||
|  | 	int blocks_read; | ||||||
|  | 	int blocks_written; | ||||||
|  | 	int bytes_read; | ||||||
|  | 	int bytes_written; | ||||||
|  | 	int syscall_count[MAX_SYSCALL]; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | #endif | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user