 19504828b4
			
		
	
	
	19504828b4
	
	
	
		
			
			* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: perf tools: Fix sample size bit operations perf tools: Fix ommitted mmap data update on remap watchdog: Change the default timeout and configure nmi watchdog period based on watchdog_thresh watchdog: Disable watchdog when thresh is zero watchdog: Only disable/enable watchdog if neccessary watchdog: Fix rounding bug in get_sample_period() perf tools: Propagate event parse error handling perf tools: Robustify dynamic sample content fetch perf tools: Pre-check sample size before parsing perf tools: Move evlist sample helpers to evlist area perf tools: Remove junk code in mmap size handling perf tools: Check we are able to read the event size on mmap
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			874 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			874 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <linux/kernel.h>
 | |
| #include <linux/prefetch.h>
 | |
| 
 | |
| #include "../../../../include/linux/list.h"
 | |
| 
 | |
| #ifndef PERF_LIST_H
 | |
| #define PERF_LIST_H
 | |
| /**
 | |
|  * list_del_range - deletes range of entries from list.
 | |
|  * @begin: first element in the range to delete from the list.
 | |
|  * @end: last element in the range to delete from the list.
 | |
|  * Note: list_empty on the range of entries does not return true after this,
 | |
|  * the entries is in an undefined state.
 | |
|  */
 | |
| static inline void list_del_range(struct list_head *begin,
 | |
| 				  struct list_head *end)
 | |
| {
 | |
| 	begin->prev->next = end->next;
 | |
| 	end->next->prev = begin->prev;
 | |
| }
 | |
| 
 | |
| /**
 | |
|  * list_for_each_from	-	iterate over a list from one of its nodes
 | |
|  * @pos:  the &struct list_head to use as a loop cursor, from where to start
 | |
|  * @head: the head for your list.
 | |
|  */
 | |
| #define list_for_each_from(pos, head) \
 | |
| 	for (; pos != (head); pos = pos->next)
 | |
| #endif
 |