libperf: Add perf_evlist__add_pollfd() function
Move perf_evlist__add_pollfd() from tools/perf to libperf, it will be used in the following patches. Also rename perf's perf_evlist__add_pollfd()/perf_evlist__filter_pollfd() to evlist__add_pollfd()/evlist__filter_pollfd(). Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lore.kernel.org/lkml/20190913132355.21634-38-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
		
				
					committed by
					
						 Arnaldo Carvalho de Melo
						Arnaldo Carvalho de Melo
					
				
			
			
				
	
			
			
			
						parent
						
							31f67fc462
						
					
				
				
					commit
					f4009e7bf7
				
			| @@ -25,6 +25,8 @@ struct perf_evlist { | ||||
| }; | ||||
| 
 | ||||
| int perf_evlist__alloc_pollfd(struct perf_evlist *evlist); | ||||
| int perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd, | ||||
| 			    void *ptr, short revent); | ||||
| 
 | ||||
| /**
 | ||||
|  * __perf_evlist__for_each_entry - iterate thru all the evsels | ||||
|   | ||||
		Reference in New Issue
	
	Block a user